BDGAME

Definitive Gaming Damage System

May 26th, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     print("\n--------------------------------------");
  10.     print("    Weapon Damage Script By Hashish     ");
  11.     print("---------------------------------------n");
  12.     return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17.     return 1;
  18. }
  19.  
  20. #else
  21.  
  22. main()
  23. {
  24.     print("\n----------------------------------");
  25.     print("   Weapon Damage Script By Hashish  ");
  26.     print("----------------------------------\n");
  27. }
  28.  
  29. #endif
  30.  
  31.  
  32. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
  33. {
  34.     if(issuerid != INVALID_PLAYER_ID)
  35.     {
  36.         new Float:health;
  37.         GetPlayerHealth(playerid, health);
  38.         if(weaponid == 7)
  39.             SetPlayerHealth(playerid,health-12);
  40.         if(weaponid == 8)
  41.             SetPlayerHealth(playerid,health-70);
  42.         if(weaponid == 4)
  43.             SetPlayerHealth(playerid,health-60);
  44.         if(weaponid == 3)
  45.             SetPlayerHealth(playerid,health-11);
  46.         if(weaponid == 5)
  47.             SetPlayerHealth(playerid,health-11);
  48.            if(weaponid == 23)
  49.             SetPlayerHealth(playerid,health-50);
  50.         if(weaponid == 24)
  51.             SetPlayerHealth(playerid,health-70);
  52.         if(weaponid == 22)
  53.             SetPlayerHealth(playerid,health-39);
  54.         if(weaponid == 25)
  55.             SetPlayerHealth(playerid,health-65);
  56.         if(weaponid == 26)
  57.             SetPlayerHealth(playerid,health-48);
  58.         if(weaponid == 27)
  59.             SetPlayerHealth(playerid,health-40);
  60.         if(weaponid == 28)
  61.             SetPlayerHealth(playerid,health-28);
  62.         if(weaponid == 29)
  63.             SetPlayerHealth(playerid,health-31);
  64.         if(weaponid == 30)
  65.             SetPlayerHealth(playerid,health-41);
  66.         if(weaponid == 31)
  67.             SetPlayerHealth(playerid,health-41);
  68.         if(weaponid == 32)
  69.             SetPlayerHealth(playerid,health-27);
  70.         if(weaponid == 33)
  71.             SetPlayerHealth(playerid,health-70);
  72.         if(weaponid == 34)
  73.             SetPlayerHealth(playerid,health-70);
  74.         if(weaponid == 33)
  75.             SetPlayerHealth(playerid,health-70);
  76.         if(weaponid == 33) SetPlayerHealth(playerid,health-70);
  77.     }
  78.     return 1;
Advertisement
Add Comment
Please, Sign In to add comment