public NameCheck(playerid); { new string[256]; new playername[MAX_PLAYER_NAME],f; new coords[9][64]; GetPlayerName(playerid,playername,MAX_PLAYER_NAME); split(playername, coords, '_'); for(new x=0; x<=9; x++) { if(strlen(coords[x]) > 0) { f ++; } } if(f < 1 || f > 1) { format(string, sizeof(string), "AUTO-KICK: %s was kicked from the server, Reason: Invalid Name.",playername); KickLog(string); SendClientMessage(playerid,COLOR_YELLOW,"Invalid Name: Use this format: Firstname_Lastname."); SendClientMessageToAll(COLOR_LIGHTRED, string); Kick(playerid); }