20.12.2013, 23:40
Hey, I made a command, that will be with subcommands, example:
Now, when I types /help general, it show it like this:
I just want it to show only the text " /stats,/report,/ooc " .
pawn Code:
CMD:help(playerid, params[])
{
SendClientMessage(playerid, COLOR_GREEN, "****************[HELP MENU]****************");
SendClientMessage(playerid, COLOR_WHITE, "TIP: /help [name]");
SendClientMessage(playerid, COLOR_WHITE, "Names: General, Admin");
SendClientMessage(playerid, COLOR_GREEN, "*******************************************");
if(!strcmp(params, "General", true))
{
SendClientMessage(playerid, COLOR_WHITE, "/stats,/report,/ooc");
}
if(!strcmp(params, "Admin", true))
{
SendClientMessage(playerid, COLOR_WHITE, "/lastdriver,/kick,/ban,/kick");
}
return 1;
}
Code:
****************[HELP MENU]**************** TIP: /help [name]"); Names: General, Admin"); ******************************************* /stats,/report,/ooc