How could i make the server ignore admin names
#2

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.
Reply


Messages In This Thread
How could i make the server ignore admin names - by Deal-or-die - 16.03.2011, 12:51
Re: How could i make the server ignore admin names - by Stigg - 16.03.2011, 13:20
Re: How could i make the server ignore admin names - by Deal-or-die - 16.03.2011, 13:45
Re: How could i make the server ignore admin names - by Stigg - 16.03.2011, 13:47
Re: How could i make the server ignore admin names - by Serbish - 16.03.2011, 13:51
Re: How could i make the server ignore admin names - by Stigg - 16.03.2011, 13:56

Forum Jump:


Users browsing this thread: 2 Guest(s)