04.10.2015, 18:08
PHP код:
CMD:help(playerid, params[])
{
SCM(playerid, COLOR_GRAY, "/help [Section]");
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 if(!strcmp(params, "general", true))
{
// Bla bla bla
}
else return SCM(playerid, COLOR_GRAY, "Sections: faction, general, admin, helper, chats, houses, cars");
}