SA-MP Forums Archive
Anti Throwing Players - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Anti Throwing Players (/showthread.php?tid=636967)



Anti Throwing Players - Nin9r - 06.07.2017

Hi. Recently i saw a cheater who can throw any player in random directions, also with vehicles. What's the name of that cheat? How can I make an anticheat to block it?


Re: Anti Throwing Players - iLearner - 06.07.2017

Search for 'anti vehicle warp hack'.


Re: Anti Throwing Players - Nin9r - 06.07.2017

I added already this anti car warp:

Код HTML:
public OnPlayerStateChange(playerid, newstate, oldstate) {
	#if defined DEBUG
	    printf("[debug] OnPlayerStateChange(%d, %d, %d)", playerid, newstate, oldstate);
	#endif
	if( newstate == PLAYER_STATE_DRIVER && PlayerData[playerid][pAdminLevel] == 0 )
    {
        if( GetPlayerVehicleID( playerid ) != p_CarWarpVehicleID[ playerid ] )
        {
	        if( p_CarWarpTime[ playerid ] > gettime( ) )
	        {
				format(string128, sizeof(string128),"[AdmBot]{FFFFFF} %s(%d) has been kicked for car warping.", PlayerData[playerid][pNormalName], playerid );
	        	SendClientMessageToAll(COLOR_LIGHTRED, string128);
				KickEx(playerid);
	            return 1;
	        }
	        p_CarWarpTime[ playerid ] = gettime( ) + 1;
	        p_CarWarpVehicleID[ playerid ] = GetPlayerVehicleID( playerid );
		}
    }
    return 1;
}
How can I make one for anti throwing players?


Re: Anti Throwing Players - Pizzy - 07.07.2017

You'd need to test the hack out yourself and see what exactly it does to throw the players.. I've seen so many different sort of hacks so I can't help - but I recommend setting loads of debugs up and try using the hacks yourself to try and find some sort of pattern/rythym to auto block.

Do any of the latest anti-cheat plugins have this feature? Go and take a look, and see how they've done it.