/Makeadmin bug.
#1

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

pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 5 || IsPlayerAdmin(playerid))
IsPlayerAdmin is the RCON admin, while [pAdmin] is your scripted admin level.
Reply
#3

Quote:
Originally Posted by cosbraa
Посмотреть сообщение
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 5 || IsPlayerAdmin(playerid))
It is sometimes bugged when we use
pawn Код:
if( x || y )
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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)