SA-MP Forums Archive
Another question - 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: Another question (/showthread.php?tid=175499)



Another question - zack3021 - 10.09.2010

Ok this is about ZCMD and DCMD.

When you open pawno and click new, to make a new script, is there any way like that do do it for ZCMD and DCMD?


Re: Another question - iJumbo - 10.09.2010

dcmd is to OnPlayerCommandText callback
and define it
pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1



Re: Another question - zack3021 - 10.09.2010

Thanks so i think i must add that to the top.