26.04.2010, 11:33
Код:
public OnPlayerConnect(playerid) { new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid, plname, sizeof(plname)); new namestring = strfind(plname, "_", true); if(namestring == -1) { SendClientMessage(playerid, COLOR_YELLOW2, "[NIMIKONTROLLIJA] Su nimi ei ole sobiv!"); SendClientMessage(playerid, COLOR_YELLOW2, "[NIMIKONTROLLIJA] Su nimi peab olema formaatides Eesnimi_Perenimi."); Kick(playerid); return 1; } return 1; }
Theres still saving accounts, when anyone comes without _ and kicked, then saved accounts to users folder.