anti cj hack
#1

Hi,

SetTimer( "AntiReconnect", 15000, true );



Код:
forward AntiReconnect( );
public AntiReconnect( )
{
       foreach(Player, playerid)
       {
              new State = GetPlayerState( playerid );
              if( State == 1 || State == 2 || State == 3 || State == 8 )
              {
                     if( !Spawned[ playerid ] )
                     {
                            printf ( "Player [ ID: %i ] kicked for reconnect.", playerid );
                            Kick ( playerid );
                     }
              }
       }
}
This is accurate? if player is not using hacks, when he spawn onplayerspawn allways get called?

new Spawned[ MAX_PLAYERS ];

OnPlayerSpawn

Spawned[ playerid ] = true;
Reply
#2

So you want to kick a player who reconnects and spawns within 15 seconds? What about those who are having a timeout for one second only (can happen) and login and spawn fast?

I can't answer your question, but I think you should keep this also on your mind.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)