22.02.2010, 14:17
Quote:
Originally Posted by Don Correlli
There are many scripts on this forum for checking the First_Last name format - http://forum.sa-mp.com/index.php?action=search
|
pawn Код:
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Immigration Department: Your name is not acceptable.");
SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Your name must be in the format Firstname_Lastname.");
Kick(playerid);
return 1;
}
OnPlayerConnect