[Pomoc]/naruci paket, Hitman oruzije

Započeo Capo, April 08, 2013, 10:03:30 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:CLRP
Detaljan opis problema:Znaci, neradi mi za hitmane nemogu uzeti oruzije, pa ako netko ima nesto, neku komandu koja radi da ubacim, ili ako netko moze slozit nesto, ako je igrac u Hitmanima, da pise /oruzije, ili gun i onda mu se izbaci da moze sta ja znam sniper itd, i uzme si oruzije , :D
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/

Probat cu poslije sam nesto slozit, ali neverujem da ce to ista valjat, ;D

posalji tu cmd da vidimo ili jednostavno odradis samo
ako hoces da bira odradi dialog sa showplayerdialog odradis proveru da li je hitman i u dialogu po lisitem stavljas koje oruzje da dobija... to je bar lako :)

E posaljem tamo oko 7 kad bude bio na kompu :-) sad nmgu :-)

ShowPlayerDialog(playerid, 1012, DIALOG_STYLE_LIST, "hitman", "snajper\nm4", "OK", "EXIT"); i response if(dialogid == 1012)
{
if(response)
{
if(listitem == 0)
{
// ovde mu ustavi oruzje
}
if(listitem == 1)
{
// ovde mu stavi oruzje
}
}
}
Poslednja Izmena: April 08, 2013, 12:09:23 POSLE PODNE od Blaeks

Znaci, sta napisem GivePlayerWeapons (38,300) npr.. ili ,  kako ?

Citat: Capo poslato April 08, 2013, 19:03:53 POSLE PODNE
Znaci, sta napisem GivePlayerWeapons (38,300) npr.. ili ,  kako ?

SafeGivePlayerWeapon

ako koristiš JunkBuster SafeJBC_GivePlayerWeapon

ili neki drugi AC treba da podesiš :)

Kako da stavim provjeru, jel igrac na tim kordinatima :D

if(IsPlayerInRangeOfPoint(playerid, 3.0, ove koordinate stavis))

e ty decki, sam sad da to sve slozim, i stavim u mod :D

e imam problem,

C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4207) : error 017: undefined symbol "GivePlayerCash"
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4240) : error 017: undefined symbol "GivePlayerCash"
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4270) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4271) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4295) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4658) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4670) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4674) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4686) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4690) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4694) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4698) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4702) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4706) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4710) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4714) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4718) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4722) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4734) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4738) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4742) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4746) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4750) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4762) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4766) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\Mod za server\gamemodes\CLRP.pwn(4770) : error 004: function "PlayerToPoint" is not implemented


if(strcmp(cmd, "/narucipaket", true) == 0)
{
        if(PlayerToPoint(5.0,playerid,-217.9316,1402.6914,27.7734))
        {
            if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
                ShowPlayerDialog(playerid, 1012, DIALOG_STYLE_LIST, "{0049FF}Hitman Oruzija", "1. {00C0FF}Noz\n2. {00C0FF}Deagle\n3. {00C0FF}9mm Pistolj\n4. {00C0FF}MP5\n5. {00C0FF}AK-47\n6. {00C0FF}M4\n7. {00C0FF}ShotGun\n8. {00C0FF}Sniper", "U redu", "Odustani");
}
        }
        else
        {
    SendClientMessage(playerid, WHITE, ""COL_RED"| CapoAS |{FFFFFF} Niste Clan "COL_RED"Hitmana!");
    return 1;
        }
        return 1;
    }
   
    //----------
   
    if(dialogid == 1012)
{
if(response)
{
if(listitem == 0)
{
    SafeGivePlayerWeapon(playerid,4,1)
}
if(listitem == 1)
{
    SafeGivePlayerWeapon(playerid,24,100)
}
if(listitem == 2)
{
SafeGivePlayerWeapon(playerid,23,200)
}
if(listitem == 3)
{
SafeGivePlayerWeapon(playerid,29,350)
}
if(listitem == 4)
{
SafeGivePlayerWeapon(playerid,30,350)
}
if(listitem == 5)
{
SafeGivePlayerWeapon(playerid,31,350)
}
if(listitem == 1)
{
SafeGivePlayerWeapon(playerid,25,100)
}
if(listitem == 1)
{
SafeGivePlayerWeapon(playerid,34,100)
}
if(listitem == 1)
{


Evo nezz sta sad  bi :D izbaci mi neke druge erore .. a nez sta :D

SRY NA DP ALI DA NEOTVARAM NOVU TEMU !

Opet mi isto izbacuje,

Jel mozda do ShowPlayerDialog(playerid, 1012

Jel treba ic neki drugi broj umjesto 1012 , nekuzim se u te dialoge, al mozd je :D

moras izjednaciti broj zagrada ovih { i ovih } u toj komandi

E kako da ih u ovom izjednacim,

if(strcmp(cmd, "/narucipaket", true) == 0)
{
        if(IsPlayerInRangeOfPoint(3.0,playerid,-217.9316,1402.6914,27.7734))
        {
            if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
                ShowPlayerDialog(playerid, 1012, DIALOG_STYLE_LIST, "{0049FF}Hitman Oruzija", "1. {00C0FF}Noz\n2. {00C0FF}Deagle\n3. {00C0FF}9mm Pistolj\n4. {00C0FF}MP5\n5. {00C0FF}AK-47\n6. {00C0FF}M4\n7. {00C0FF}ShotGun\n8. {00C0FF}Sniper", "U redu", "Odustani");
}
        }
        else
        {
    SendClientMessage(playerid, WHITE, ""COL_RED"| CapoAS |{FFFFFF} Niste Clan "COL_RED"Hitmana!");
    return 1;
        }
        return 1;
    }
   
    //----------
   
    if(dialogid == 1012)
}
if(response)
{
if(listitem == 0)
{
    SafeGivePlayerWeapon(playerid,4,1)
}
if(listitem == 1)
{
    SafeGivePlayerWeapon(playerid,24,100)
}
if(listitem == 2)
{
SafeGivePlayerWeapon(playerid,23,200)
}
if(listitem == 3)
{
SafeGivePlayerWeapon(playerid,29,350)
}
if(listitem == 4)
{
SafeGivePlayerWeapon(playerid,30,350)
}
if(listitem == 5)
{
SafeGivePlayerWeapon(playerid,31,350)
}
if(listitem == 6)
{
SafeGivePlayerWeapon(playerid,25,100)
}
if(listitem == 7)
{
SafeGivePlayerWeapon(playerid,34,100)
}
if(listitem == 8)
{
   


Ima ih 14-13
Sad sta da radim da to valja :SSS
Probo sam jos na kraj dodat jednu ali nista se nedogadja