Guest User

Untitled

a guest
Apr 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  2. {
  3. new Float:DmgLost[MAX_PLAYERS];
  4. new Float:DmgDone[MAX_PLAYERS];
  5. if(GetPlayerTeam(playerid) == GetPlayerTeam(issuerid)) return 1;
  6. amount = DmgLost[playerid];
  7. new Float:armour, Float:health;
  8. GetPlayerHealth(playerid, health);
  9. GetPlayerArmour(playerid, armour);
  10. DmgDone[issuerid] = DmgDone[issuerid] + floatround(amount);
  11. return 1;
  12. }
Add Comment
Please, Sign In to add comment