15.01.2014, 15:19
well, i dont think this will works for players
i'm using a little Anti Hack system
i'm using a little Anti Hack system
pawn Код:
#include <a_samp>
#include <foreach>
new Exception_Health[MAX_PLAYERS]; //on top
//------ forward lacks
forward AntiHealthHack();
new Float:pHealth[MAX_PLAYERS];
//---ongamemodeint
SetTimer("AntiHealthHack", 1000, true);
//-------
public AntiHealthHack()
{
foreach(Player, i)
{
new Float:Health;
GetPlayerHealth(i, Health);
if(Health != pHealth[i] && Health > 0)
{
if(Health > pHealth[i] && Exception_Health[i] == 0)
{
BanEx(i, "Health Hacker");
}
else if(Health > pHealth[i] && Exception_Health[i] == 1)
{
pHealth[i] = Health;
Exception_Health[i] = 0;
}
}
}
return 1;
}