Creating Anti-Health Hack
#1

pawn Код:
if(PlayerInfo[playerid][pArmour] == 0)
    {
        new Float:health =GetPlayerHealth(playerid,health);
        SetPlayerHealthEx(playerid,health-amount);
    }
    else
    {
        new Float:armour = GetPlayerArmour(playerid,armour);
        SetPlayerArmourEx(playerid,armour-amount);
        if(PlayerInfo[playerid][pArmour] < 0)
        {
            new Float:hh =GetPlayerHealth(playerid,hh);
            SetPlayerHealthEx(playerid,hh+PlayerInfo[playerid][pArmour]);
            PlayerInfo[playerid][pArmour]=0;
        }
    }
this code i placed under OnPlayerTakeDamage(....)

but if i get any amount of damage my health goes to 0.0 (Dead)

and yea pArmour and pHealth are float values
Reply


Messages In This Thread
Creating Anti-Health Hack - by AroseKhanNiazi - 09.09.2014, 16:37
Re: Creating Anti-Health Hack - by Stinged - 09.09.2014, 16:43
Re: Creating Anti-Health Hack - by AroseKhanNiazi - 09.09.2014, 16:59
Re: Creating Anti-Health Hack - by PMH - 09.09.2014, 17:45
Re: Creating Anti-Health Hack - by AroseKhanNiazi - 10.09.2014, 10:34

Forum Jump:


Users browsing this thread: 3 Guest(s)