SA-MP Forums Archive
how to use a subcmd on Dcmd - 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: how to use a subcmd on Dcmd (/showthread.php?tid=411008)



how to use a subcmd on Dcmd - psychopathe - 27.01.2013

Hello everyBody how to use Subcmd on Dcmd please exapmle

PHP код:
dcmd_mycmd(playerid,params[])
{
    if(
sscanf(params"s[128]"params))
    {
        
SendClientMessage(playeridCOLOR_USAGE"{FF6600}[Informations]{99EEFF} /cmd < name> names : blabla
           return 1;
    }
   if(subcmd "
blabla")
   {  
      if(sscanf(params, "
s[128]", params))  SendClientMessage(playerid, COLOR_USAGE, "{FF6600}[Informations]{99EEFF} /cmd blabla namenames blabla
   
}