[Include] OnPlayerDamage(with HealthLost and ArmourLost) 0.3d
#1

OnPlayerDamage include v3


v3: include renamed to OnPlayerDamage, added OnPlayerGiveDamage.

Find your callback
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
Replace with
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:HealthLost, Float:ArmourLost, weaponid)
Find your callback
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
Replace with:
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:HealthLost, Float:ArmourLost, weaponid)
And of course, include this on top:
pawn Код:
#include <OPTDex>
Download:
Version 3.0 HERE
Version 2.0: HERE
Version 1.1: HERE

Enjoy!
Haven't tested it well, because not using 0.3d ATM.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)