Armour glitch? Anticheat problems...
#1

Hi!
I have some questions regarding armour functions:
- Does anyone ever reported and confirmed bug causing adding armour to player when he ALT-TABbed?
- Is GetPlayerArmour function reliable? (is anticheat's code shown above always returning correct amount of armour everytime and makes no false positives?)

I need these answers because I need some evidence on some very annoying cheater, I would REALLY appreciate it if some of the SA:MP devs could answer me (more authority ;P).
Thanks in advance for answers!


Here's the code, it's custom-built and run by 10 second timer:
Код:
public CheckArmour()
{
	new Float:adata;
	for (new i=0;i<SLOTS;i++)
	{
	  if (IsPlayerConnected(i) == 1 && IsPlayerLAdmin(i) != 1)
	  {
	  	GetPlayerArmour(i, adata);
	  	if(adata !=0)
	  	{
	    	new pname[MAX_PLAYER_NAME];
				GetPlayerName(i, pname, sizeof(pname));
				printf("ANTICHEAT: Found %f armour in player %s (id: %d) inventory, banning", adata, pname, i);
				BanPlayer(i, ARMOR);
	    	return 1;
	 		}
		}
	}
	return 1;
}
Reply
#2

Bump, please help me, I need this info...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)