Hey ich hab nen Fehler also ich will nicht das mit First Last name usw ... Ich gib euch ma den code
:
public OnPlayerConnect(playerid)
{
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
new namestring = strfind(plname, "-", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Your name is not acceptable.");
SendClientMessage(playerid, COLOR_YELLOW2, "[HINT]: Your name must be in the format Firstname_Lastname.");
Kick(playerid);
return 1;
}
Hoffentlich reicht es.