29.10.2011, 19:11
So, I have this...
It should not be kicking players who have a name format of Firstname_Lastname, but it is kicking EVERY username it gets thrown at it...
Any help will be appreciated with +rep!
Thanks,
nmader.
Код:
public OnPlayerConnect(playerid) { new plname[MAX_PLAYER_NAME]; new namestring = strfind(plname, "_", true); if(namestring == -1) { SendClientMessage(playerid, 0xAA3333AA, "SERVER: Incorrect name format: Firstname_Lastname."); Kick(playerid); return 1; } else { SendClientMessage(playerid, 0xDABB3EAA, "Welcome to World War III Roleplay!"); return 1; } }
Any help will be appreciated with +rep!
Thanks,
nmader.