if(PlayerInfo[playerid][pAdmin] < 1 || !IsPlayerAdmin(playerid)) ....
#8

Quote:
Originally Posted by Brandon_More
Посмотреть сообщение
pawn Код:
if(!PlayerInfo[playerid][pAdmin] && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED, "You cannot use this command");
Works for me :/
Yep, this works for me, thanks!
+repped both for trying to help
EDIT: Yes, but.. Now there's another problem.

pawn Код:
CMD:givescoreall(playerid, params[]) {
    new score;
    if(PlayerInfo[playerid][pAdmin] < 3 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "[ADMIN] - You're not a high enough level to use this command!");
This will work with every level if it's set to "!PlayerInfo..."

Well, should i just remove the "!IsPlayerAdmin"? ;d
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)