Author Topic: Help..  (Read 3267 times)

0 Members and 1 Guest are viewing this topic.

Offline [KB]ViceMania

  • Wiseguy
  • **
  • Posts: 53
  • Mega War server administrator
    • View Profile
Help..
« 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.

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Help..
« Reply #1 on: December 13, 2012, 01:49:19 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.
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)
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline [KB]ViceMania

  • Wiseguy
  • **
  • Posts: 53
  • Mega War server administrator
    • View Profile
Re: Help..
« Reply #2 on: December 13, 2012, 07:17:48 pm »
aledark24 :D:D:D ok :P i wait :P :D

Offline Riders

  • Street Thug
  • *
  • Posts: 16
    • View Profile
Re: Help..
« Reply #3 on: December 17, 2012, 08:01:27 am »
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]

Offline [KB]ViceMania

  • Wiseguy
  • **
  • Posts: 53
  • Mega War server administrator
    • View Profile
Re: Help..
« Reply #4 on: December 18, 2012, 03:16:35 pm »
THANKS YOU!! Riders  :) :)