ZCMD SubCommand
#5

PHP код:
CMD:test(playeridparams[])
{
    new 
subcmd[32];
    if(
sscanf(params"s[32]"subcmd)) return SendClientMessage(playeridRED"Correct usage: /test [subcmd]");
    if(!
strcmp(subcmd"kick"true))
    {
         new 
idlol[5];
         if(
sscand(subcmd"s[5]i"lolid)) return SendClientMessage(playeridRED"Correct usage: /test kick [id]");
         
Kick(id);
    }

You can use it this way.
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: 1 Guest(s)