SA-MP Forums Archive
playeradmin help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: playeradmin help (/showthread.php?tid=130836)



playeradmin help - Fugative. - 28.02.2010

pawn Код:
if(IsPlayerAdmin(playerid) || AccountInfo[playerid][AdminLevel] >= 1)
The Problem I have is that admins that are greater than level 1 can not use this function. I Don't know whats wrong here. I have 4 levels for admin Level 1 , 2 ,3 and 4


Re: playeradmin help - Fugative. - 28.02.2010

bump


Re: playeradmin help - DarkPower - 28.02.2010

try this

Код:
if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
this is hole variable

Код:
if(PlayerInfo[playerid][LoggedIn] != 1) return SendClientMessage(playerid, COLOR_RED, "You must be logged to use that command");
if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
try it it not tested