Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
- {
- if(bodypart == 3)
- {
- if(playerDB[damagedid][suliemene])
- {
- new Float:health;
- GetPlayerHealth(damagedid,health);
- new Float:AR;
- GetPlayerArmour(damagedid, AR);
- if(AR > 0.0) SetPlayerArmour(damagedid, AR - (amount/2));
- else SetPlayerHealth(damagedid, health - (amount/2));
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement