A problem about help command with params
#1

SOLVED!

Okay, so, I am trying to make a /help [section] but I want to make so if you do /help faction it wouldn't show you the available section, only the faction commands. However I cannot get it in mind with my current code it shows the faction commands but it still shows them the section. So, I am asking how can I remove that. Note: THat's just a part of the command but the first lines are what I need help with.

Code:

Код:
CMD:help(playerid, params[])
{
        SCM(playerid, COLOR_GRAY, "/help [Section]");
	SCM(playerid, COLOR_GRAY, "Sections: faction, general, admin, helper, chats, houses, cars");
	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!");
		}
         }
}
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: 2 Guest(s)