Guest User

FS DANO [DS]

a guest
Aug 23rd, 2013
1,197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.59 KB | None | 0 0
  1. /*          _______________________
  2.            |                       |
  3.            |   Criado por Klions   |
  4.            |      Detona SAMP      |
  5.            |_______________________|
  6.                       | |
  7.                       | |
  8.                       | |
  9.                       |_|
  10.  
  11. http://detonasa-mp.blogspot.com.br/
  12. */
  13. #include <a_samp>
  14.  
  15. #if defined FILTERSCRIPT
  16. #define AkDano          5.0
  17. #define M4Dano          7.0
  18. #define ShotgunDano     13.0
  19. #define SwanDano        20.0
  20. #define SpasDano        15.0
  21. #define MP5Dano         3.5
  22. #define SniperDano      100.0
  23.  
  24. public OnFilterScriptInit()
  25. {
  26.     print("\n- [DS] - Detona SAMP - [DS] -");
  27.     print(" Sistema de DANO - CARREGADO...");
  28.     print(" Criado por: Klions");
  29.     print("- [DS] - Detona SAMP - [DS] -\n");
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  34. {
  35. if(issuerid != INVALID_PLAYER_ID)
  36. {
  37.    new Float:DSVida;
  38.    GetPlayerHealth(playerid, DSVida);
  39.    if(weaponid == 30)
  40.    {
  41.         SetPlayerHealth(playerid, DSVida- AkDano);
  42.    }
  43.    if(weaponid == 31)
  44.    {
  45.         SetPlayerHealth(playerid, DSVida- M4Dano);
  46.    }
  47.    if(weaponid == 25)
  48.    {
  49.         SetPlayerHealth(playerid, DSVida- ShotgunDano);
  50.    }
  51.    if(weaponid == 26)
  52.    {
  53.         SetPlayerHealth(playerid, DSVida- SwanDano);
  54.    }
  55.    if(weaponid == 27)
  56.    {
  57.         SetPlayerHealth(playerid, DSVida- SpasDano);
  58.    }
  59.    if(weaponid == 29)
  60.    {
  61.         SetPlayerHealth(playerid, DSVida- MP5Dano);
  62.    }
  63.    if(weaponid == 34)
  64.    {
  65.         SetPlayerHealth(playerid, DSVida- SniperDano);
  66.    }
  67. }
  68. return 1;
  69. }
  70. #endif
Advertisement
Add Comment
Please, Sign In to add comment