Guest User

Realistic Gun Damage _ By Nines

a guest
Jul 11th, 2013
855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.55 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3.  
  4. // Don't remeove credits guys. Copyright 2013 - Nines.
  5. #define FILTERSCRIPT
  6.  
  7. #include <a_samp>
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.     print("\n--------------------------------------");
  14.     print("Realistic Gun Damage by Nines");
  15.     print("--------------------------------------\n");
  16.     return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21.     return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28.     print("\n----------------------------------");
  29.     print(" Blank Gamemode by your name here");
  30.     print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34.  
  35. forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid);
  36. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  37. {
  38.     new Float:HP;
  39.     GetPlayerHealth(playerid, HP);
  40.     if(weaponid == 24) SetPlayerHealth(playerid, HP-50);
  41.     if(weaponid == 22) SetPlayerHealth(playerid, HP-10);
  42.     if(weaponid == 32) SetPlayerHealth(playerid, HP-25);
  43.     if(weaponid == 28) SetPlayerHealth(playerid, HP-10);
  44.     if(weaponid == 23) SetPlayerHealth(playerid, HP-10);
  45.     if(weaponid == 31) SetPlayerHealth(playerid, HP-35);
  46.     if(weaponid == 30) SetPlayerHealth(playerid, HP-40);
  47.     if(weaponid == 29) SetPlayerHealth(playerid, HP-18);
  48.     if(weaponid == 34) SetPlayerHealth(playerid, HP-300);
  49.     if(weaponid == 33) SetPlayerHealth(playerid, HP-35);
  50.     if(weaponid == 25) SetPlayerHealth(playerid, HP-50);
  51.     if(weaponid == 27) SetPlayerHealth(playerid, HP-55);
  52.     return 1;
  53. }
  54. //Copyright 2013 - Nines.
Advertisement
Add Comment
Please, Sign In to add comment