Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: [KB]ViceMania on December 13, 2012, 12:15:22 pm
-
I have a problem with "GUPS", I need a auto kick for names: "! @ # $% ^", because registration, make crash. I hope that if someone would help me.
Thanks Advanced! :P
Sorry for my bad English.
-
I have a problem with "GUPS", I need a auto kick for names: "! @ # $% ^", because registration, make crash. I hope that if someone would help me.
Thanks Advanced! :P
Sorry for my bad English.
si nadie te lo da de aki al sabado yo lo publico
porke voy al ciber el sabado
ke desde mi celular es muy dificil postear todo un comando
;D 8)
-
aledark24 :D:D:D ok :P i wait :P :D
-
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]
-
THANKS YOU!! Riders :) :)