15.03.2017, 12:53
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
Where should i put this? I tried with OnPlayerTakeDamage bat then opponent lose less hp not me
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 ) );