SHARE
TWEET

Wep damage system - Compile it by yourself!

a guest Oct 5th, 2012 1,702 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Hello, this is Donicans please leave the credits if possible if not possible you can change it.
  2. // Who am I? a player at a server named Cisco City Roleplay based in Fort Carson.
  3. //I released this script to show my scripting skills.
  4. // For more scripting jobs just forum pm me at Donicans.
  5. // I do charge for professional and hard scripting such as I did to Mark Shade.
  6. // Most of all, enjoy this script.
  7. //#define FILTERSCRIPT
  8.  
  9. #include <a_samp>
  10.  
  11. #if defined FILTERSCRIPT
  12.  
  13. public OnFilterScriptInit()
  14. {
  15.         print("\n--------------------------------------");
  16.         print(" Weapon Damage Script By Donicans - CISCO CITY RP FORMAL PLAYER");
  17.         print("--------------------------------------\n");
  18.         return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23.         return 1;
  24. }
  25.  
  26. #else
  27.  
  28. main()
  29. {
  30.         print("\n----------------------------------");
  31.         print(" Weapon Damage Script By Donicans");
  32.         print("----------------------------------\n");
  33. }
  34.  
  35. #endif
  36.  
  37. public OnGameModeInit()
  38. {
  39.         // Don't use these lines if it's a filterscript
  40.         return 1;
  41. }
  42.  
  43. public OnGameModeExit()
  44. {
  45.         return 1;
  46. }
  47.  
  48. public OnPlayerRequestClass(playerid, classid)
  49. {
  50.         return 1;
  51. }
  52.  
  53. public OnPlayerConnect(playerid)
  54. {
  55.         return 1;
  56. }
  57.  
  58. public OnPlayerDisconnect(playerid, reason)
  59. {
  60.         return 1;
  61. }
  62.  
  63. public OnPlayerSpawn(playerid)
  64. {
  65.         return 1;
  66. }
  67.  
  68. public OnPlayerDeath(playerid, killerid, reason)
  69. {
  70.         return 1;
  71. }
  72.  
  73. public OnVehicleSpawn(vehicleid)
  74. {
  75.         return 1;
  76. }
  77.  
  78. public OnVehicleDeath(vehicleid, killerid)
  79. {
  80.         return 1;
  81. }
  82.  
  83. public OnPlayerText(playerid, text[])
  84. {
  85.         return 1;
  86. }
  87.  
  88. public OnPlayerCommandText(playerid, cmdtext[])
  89. {
  90.         return 1;
  91. }
  92.  
  93. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  94. {
  95.         return 1;
  96. }
  97.  
  98. public OnPlayerExitVehicle(playerid, vehicleid)
  99. {
  100.         return 1;
  101. }
  102.  
  103. public OnPlayerStateChange(playerid, newstate, oldstate)
  104. {
  105.         return 1;
  106. }
  107.  
  108. public OnPlayerEnterCheckpoint(playerid)
  109. {
  110.         return 1;
  111. }
  112.  
  113. public OnPlayerLeaveCheckpoint(playerid)
  114. {
  115.         return 1;
  116. }
  117.  
  118. public OnPlayerEnterRaceCheckpoint(playerid)
  119. {
  120.         return 1;
  121. }
  122.  
  123. public OnPlayerLeaveRaceCheckpoint(playerid)
  124. {
  125.         return 1;
  126. }
  127.  
  128. public OnRconCommand(cmd[])
  129. {
  130.         return 1;
  131. }
  132.  
  133. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
  134. {
  135.     if(issuerid != INVALID_PLAYER_ID)
  136.     {
  137.         new Float:health;
  138.         GetPlayerHealth(playerid, health);
  139.         if(weaponid == 7)
  140.                         SetPlayerHealth(playerid,health-12);
  141.         if(weaponid == 8)
  142.                         SetPlayerHealth(playerid,health-90);
  143.         if(weaponid == 4)
  144.                         SetPlayerHealth(playerid,health-78);
  145.         if(weaponid == 3)
  146.                         SetPlayerHealth(playerid,health-11);
  147.         if(weaponid == 5)
  148.                         SetPlayerHealth(playerid,health-11);
  149.                 if(weaponid == 23)
  150.                         SetPlayerHealth(playerid,health-53);
  151.         if(weaponid == 24)
  152.                         SetPlayerHealth(playerid,health-90);
  153.         if(weaponid == 22)
  154.                         SetPlayerHealth(playerid,health-39);
  155.         if(weaponid == 25)
  156.                         SetPlayerHealth(playerid,health-65);
  157.         if(weaponid == 26)
  158.                         SetPlayerHealth(playerid,health-48);
  159.         if(weaponid == 27)
  160.                         SetPlayerHealth(playerid,health-32);
  161.         if(weaponid == 28)
  162.                         SetPlayerHealth(playerid,health-28);
  163.         if(weaponid == 29)
  164.                         SetPlayerHealth(playerid,health-31);
  165.         if(weaponid == 30)
  166.                         SetPlayerHealth(playerid,health-41);
  167.         if(weaponid == 31)
  168.                         SetPlayerHealth(playerid,health-41);
  169.         if(weaponid == 32)
  170.                         SetPlayerHealth(playerid,health-27);
  171.         if(weaponid == 33)
  172.                         SetPlayerHealth(playerid,health-97);
  173.         if(weaponid == 34)
  174.                         SetPlayerHealth(playerid,health-213);
  175.         if(weaponid == 33)
  176.                         SetPlayerHealth(playerid,health-97);
  177.         if(weaponid == 33) SetPlayerHealth(playerid,health-97);
  178.     }
  179.     return 1;
  180. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top