18.04.2009, 11:01
Im looking for a filter so when people Register they have to have RPG names. IF you dont you get kicked? is there a script around for it? iv looked but nothing come up?
new planame[MAX_PLAYER_NAME];
GetPlayerName(playerid, planame, sizeof(planame));
new namestring = strfind(planame, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, 0xFF0000AA, "Your name must be in the format: Firstname_Lastname.");
Kick(playerid);
return 1;
}
Originally Posted by MenaceX^
But if the player enters with numbers? or more than 1 _?
|