multiple command
#2

hello, you can use zcmd,sscanf

PHP код:
CMD:clan(playeridparams[])
{
    new 
param[20];
    if (
sscanf(params"s[20]"param))
    {
       
SendClientMessage(playerid0xFFFFFFF,"[S]  : /clan  [type]");
       
SendClientMessage(playerid0xFFFFFFF,"[TYPES] [invite/deny/accept]");
       return 
1;
    }
    if (!
strcmp(param"invite"true6))
    {
        
//code here
    
}
    if (!
strcmp(param"deny"true4))
    {
        
//code here
    
}
    if (!
strcmp(param"accept"true6))
    {
        
//code here
    
}
    return 
1;

Reply


Messages In This Thread
multiple command - by DzDanieL - 25.02.2015, 07:18
Re: multiple command - by Golf - 25.02.2015, 07:35
Re: multiple command - by DzDanieL - 25.02.2015, 10:59
Re: multiple command - by -=Dar[K]Lord=- - 25.02.2015, 11:02
Re: multiple command - by CalvinC - 25.02.2015, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)