16.08.2012, 17:47
i got an anti name if i put it at onplayerconnect i get Connected then restarting cant connect tht happens if i have name even with _ FirstName_LastName
EDIT:no warnings but cant work..
PHP код:
new pname[MAX_PLAYER_NAME];
new namestr = strfind(pname, "_", true);
if(namestr == -1)
{
GetPlayerName(playerid, pname, sizeof(pname));
SendClientMessage(playerid, COLOR_RED, "Your name must be like this Firstname_Lastname");
Kick(playerid);
return 1;
}