Something about ahelp command
#1

Is there a way to make if is player admin 7 to show him only commands for admin 7 not for admin 6 5 4 3 2 1 because i put all commands into admin 7 list so its pointless to see 1,2,3,4,5,6 commands same for 6 for 5 for 4 for 3 for 2
Reply
#2

Here is a very simplified example

If the player is level "7" only one text will be shown, if "5" another type of text will be shown

PHP код:
CMD:admincmds(playeridparams[])
{
    new 
padmin /*playerAdmin;*/
    
new cmds[12];
    
    switch(
padmin)
    {
           case 
1//..
           
case 2//..
           
case 3//..
           
case 4//..
           
case 5cmds "/trgtg [wep]"
           
case 6//..
           
case 7cmds "/blabla [id]" //
           
default: return 0;
    }
    return 
SendClientMessage(playerid, -1cmds);

Tailor your code and optimize.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)