/Makeadmin bug. - 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: /Makeadmin bug. (
/showthread.php?tid=397496)
/Makeadmin bug. -
NoahF - 05.12.2012
When I join my server, I login, I then login to RCON and do /makeadmin and it says access denied?
EDIT: Nvm, I took out the admin level 5 check and replaced it with an rcon admin check and it works.
Re: /Makeadmin bug. -
cosbraa - 05.12.2012
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 5 || IsPlayerAdmin(playerid))
IsPlayerAdmin is the RCON admin, while [pAdmin] is your scripted admin level.
Re: /Makeadmin bug. -
Konstantinos - 05.12.2012
Quote:
Originally Posted by cosbraa
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 5 || IsPlayerAdmin(playerid))
|
It is sometimes bugged when we use
So, I'd recomment to check wether is admin or not + RCON.
pawn Код:
if( ( PlayerInfo[playerid][pAdmin] >= 5 ) || ( PlayerInfo[playerid][pAdmin] <= 5 && IsPlayerAdmin( playerid ) ) )
// If his level is equal/higher to 5 OR his level is equal/lower to 5 AND he is RCON, then continue;