23.08.2012, 16:43
Well, your checks are totally wrong. Let's take /ban as an example:
Here you're checking if their level is above 0 (In other words, if they're admins) OR if they are logged as rcon admin, and if that's true then you tell them that they aren't allowed to use this command (Which you shouldn't do). Your check is supposed to be like this:
This will check if their level is less than 1 (In other words, regular player) OR if they aren't logged in as rcon admins, then tells them they aren't allowed to use this command.
pawn Код:
if(UserStats[playerid][Admin] >= 1 || IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR]"embed_white"You are not authorized to use this command!");
pawn Код:
if(UserStats[playerid][Admin] < 1 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR]"embed_white"You are not authorized to use this command!");