forward NameChecker(playerid);public NameChecker(playerid){ new namestring = strfind(pName(playerid), \"_\", true); if(namestring == -1) { SendClientMessage(playerid, COLOR_GREEN, \"===============================================\"); SendClientMessage(playerid, COLOR_GREEN, \"A felhasználóneved nem elfogadható!\"); SendClientMessage(playerid, COLOR_GREEN, \"A neved legyen Vezetéknév_Keresztnév formátumú!\"); SendClientMessage(playerid, COLOR_GREEN, \"===============================================\"); SetTimerEx(\"KickForName\",500,false,\"d\",playerid); return 1; } return 1;}forward KickForName(playerid);public KickForName(playerid){ new string[128]; new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); format(string, sizeof(string), \"%s ki lett rúgva hibás név miatt!\",pName(playerid)); SendClientMessageToAll(COLOR_GREEN,string);Kick(playerid);}
forward KickTimer(playerid);public KickTimer(playerid){Kick(playerid);return 1;}stock _Kick(playerid){SetTimerEx(\"KickTimer\", 100, 0, \"d\", playerid);return 1;}#define Kick _Kick
forward NameChecker(playerid);public NameChecker(playerid){ new namestring = strfind(pName(playerid), \"_\", true); if(namestring == -1) { SendClientMessage(playerid, COLOR_GREEN, \"===============================================\"); SendClientMessage(playerid, COLOR_GREEN, \"A felhasználóneved nem elfogadható!\"); SendClientMessage(playerid, COLOR_GREEN, \"A neved legyen Vezetéknév_Keresztnév formátumú!\"); SendClientMessage(playerid, COLOR_GREEN, \"===============================================\"); SetTimerEx(\"KickForName\",500,false,\"i\",playerid); new string[128]; format(string, sizeof(string), \"%s ki lett rúgva hibás név miatt!\",pName(playerid)); SendClientMessageToAll(COLOR_GREEN,string); } return 1;}forward KickForName(playerid);public KickForName(playerid){ Kick(playerid);}