SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 02/11/2014, 01:39 AM   #41
Killa[DGZ]
Huge Clucker
 
Killa[DGZ]'s Avatar
 
Join Date: Feb 2010
Location: Australia
Posts: 387
Reputation: 85
Default Re: Southclaw's & Pottus's Anti-cheat patches

Spose you could also detect the request of spawn "if already spawned" add infraction?

Edit: Tested, not a good enough detection method in my opinion..
__________________

Last edited by Killa[DGZ]; 02/11/2014 at 02:11 AM.
Killa[DGZ] is offline   Reply With Quote
Old 02/11/2014, 02:15 AM   #42
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,191
Reputation: 1241
Default Re: Southclaw's & Pottus's Anti-cheat patches

Are you sure you used the correct exploit? I don't think what your detecting is the same thing.
Pottus is offline   Reply With Quote
Old 02/11/2014, 02:24 AM   #43
Killa[DGZ]
Huge Clucker
 
Killa[DGZ]'s Avatar
 
Join Date: Feb 2010
Location: Australia
Posts: 387
Reputation: 85
Default Re: Southclaw's & Pottus's Anti-cheat patches

Quote:
Originally Posted by Pottus View Post
Are you sure you used the correct exploit? I don't think what your detecting is the same thing.

Probably isn't you know lol,

This is what I mentioned to you a few days ago via PM, the exploit that is designed to severely lag the server by calling numerous callbacks sequentially @20ms or so..

Looking at your code, my patch would also detect it.. but feel free to test your exploit on my server and see what happens.
__________________
Killa[DGZ] is offline   Reply With Quote
Old 02/11/2014, 02:35 AM   #44
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,191
Reputation: 1241
Default Re: Southclaw's & Pottus's Anti-cheat patches

Give me your IP and I will try it thanks.
Pottus is offline   Reply With Quote
Old 02/11/2014, 03:28 AM   #45
Killa[DGZ]
Huge Clucker
 
Killa[DGZ]'s Avatar
 
Join Date: Feb 2010
Location: Australia
Posts: 387
Reputation: 85
Default Re: Southclaw's & Pottus's Anti-cheat patches

Quote:
Originally Posted by Pottus View Post
Give me your IP and I will try it thanks.

Ahh yes I see, completely different thing.. I will implement your code asap.


Good job, an thankyou!
__________________
Killa[DGZ] is offline   Reply With Quote
Old 18/11/2014, 08:51 PM   #46
Jakwob
Huge Clucker
 
Jakwob's Avatar
 
Join Date: Jan 2014
Location: United Kingdom
Posts: 252
Reputation: 27
Default Re: Southclaw's & Pottus's Anti-cheat patches

nice work guys its about time we crack down on hacks.
Jakwob is offline   Reply With Quote
Old 15/01/2015, 02:16 PM   #47
PaulDinam
Gangsta
 
Join Date: Jun 2011
Posts: 897
Reputation: 45
Default Re: Southclaw's & Pottus's Anti-cheat patches

delete
PaulDinam is offline   Reply With Quote
Old 01/03/2015, 04:53 AM   #48
HydraHumza
Gangsta
 
HydraHumza's Avatar
 
Join Date: Oct 2014
Posts: 640
Reputation: 130
Default Re: Southclaw's & Pottus's Anti-cheat patches

Really Appreciate
+REP for this patching and helping us to save our server from cheaters
HydraHumza is offline   Reply With Quote
Old 02/05/2015, 04:02 PM   #49
Yashas
Gangsta
 
Join Date: Jun 2012
Location: India
Posts: 869
Reputation: 296
Default Re: Southclaw's & Pottus's Anti-cheat patches

Code:
public HealthCheck ()
{
    new Float:fhealth,health,ac_health;
    for(new i = 0;i < maxplayers;i++)
	{
	    if(PlayerAC[i][Alive]) //Will not be set for NPCs to skip AC Checks
	    {
	       	if(PlayerData[i][Disconnecting]) continue;
		    GetPlayerHealth(i,fhealth);
		    health = floatround(fhealth);
		    ac_health = floatround(PlayerAC[i][ACHealth]);
		   	if(PlayerAC[i][ACHealthSync])
		    {
		        //SYNC
		        if(health > 100)
		        {
		            if(!PlayerAC[i][GodMode])
		            {
                  		XA_Ban(i,"Health Hacks","Banned for using Health Hacks/Cheats",SERVER);
		            }
		        }
		        else if(health != ac_health)
			 	{
		      		if(!PlayerAC[i][HHNoticeGiven])
		         	{
		          		PlayerAC[i][HHNoticeGiven] = true;
	              		SendAdminNoticeMessage("%s(%d) is suspected to be using health hacks.",PlayerData[i][Name],i);
					}
		            SetPlayerHealth(i,ac_health);
		            PlayerAC[i][ACHealthSync] = false;
					if(++PlayerAC[i][HealthHackCount] > MAX_HEALTH_HACK_COUNT)
					{
         				XA_Ban(i,"Health Hacks","Banned for using Health Hacks/Cheats",SERVER);
					}
		        }
	    	}
		    else
		    {
		        //CHECK DESYNC
		        if(health!=ac_health)
				{
				   	//DESYNCED
				    new sec  = (++PlayerAC[i][ACHealthDesyncTime] / (1000/AC_HEALTH_CHECK_TIME));
				    if(sec > TIME_FOR_DESYNC_KICK)
					{
					   TimePlayer(i);
					   continue;
					}
					if(sec == (TIME_FOR_DESYNC_KICK>>2))
					{
					    SetPlayerHealth(i,ac_health);
					    PlayerAC[i][ACHealthSync] = false;
					    SendAdminNoticeMessage("PlayerDesync:%s(%d) - Health is desynced - %d seconds since desync",PlayerData[i][Name],i,(TIME_FOR_DESYNC_KICK/4));
						continue;
					}
					if(sec == (TIME_FOR_DESYNC_KICK>>1))
					{
	    				SetPlayerHealth(i,ac_health);
	    				PlayerAC[i][ACHealthSync] = false;
					    SendAdminNoticeMessage("PlayerDesync:%s(%d) - Health is desynced - %d seconds since desync",PlayerData[i][Name],i,(TIME_FOR_DESYNC_KICK/2));
						continue;
					}
				}
				else
				{
				    PlayerAC[i][ACHealthDesyncTime]  = PlayerAC[i][HealthHackCount] = 0;
				    PlayerAC[i][ACHealthSync] = true;
				}
	   		}
		}
	}
}
Concept/Idea for getting players in sync before banning them

All the health changes are server sided.

This code is from my server from 2013 so it may be outdated.
Yashas is offline   Reply With Quote
Old 02/05/2015, 04:05 PM   #50
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,191
Reputation: 1241
Default Re: Southclaw's & Pottus's Anti-cheat patches

Health cheating is completely obsolete dude!
http://forum.sa-mp.com/showthread.php?t=563387

Lagcomp is annoyingly inaccurate (some shots don't do damage) any server using Lagcomp should use the weapon include or have a skinhit system with server sided health.

Pottus 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]HP,Money Cheat and Armour Cheat Meow22 Filterscripts 23 03/03/2014 03:38 PM
[FilterScript] [K.A.S] Knight's Anti Cheat (Anti: Armas, Spam, DB, MaxPing, Palavrões, Money Hack) The Knight Lançamentos/Releases 5 05/05/2011 04:41 AM


All times are GMT. The time now is 02:01 AM.


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