ZCMD SubCommand
#1

Hi,

Is it possible to do it but witch ZCMD ?

if(strcmp(cmd, "/give", true) == 0)
{
subcmd = strtok(cmdtext, idx);
if(PlayerInfo[playerid][pAdmin] < ADMIN2){return NotAdmin(playerid,cmd);}

if(!strlen(subcmd))
{
SendCmdModelMessage(playerid, "/give <Name>");
return 1;
}

if(strcmp(subcmd, "money", true) == 0)
{
return 1;
}
return 1;
}

And second question: Is ZCMD faster than dcmd ? Or faster than strcmp ?

Thanks.
Reply


Messages In This Thread
ZCMD SubCommand - by Etolas - 01.03.2015, 13:03
Re: ZCMD SubCommand - by HY - 01.03.2015, 13:05
Re : ZCMD SubCommand - by Etolas - 01.03.2015, 13:07
Re : ZCMD SubCommand - by Etolas - 01.03.2015, 13:15
Re: ZCMD SubCommand - by ATGOggy - 01.03.2015, 13:26

Forum Jump:


Users browsing this thread: 4 Guest(s)