12.06.2017, 04:08
Code:
new name[24], string[2]; GetPlayerName(playerid, name, sizeof(name)); if(sscanf(name, "{p<_>s[12]s[12]}") != 0) { SendClientMessage(playerid, 0xFFFFFFFF, "* Invalid roleplay username, kicked."); DelayedKick(playerid); } else if { for(new i = 0; i < 10; i ++) { format(string, sizeof(string), "%d", i); if(strfind(name, string, true) != -1) { SendClientMessage(playerid, 0xFFFFFFFF, "* Invalid roleplay username, kicked."); DelayedKick(playerid); } } } else { //code... }