dcmd - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dcmd (
/showthread.php?tid=112829)
dcmd -
TouR - 10.12.2009
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?
Re: dcmd -
*ToM* - 10.12.2009
https://sampwiki.blast.hk/wiki/Dcmd
STUDY !
Re: dcmd -
TouR - 10.12.2009
hmm i know my server includes a lot of dcmds but i cannot make this
can i add this as it is?
Re: dcmd -
miokie - 10.12.2009
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:
Anywhere else:
pawn Код:
dcmd_robatm(playerid,params[])
{
#pragma unused params
if(IsPlayerInCheckPoint(playerid))
{
GivePlayerMoney(playerid,1000); //whatever amount you want
}
return 1;
}
Re: dcmd -
TouR - 10.12.2009
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"
Re: dcmd -
Mikep. - 10.12.2009
Checkpoint not CheckPoint.
Re: dcmd -
TouR - 10.12.2009
Ok i am so stupid realy thank you