OnPlayerTakeDamage & OnPlayerGiveDamage bug?
#1

I want to make custom damage system but I have an issue. I tried everything - I wanted to make player deathless from everyweapon. It works! But, weaponid 0 always take damage. Why?
Code:

public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
new Float:HP;
GetPlayerHealth(damagedid, HP);
SetPlayerHealth(damagedid, HP);
return 1;
}

Tried to make it with OnPlayerTakeDamage but it always first stolen player's HP and restored it back.

// Edit: Sorry, I forgot to say: I'm on lastest 0.3.8 SAMP Version.
Reply


Messages In This Thread
OnPlayerTakeDamage & OnPlayerGiveDamage bug? - by Milak - 08.02.2018, 12:49
Re: OnPlayerTakeDamage & OnPlayerGiveDamage bug? - by Mugala - 08.02.2018, 12:52
Re: OnPlayerTakeDamage & OnPlayerGiveDamage bug? - by Milak - 08.02.2018, 12:58

Forum Jump:


Users browsing this thread: 1 Guest(s)