PlayerInfo
#1

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
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)