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.