Guest User

FS:Šūvis

a guest
Feb 22nd, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3.  
  4. public OnFilterScriptInit()
  5. {
  6. print("\n--------------------------------------");
  7. print(" FS BY:sNo FS:Suvis");
  8. print("--------------------------------------\n");
  9. return 1;
  10. }
  11.  
  12. public OnFilterScriptExit()
  13. {
  14. return 1;
  15. }
  16.  
  17. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
  18. {
  19. if(issuerid != INVALID_PLAYER_ID && weaponid == 34,25,24 && bodypart == 9)// su sniper pasauna i galva
  20. {
  21. SetPlayerHealth(playerid, 0.0);
  22. }
  23. if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && bodypart == 5)// su sg pasauna i koja
  24. {
  25. new Float:hp;
  26. GetPlayerHealth(playerid, hp);
  27. SetPlayerHealth(playerid, hp -= 20);
  28. }
  29. if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && bodypart == 6)// pasauna i koja su sg
  30. {
  31. new Float:hp;
  32. GetPlayerHealth(playerid, hp);
  33. SetPlayerHealth(playerid, hp -= 20);
  34. }
  35. if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && bodypart == 3)// su sg passauna i kuna
  36. {
  37. new Float:hp;
  38. GetPlayerHealth(playerid, hp);
  39. SetPlayerHealth(playerid, hp -= 50);
  40. }
  41. if(issuerid != INVALID_PLAYER_ID && weaponid == 4 && bodypart == 9)// su peiliu i galva
  42. {
  43. new Float:hp;
  44. GetPlayerHealth(playerid, hp);
  45. SetPlayerHealth(playerid, hp -= 100);
  46. }
  47. if(issuerid != INVALID_PLAYER_ID && weaponid == 4 && bodypart == 3)// su peiliu i kuna
  48. {
  49. new Float:hp;
  50. GetPlayerHealth(playerid, hp);
  51. SetPlayerHealth(playerid, hp -= 50);
  52. }
  53. if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && bodypart == 7)// su sg passauna i ranka
  54. {
  55. new Float:hp;
  56. GetPlayerHealth(playerid, hp);
  57. SetPlayerHealth(playerid, hp -= 35);
  58. }
  59. if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && bodypart == 6)// su sg passauna i ranka
  60. {
  61. new Float:hp;
  62. GetPlayerHealth(playerid, hp);
  63. SetPlayerHealth(playerid, hp -= 35);
  64. }
  65. return 1;
  66. }
Advertisement
Add Comment
Please, Sign In to add comment