Advertisement
fidle89

BluWeps FS

Sep 8th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.86 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     print("\n--------------");
  8.     print("w_guns loaded!");
  9.     print("--------------\n");
  10.     return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15.     return 1;
  16. }
  17.  
  18. /* SetPlayerSkillLevel variables just to make it easier. */
  19. public OnPlayerSpawn(playerid)
  20. {
  21.     SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
  22.     SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 999);
  23.     SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 999);
  24.     SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 999);
  25.     SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
  26.     SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 999);
  27.     SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
  28.     SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 999);
  29.     SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 999);
  30.     SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 999);
  31.     SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 999);
  32.     return 1;
  33. }
  34.  
  35.  
  36. /*
  37.  
  38. /* OnPlayerTakeDamage variables for those weapons that
  39.    don't do as much harm as they should.                 */
  40.  
  41. /* Melee */
  42. public OnPlayerTakeDamage(playerid,issuerid,Float:90,weaponid)
  43. {
  44.     if(issuerid != INVALID_PLAYER_ID && weaponid == 0) // Fist
  45.     {
  46.         SetPlayerHealth(playerid, 0.1);
  47.     }
  48.     if(issuerid != INVALID_PLAYER_ID && weaponid == 1) // Brass Knuck
  49.     {
  50.         SetPlayerHealth(playerid, 0.1);
  51.     }
  52.     if(issuerid != INVALID_PLAYER_ID && weaponid == 5) // Bat
  53.     {
  54.         SetPlayerHealth(playerid, 0.1);
  55.     }
  56.     if(issuerid != INVALID_PLAYER_ID && weaponid == 8) // Katana
  57.     {
  58.         SetPlayerHealth(playerid, 0.1);
  59.     }
  60.     return 1;
  61. }
  62.  
  63. /* Explosive */
  64. public OnPlayerTakeDamage(playerid,issuerid,Float:20,weaponid)
  65. {
  66.     if(issuerid != INVALID_PLAYER_ID && weaponid == 16) // Grenade
  67.     {
  68.         SetPlayerHealth(playerid, 0.1);
  69.     }
  70.     if(issuerid != INVALID_PLAYER_ID && weaponid == 35) // RPG
  71.     {
  72.         SetPlayerHealth(playerid, 0.1);
  73.     }
  74.     if(issuerid != INVALID_PLAYER_ID && weaponid == 36) // HS-RPG
  75.     {
  76.         SetPlayerHealth(playerid, 0.1);
  77.     }
  78.     if(issuerid != INVALID_PLAYER_ID && weaponid == 39) // C4
  79.     {
  80.         SetPlayerHealth(playerid, 0.1);
  81.     }
  82.     if(issuerid != INVALID_PLAYER_ID && weaponid == 51) // Explosion
  83.     {
  84.         SetPlayerHealth(playerid, 0.1);
  85.     }
  86.     return 1;
  87. }
  88.  
  89. /* Low Powered Firearms */
  90. public OnPlayerTakeDamage(playerid,issuerid,Float:70,weaponid)
  91. {
  92.     if(issuerid != INVALID_PLAYER_ID && weaponid == 22) // 9mm
  93.     {
  94.         SetPlayerHealth(playerid, 0.1);
  95.     }
  96.     if(issuerid != INVALID_PLAYER_ID && weaponid == 23) // S-9mm
  97.     {
  98.         SetPlayerHealth(playerid, 0.1);
  99.     }
  100.     if(issuerid != INVALID_PLAYER_ID && weaponid == 28) // Uzi
  101.     {
  102.         SetPlayerHealth(playerid, 0.1);
  103.     }
  104.     if(issuerid != INVALID_PLAYER_ID && weaponid == 29) // MP5
  105.     {
  106.         SetPlayerHealth(playerid, 0.1);
  107.     }
  108.     if(issuerid != INVALID_PLAYER_ID && weaponid == 32) // Tec-9
  109.     {
  110.         SetPlayerHealth(playerid, 0.1);
  111.     }
  112.     if(issuerid != INVALID_PLAYER_ID && weaponid == 33) // C-Rifle
  113.     {
  114.         SetPlayerHealth(playerid, 0.1);
  115.     }
  116.     return 1;
  117. }
  118.  
  119. /* Deagle + Shotguns */
  120. public OnPlayerTakeDamage(playerid,issuerid,Float:40,weaponid)
  121. {
  122.     if(issuerid != INVALID_PLAYER_ID && weaponid == 24) // Deagle
  123.     {
  124.         SetPlayerHealth(playerid, 0.1);
  125.     }
  126.     if(issuerid != INVALID_PLAYER_ID && weaponid == 25) // PumpShot
  127.     {
  128.         SetPlayerHealth(playerid, 0.1);
  129.     }
  130.     if(issuerid != INVALID_PLAYER_ID && weaponid == 26) // Dual-SawedOff
  131.     {
  132.         SetPlayerHealth(playerid, 0.1);
  133.     }
  134.     return 1;
  135. }
  136.  
  137. /* High Powered Firearms */
  138. public OnTakeDamage(playerid,issuerid,Float:30,weaponid)
  139. {
  140.     if(issuerid != INVALID_PLAYER_ID && weaponid == 27) // Spas-12
  141.     {
  142.         SetPlayerHealth(playerid, 0.1);
  143.     }
  144.     if(issuerid != INVALID_PLAYER_ID && weaponid == 30) // AK47
  145.     {
  146.         SetPlayerHealth(playerid, 0.1);
  147.     }
  148.     if(issuerid != INVALID_PLAYER_ID && weaponid == 31) // M4A1
  149.     {
  150.         SetPlayerHealth(playerid, 0.1);
  151.     }
  152.     return 1;
  153. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement