SA-MP Forums Archive
Admin Only Command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Admin Only Command (/showthread.php?tid=386283)



Admin Only Command - Eminem 2ka9 - 20.10.2012

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?


Re: Admin Only Command - ToiletDuck - 20.10.2012

Show me your Admin System


Re: Admin Only Command - [Ips]Guh - 20.10.2012

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;
}



Re: Admin Only Command - PinEvil - 20.10.2012

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


Re: Admin Only Command - JaKe Elite - 20.10.2012

add this before the ShowMenuForPlayer.

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



Re: Admin Only Command - Glad2BeHere - 20.10.2012

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;




Re: Admin Only Command - JaKe Elite - 20.10.2012

^^

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


Re: Admin Only Command - Jonathan Rosewood - 20.10.2012

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...