23.01.2013, 14:26
Its quite easy actually, here's a little example
Now if the command you used have used params(E.G:/ban ID REASON), usualy in strcmp you use strtok, in ZCMD use sscanf, its a lot faster/easier too.
pawn Код:
//with ZCMD
CMD:help(playerid, params[])
{
SendClientMessage(playerid,COLOR_ORANGERED,"Hello");
return 1;
}
//with strcmp
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_ORANGERED,"Hello");
return 1;
}