Quote:
Originally Posted by Deal-or-die
When the server GMXes if you are on admin duty EG a name that doesn't use the format EG: Firstname_Lastname
it ill kick you or force you to change your name, am i able to mark admins outta this?
pawn Код:
new playernamesplit[3][MAX_PLAYER_NAME]; split(Name, playernamesplit, '_');
if (!strlen(playernamesplit[0]) || !strlen(playernamesplit[1])) { new NameStr[MAX_PLAYER_NAME]; format(NameStr, sizeof(NameStr), "NONRPNAME%d", playerid); SetPlayerName(playerid, NameStr);
printf("[system] %s has been forced to the name change menu.", Name); //TogglePlayerControllable(playerid, false); ShowPlayerDialog(playerid, 594, DIALOG_STYLE_INPUT, "Roleplay Name", "Please select a new, valid roleplaying name.", "Change", "Cancel"); SendClientMessage(playerid, WHITE, "Your name is not valid, please pick a new one. Refrain from using tags, please and include 1 underscore."); }
by using something like
pawn Код:
if(Player[playerid][AdminDuty] >= 1) Or if(Player[playerid][AdminLevel] >= 1)
Cheers, Steve
|
Yes something like that, you answered your own question.