anti-inv.
#1

Hi,

This code will work if player use health hack?

Code:
public OnPlayerTakeDamage( playerid, issuerid, Float:amount, weaponid)
{
new
  			Float: hp,
    		Float: arm,
     		Float: HitPoints
 		;
  		GetPlayerHealth(playerid, hp);
  		GetPlayerArmour(playerid, arm);
   		HitPoints = hp + arm;

		if(last_hit[playerid] < HitPoints)
		{
 			inv_w[playerid]++;
 		}
  		else
  		{
   			inv_w[playerid] = 0;
   		}
		if(inv_w[playerid] > 12)
		{
 			SendClientMessage(playerid, COLOR_BLUE, "INV");
   			SetTimerEx ( "_Kick", 100, false, "d", playerid );
   		}
    	last_hit[playerid] = HitPoints;
}
Reply


Messages In This Thread
anti-inv. - by audriuxxx - 04.05.2013, 08:32
Re: anti-inv. - by ]Rafaellos[ - 04.05.2013, 08:37
Re: anti-inv. - by audriuxxx - 04.05.2013, 08:43
Re: anti-inv. - by Yashas - 04.05.2013, 08:47
Re: anti-inv. - by audriuxxx - 04.05.2013, 08:52
Re: anti-inv. - by Yashas - 04.05.2013, 08:55
Re: anti-inv. - by audriuxxx - 04.05.2013, 09:00
Re: anti-inv. - by ]Rafaellos[ - 04.05.2013, 09:13
Re: anti-inv. - by audriuxxx - 04.05.2013, 09:27
Re: anti-inv. - by ]Rafaellos[ - 04.05.2013, 10:18

Forum Jump:


Users browsing this thread: 1 Guest(s)