Advertisement
Guest User

Untitled

a guest
Jun 7th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.42 KB | None | 0 0
  1. public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
  2. {
  3.     if(bodypart == 3)
  4.     {
  5.         if(playerDB[damagedid][suliemene])
  6.         {
  7.             new Float:health;
  8.             GetPlayerHealth(damagedid,health);
  9.             new Float:AR;
  10.             GetPlayerArmour(damagedid, AR);
  11.             if(AR > 0.0) SetPlayerArmour(damagedid, AR - (amount/2));
  12.             else SetPlayerHealth(damagedid, health - (amount/2));
  13.         }
  14.     }
  15.     return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement