TonyVk

Untitled

Aug 24th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  2. {
  3. if(weaponid >= 1 && weaponid <= 15)
  4. {
  5. Weapons[playerid][Mammo]--;
  6. }
  7. if(weaponid >= 16 && weaponid <= 18 || weaponid == 39)
  8. {
  9. Weapons[playerid][Tammo]--;
  10. }
  11. if(weaponid >= 22 && weaponid <= 24)
  12. {
  13. Weapons[playerid][Pammo]--;
  14. }
  15. if(weaponid >= 25 && weaponid <= 27)
  16. {
  17. Weapons[playerid][Sammo]--;
  18. }
  19. if(weaponid == 30 || weaponid == 31)
  20. {
  21. Weapons[playerid][Aammo]--;
  22. }
  23. if(weaponid == 33 || weaponid == 34)
  24. {
  25. Weapons[playerid][Rammo]--;
  26. }
  27. if(weaponid >= 35 && weaponid < 38)
  28. {
  29. Weapons[playerid][Hammo]--;
  30. }
  31. SetTimerEx("CheckAmmo",800,false,"ii",playerid,weaponid);
  32. return 1;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment