Whick callback i should use if i want make less damage?
#1

Hi
i want make if someone hit me i lose less damage. So where i should try make this system at which callback, because OnPlayerTakeDamage would work with opponent not me, right? So i will use this code
Код:
    if ( amount > 2 )
    {
    new Float:playerHp;
    GetPlayerHealth( playerid, playerHp );
    SetPlayerHealth( playerid, playerHp - ( amount*5/100 ) );
Where should i put this? I tried with OnPlayerTakeDamage bat then opponent lose less hp not me
Reply


Messages In This Thread
Whick callback i should use if i want make less damage? - by henkas - 15.03.2017, 12:53
Re: Whick callback i should use if i want make less damage? - by Flamehaze7 - 15.03.2017, 13:47
Re: Whick callback i should use if i want make less damage? - by henkas - 15.03.2017, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)