Advertisement
Guest User

Untitled

a guest
May 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  2. {
  3. for(new i = 0; i < MAX_PLAYERS; i++)
  4. {
  5. if(IsPlayerConnected(i))
  6. {
  7. if(PlayerInfo[i][pLeader] == 8 || PlayerInfo[i][pMember] == 8)
  8. {
  9. new Float:HitmanDamage;
  10. GetPlayerHealth(playerid, HitmanDamage);
  11. if(weaponid == 34) SetPlayerHealth(playerid, HitmanDamage-100);
  12. }
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement