16.08.2012, 18:46
i have an anti-name but it doesent work it workes for everybody its supposed to work only the guys that dont have FirstName_LastName!and the server restarts at onplayerconnect please help!
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;
}