Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- new Float:DmgLost[MAX_PLAYERS];
- new Float:DmgDone[MAX_PLAYERS];
- if(GetPlayerTeam(playerid) == GetPlayerTeam(issuerid)) return 1;
- amount = DmgLost[playerid];
- new Float:armour, Float:health;
- GetPlayerHealth(playerid, health);
- GetPlayerArmour(playerid, armour);
- DmgDone[issuerid] = DmgDone[issuerid] + floatround(amount);
- return 1;
- }
Add Comment
Please, Sign In to add comment