Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

anti cj hack

$
0
0
Hi,

SetTimer( "AntiReconnect", 15000, true );



Code:

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;

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>