#1

if(!strcmp(cmdtext, "/robatm", true, 7))
{ if(IsPlayerInCheckPoint(playerid)==1);
GivePlayerMoney(playerid,1000); whatever amount you want
return 1;
}



how can i make it dcmd?
Reply
#2

https://sampwiki.blast.hk/wiki/Dcmd

STUDY !
Reply
#3

hmm i know my server includes a lot of dcmds but i cannot make this

can i add this as it is?
Reply
#4

Quote:
Originally Posted by tour15
if(!strcmp(cmdtext, "/robatm", true, 7))
{ if(IsPlayerInCheckPoint(playerid)==1);
GivePlayerMoney(playerid,1000); whatever amount you want
return 1;
}



how can i make it dcmd?
OnPlayerCommandText:
pawn Код:
dcmd(robatm,6,cmdtext);
Anywhere else:
pawn Код:
dcmd_robatm(playerid,params[])
{
    #pragma unused params
    if(IsPlayerInCheckPoint(playerid))
    {
        GivePlayerMoney(playerid,1000); //whatever amount you want
    }
    return 1;
}
Reply
#5

thank you but why i have this

C:\DOCUME~1\NIKOS\Desktop\GTASER~1\GAMEMO~1\cops.p wn(1429) : error 017: undefined symbol "IsPlayerInCheckPoint"
Reply
#6

Checkpoint not CheckPoint.
Reply
#7

Ok i am so stupid realy thank you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)