21.01.2017, 13:53
Quote:
Example:
Current damage per shot by Deagle is 10hp (you have players health's saved in their data array) You want to make the damage 12hp: and so on... PS: JE: I need a good house interior map o.o |
Code:
OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) { if (weaponid == 24) amount = 15.0; //desired damage new Float:health; GetPlayerHealth(playerid, health); SetPlayerHealth(playerid, health - amount); return 1; }