SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 07/08/2017, 03:11 PM   #1
Bussyman
Big Clucker
 
Join Date: Apr 2017
Posts: 161
Reputation: 0
Default anti cj hack

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;
Bussyman is offline   Reply With Quote
Old 08/08/2017, 06:38 AM   #2
DarkZero
Big Clucker
 
DarkZero's Avatar
 
Join Date: Apr 2011
Location: Germany
Posts: 86
Reputation: 8
Default Re: anti cj hack

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.
__________________
Filterscripts:
Anti Fake-Kill

Gamemodes:
xTreme Freeroam Server
DarkZero is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Anti-Cheat ANTIFLY\ANTI GOD\ANTI SKIN BUG\ANTI MONEY HACK\ANTI JETPACK HACK\ANTI GODOFCARS\ANTI FAKEKILL RedMF Lanšamentos/Releases 19 20/07/2018 01:32 AM
Request anti cheat, anti flyhack | anti ammo hack | anti healt hack | anti aimboter Izaki Scripting Help 1 15/06/2015 04:21 PM
Vehicle fly hack /speed hack anti cheat help MBilal Scripting Help 5 08/09/2014 09:17 PM


All times are GMT. The time now is 10:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.