27.10.2012, 07:30
Hi,
I want to do if player take damage from his self ex: fall down from house. Then player will get his lose hp. Is it work?
Sorry for my bad english.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { if( issuerid == playerid) { GetPlayerHealth( playerid, HealthSave[ playerid ] ); SetPlayerHealth( playerid, HealthSave[ playerid ]+amount ); } return 1; }
Sorry for my bad english.