Quote:
Originally Posted by Roko_foko
pawn Код:
//if(!IsPlayerAdmin(playerid)) <-- add this if(strcmp(playername, "Dan", true) == 0) { return 0;//return 1; put here } else { SendClientMessage(playerid, COLOR_YELLOW, "Sorry, that name is too short, please change it."); SendClientMessage(playerid, COLOR_YELLOW, "Please use the Firstname_Lastname format."); SendClientMessage(playerid, COLOR_YELLOW, "Name Examples: Jhonny_John, Dan_Wilson, Sarah_Raven"); Kick(playerid); return 1; }
|
Thank you so much,
I changed
pawn Код:
if(!IsPlayerAdmin(playerid))
into
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
and it works perfectly. + Rep.