02.10.2011, 07:16
pawn Code:
if(strfind(PlayerInfo[playerid][pRoleplayName], "_", true) == -1) //Find '_' In Names
{
new string[256];
format(string, sizeof(string),"[Auto Kick] %s has been kicked from the server [Reason: Invalid Roleplay Name]", GetName(playerid)); //Kick Message
SendClientMessageToAll(COLOR_RED , string); //Kick Message
SendClientMessage(playerid, COLOR_WHITE, "__________________________________________________________________________");
SendClientMessage(playerid, COLOR_YELLOW, "You have been kicked from the server.");
SendClientMessage(playerid, COLOR_YELLOW, "Reason: Invalid Name.");
SendClientMessage(playerid, COLOR_YELLOW, "Your roleplay name is non-roleplay, please use Firstname_LastName format.");
SendClientMessage(playerid, COLOR_YELLOW, "(Examples: John_Smith, James_Garcia, Vikas_Gothwal)");
SendClientMessage(playerid, COLOR_WHITE, "__________________________________________________________________________");
Kick(playerid);
}