How can i merge all of the cars CMDs into one CMD which is "/car"
#3

Using sscanf, I have an easy way to proceed.

PHP код:

// At the bottom of your OnPlayerCommandText

new cmd[26], params[128];
sscanf(cmdtext"s[26] s[128]"cmdparams); // You can also delete the '/' to use if(!strcmp(cmd, "commandname", true)) , do as you want

if(!strcmp("car"cmdtrue))
{
   if(!
strlen(params)) return SCM(playerid, -1"your command list");
   if(!
strcmp(params"hood"true))
   {
       
// Hood commands
    
}
return 
1;

@MattTucker : Let him do as he want, I'm pretty sure he knows about zCMD but he could simply chose to not use.
Reply


Messages In This Thread
How can i merge all of the cars CMDs into one CMD which is "/car" - by D3vin - 03.05.2014, 09:47
Re: How can i merge all of the cars CMDs into one CMD which is "/car" - by MattTucker - 03.05.2014, 09:51
Re : How can i merge all of the cars CMDs into one CMD which is "/car" - by S4t3K - 03.05.2014, 09:57
Re: How can i merge all of the cars CMDs into one CMD which is "/car" - by EpicMan - 03.05.2014, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)