Advertisement
Nofear192

Weapon Damager

Sep 30th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  2. {
  3. if(issuerid != INVALID_PLAYER_ID)
  4. {
  5. new Float: health;
  6. GetPlayerHealth(playerid, health);
  7. if(weaponid == 1)
  8. SetPlayerHealth(playerid,health-5);
  9. if(weaponid == 16)
  10. SetPlayerHealth(playerid,health-60);
  11. if(weaponid == 22)
  12. SetPlayerHealth(playerid,health-5);
  13. if(weaponid == 23)
  14. SetPlayerHealth(playerid,health-5);
  15. if(weaponid == 24)
  16. SetPlayerHealth(playerid,health-5);
  17. if(weaponid == 25)
  18. SetPlayerHealth(playerid,health-20);
  19. if(weaponid == 26)
  20. SetPlayerHealth(playerid,health-35);
  21. if(weaponid == 27)
  22. SetPlayerHealth(playerid,health-25);
  23. if(weaponid == 28)
  24. SetPlayerHealth(playerid,health-20);
  25. if(weaponid == 29)
  26. SetPlayerHealth(playerid,health-15);
  27. if(weaponid == 30)
  28. SetPlayerHealth(playerid,health-25);
  29. if(weaponid == 31)
  30. SetPlayerHealth(playerid,health-25);
  31. if(weaponid == 32)
  32. SetPlayerHealth(playerid,health-20);
  33. if(weaponid == 34)
  34. SetPlayerHealth(playerid,health-50);
  35. if(weaponid == 35)
  36. SetPlayerHealth(playerid,health-99);
  37. if(weaponid == 38)
  38. SetPlayerHealth(playerid,health-99);
  39. }
  40. return 1;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement