Admin Only Command
#1

I would like to set "Neon" as an admin only command. I have this
pawn Код:
CMD:neon(playerid, params[])
{
    ShowMenuForPlayer(neonmenu,playerid);
    return 1;
}
How do I set it as admin level 1+ Only?
Reply
#2

Show me your Admin System
Reply
#3

Quote:
Originally Posted by Eminem 2ka9
Посмотреть сообщение
I would like to set "Neon" as an admin only command. I have this
pawn Код:
CMD:neon(playerid, params[])
{
        ShowMenuForPlayer(neonmenu,playerid);
    return 1;
}
How do I set it as admin level 1+ Only?
pawn Код:
CMD:neon(playerid, params[])
{
        if(YourAdminVariable < 1) return SendClientMessage(playerid,-1,"Admins Only");
        ShowMenuForPlayer(neonmenu,playerid);
    return 1;
}
Reply
#4

hmm.. Simple
In your admin system pwn add the neon cmd under which level you want.
Reply
#5

add this before the ShowMenuForPlayer.

PHP код:
if(enumExample[playerid][Admin] < 1) return //do whatever you want; 
Reply
#6

REP ME IF I HELPED YOU..........

https://sampforum.blast.hk/showthread.php?tid=273088 // use this to see where i get the information below from
eg


PHP код:
CMD:neon(playeridparams[])
{
        if(
PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,-1,"Admins Only");
        
ShowMenuForPlayer(neonmenu,playerid);
        return 
1;

Reply
#7

^^

I always hate people like you, who ask for rep.
Reply
#8

Hm...if you youse YSI include y_groups - read this theard.
There is a convenient solution system administrator.
p.s. I used a ****** translator for this sorry for bad english...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)