16.07.2015, 16:54
Quote:
Код:
public OnPlayerConnect(playerid) { new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1]; GetPlayerName(playerid, name, sizeof(name)); // Has numbers if(strfind(name, "_Smith", true) != -1) { SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}You cannot use _Smith here."); new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s has been kicked from the server for having a Non-RP name.", name); Kick(playerid); } } |