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



PlayerInfo - xMichaelx - 05.12.2011

Hey,

I was wondering something for the next release of my gamemode.

pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1) return 0;
Would that return 0 if the player is admin or if the player isn't?

Thanks in advance


Re: PlayerInfo - Wesley221 - 05.12.2011

pawn Код:
if( PlayerInfo[playerid][pAdmin] BIGGER OR EQUALS TO 1 ) return 0;



Re: PlayerInfo - bartje01 - 05.12.2011

Small example
COMMAND:Admintest(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] <1) return SendClientMessage(playerid,-1,"You're not an admin");
SendClientMessage(playerid,-1,"You're an admin");
return 1;
}