A problem about help command with params
#3

PHP код:
CMD:help(playeridparams[])
{
    if(
isnull(params)
    {
        
SCM(playeridCOLOR_GRAY"/help [Section]");
    
SCM(playeridCOLOR_GRAY"Sections: faction, general, admin, helper, chats, houses, cars");
        return 
1;
    }
    if(!
strcmp(params"faction"true))
    {
        if(
PlayerInfo[playerid][pFac] == 0) return SCM(playerid, -1"{CC0000}You are not in a faction.");
        if(
PlayerInfo[playerid][pFactionRank] == 10)
        {
            
SCM(playerid, -1"{FFCC33}Faction Leader Commands:");
            
SCM(playerid, -1"{66CCCC}/hire /fire /promote /demote /setfrank");
        }
        if(
PlayerInfo[playerid][pFac] == 1)
        {
            
SCM(playerid, -1"{FFCC33}Faction Commands:");
            
SCM(playerid, -1"{66CCCC}/cuff /uncuff /m /d /r /issuelicense /revokelicense /mdc /jail /siren");
            
SCM(playerid, -1"{66CCCC}/ticket /pticket /taser(More to be added soon)");
        }
        if(
PlayerInfo[playerid][pFac] == 2)
        {
            
SCM(playerid, -1"{FFCC33}Faction Commands:");
            
SCM(playerid, -1"{66CCCC}To be added");
            
SCM(playerid, -1"{66CCCC}Soon!");
        }
                else
                {
                     
SCM(playeridCOLOR_GRAY"/help [Section]");
                 
SCM(playeridCOLOR_GRAY"Sections: faction, general, admin, helper, chats, houses, cars");
                     return 
1;
               }
         } 
If you don't have isnull(), get it from ******
Reply


Messages In This Thread
A problem about help command with params - by thefirestate - 04.10.2015, 17:56
Re: A problem about help command with params - by d1git - 04.10.2015, 18:08
Re: A problem about help command with params - by ATGOggy - 04.10.2015, 18:11
Re: A problem about help command with params - by thefirestate - 04.10.2015, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)