Admin Commands not working
#9

Quote:
Originally Posted by scottyishere
Посмотреть сообщение
REPLACE THIS:
pawn Код:
if(UserStats[playerid][Admin] >= 5 || IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR]"embed_white"You are not authorized to use this command!");
WITH THIS:
pawn Код:
if(UserStats[playerid][Admin] < 5 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR]"embed_white"You are not authorized to use this command!");
EDIT:

and 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!");
WITH 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!");
Well then the player needs to be Admin Lv 5 and Rcon.
Here player cant set admin even though he is rcon or admin.


Try updating your sscanf then.
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: 1 Guest(s)