04.05.2013, 08:32
Hi,
This code will work if player use health hack?
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; }