Quote:
Originally Posted by HellSphinX
Well, your checks are totally wrong. Let's take /ban as an example:
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!");
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:
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!");
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.
|
I changed that but still same problem..