Admin Commands not working
#5

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


Messages In This Thread
Admin Commands not working - by Sanady - 23.08.2012, 16:24
Re: Admin Commands not working - by ZBits - 23.08.2012, 16:33
Re: Admin Commands not working - by Sanady - 23.08.2012, 16:34
Re: Admin Commands not working - by [KHK]Khalid - 23.08.2012, 16:43
Re: Admin Commands not working - by Sanady - 23.08.2012, 17:04
Re: Admin Commands not working - by DeadLy™ - 23.08.2012, 17:06
Re: Admin Commands not working - by ZBits - 23.08.2012, 17:06
Re: Admin Commands not working - by scottyishere - 23.08.2012, 17:13
Re: Admin Commands not working - by Lordzy - 23.08.2012, 17:13
Re: Admin Commands not working - by Sanady - 23.08.2012, 17:23

Forum Jump:


Users browsing this thread: 3 Guest(s)