SA-MP Forums Archive
Checking - 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: Checking (/showthread.php?tid=361509)



Checking - TaLhA XIV - 21.07.2012

Can some one post here the code that how to check if a player is an admin?
please!


Re: Checking - Stigg - 21.07.2012

https://sampwiki.blast.hk/wiki/IsPlayerAdmin




Re: Checking - Captain_Mani - 21.07.2012

Search before you post please.


Re: Checking - JaKe Elite - 21.07.2012

if you mean not rcon admin.
then you need a enum + register system.

ex.

pawn Код:
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, "Nice try n00b only for level 1 admins");
the code i give up works if player is not admin.