Add This Function for Auto-Kick for Invalid Nick-Names.
[pawn]public IsInvalidChar( c[ ] )
{
if (strfind(c, "*", true) != -1 ||
strfind(c, "?", true) != -1 ||
strfind(c, ">", true) != -1 ||
strfind(c, "<", true) != -1 ||
strfind(c, "¡", true) != -1 ||
strfind(c, "$", true) != -1 ||
strfind(c, "%", true) != -1 ||
strfind(c, "&", true) != -1 ||
strfind(c, ";", true) != -1 ||
strfind(c, "|", true) != -1 ||
strfind(c, ":", true) != -1 ||
strfind(c, "£", true) != -1 ||
strfind(c, "\\", true) != -1 ||
strfind(c, "{{", true) != -1 ||
strfind(c, "\"", true) != -1 ||
strfind(c, "/", true) != -1 ||
strfind(c, "/", true) != -1) return 1;
if (isNumeric(c)) return 1;
else return 0;
return 1;
}[/pawn]
And on Public OnPlayerConnect( playerid ); Add this Function
[pawn]if ( strcmp( gPlayers[ playerid ], "ipbans", true ) == 0 || strcmp( gPlayers[ playerid ], "none", true ) == 0 )
{
format( string, 128, "** Auto-Kick:[ %s ] Reason:[ Invalid Nick-Name ]", gPlayers[ playerid ] );
SendClientMessageToAll( PURPLEE, string );
Kick( playerid );
return 1;
}[/pawn]