Question about ZCMD - 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)
+--- Thread: Question about ZCMD (
/showthread.php?tid=509520)
Question about ZCMD -
br0adyb0ii - 27.04.2014
I want to convert this system to ZCMD is it possible
pawn Код:
#define Password "/password"
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if( strcmp(cmd, Password, true)==0 )
{
if(IsPlayerAdmin(playerid) == 1)
{
code here
}
return 1;
}
Re: Question about ZCMD -
Yasubo - 27.04.2014
here try this?
pawn Код:
CMD:password(playerid, params[])
{
if(IsPlayerAdmin(playerid) == 1)
{
code here
}
return 1;
}