Advertisement
Chip7

[FS] Nice Shot Realims.

May 21st, 2012
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.63 KB | None | 0 0
  1. /*
  2.                 AmericanStyle'™
  3.             Não Retire Os Créditos
  4.                    ASTYLE™
  5.                 VISITE NOSSO SITE: http://www.sampknd.com/
  6.                   SAMP KND MELHOR BLOG DE SAMP DO BRASIL
  7. */
  8.  
  9.  
  10. /*
  11.             Tais Atualizações Para Nova Versão:
  12.             - Mais Armas Adicionada.
  13.             - Mais Danos e Raios.
  14.             - Detectando Colete e Removendo De Acordo Com o Dano
  15.             - Mais Proximidade Do Realismo.
  16.             - Desativar Realismo (Somentes Admins Logado Na RCON)
  17.             - Ativar Realismo (Somentes Admins Logado Na RCON)
  18.            
  19.             Data Para Lancamento:
  20.             -   26/05/2012
  21.            
  22.  
  23.             Caso Encontre Bug Ou Algo Do tipo PorFavor Me Comunique
  24. */
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. #include                        <       a_samp      >
  32. #include                        <       sscanf2     >
  33. #include                        <       zcmd        >
  34.  
  35.  
  36. new Float:Cordenadas[3];
  37. new Float:Health;
  38.  
  39. #define RaioPistolas        10.0        //Altere o Valor Para o Raio que Quiser (MAS LEMBRESSE NÃO MUDE PARA UM RAIO QUE NÃO APROXIMA DO REALISMO)
  40. #define RaioEscopetas       7.0         //Altere o Valor Para o Raio que Quiser (MAS LEMBRESSE NÃO MUDE PARA UM RAIO QUE NÃO APROXIMA DO REALISMO)
  41. #define RaioRifles          25.0        //Altere o Valor Para o Raio que Quiser (MAS LEMBRESSE NÃO MUDE PARA UM RAIO QUE NÃO APROXIMA DO REALISMO)
  42. #define RaioSnipers         100.0       //Altere o Valor Para o Raio que Quiser (MAS LEMBRESSE NÃO MUDE PARA UM RAIO QUE NÃO APROXIMA DO REALISMO)
  43.  
  44. new ArmasDanos[10] =
  45. {
  46.                     22, 23,
  47.                     24, 25,
  48.                     26, 27,
  49.                     30, 31,
  50.                     33, 34
  51. };
  52.  
  53.  
  54.  
  55. public OnFilterScriptInit()
  56. {
  57.     print("========================================");
  58.     print(" Obra Feita Por AmericanStyle'");
  59.     print(" Não Retire os Créditos");
  60.     print("     Não Seja Um Plagio (:");
  61.     print("     Apoie Essa campanha tão nobre.");
  62.     print("=======================================");
  63.     return 1;
  64. }
  65.  
  66. public OnFilterScriptExit()
  67. {
  68.     print("========================================");
  69.     print(" Obra Feita Por AmericanStyle'");
  70.     print(" Não Retire os Créditos");
  71.     print("     Não Seja Um Plagio (:");
  72.     print("     Apoie Essa campanha tão nobre.");
  73.     print("=======================================");
  74.     return 1;
  75. }
  76.  
  77. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  78. {
  79.     GetPlayerPos(playerid,Cordenadas[0],Cordenadas[1],Cordenadas[2]);
  80.     for(new Players = 0; Players < MAX_PLAYERS; Players++)
  81.     {
  82.         if(weaponid == ArmasDanos[0] || weaponid == ArmasDanos[1] || weaponid == ArmasDanos[2])
  83.         {
  84.             if(IsPlayerInRangeOfPoint(playerid, RaioPistolas, Cordenadas[0], Cordenadas[1], Cordenadas[2]))
  85.             {
  86.                 GetPlayerHealth(playerid,Health);
  87.                 SetPlayerHealth(playerid,Health-35);
  88.             }
  89.             return 1;
  90.         }
  91.         if(weaponid == ArmasDanos[3] || weaponid == ArmasDanos[4] || weaponid == ArmasDanos[5])
  92.         {
  93.             if(IsPlayerInRangeOfPoint(issuerid, RaioEscopetas, Cordenadas[0], Cordenadas[1], Cordenadas[2]))
  94.             {
  95.                 GetPlayerHealth(playerid,Health);
  96.                 SetPlayerHealth(playerid,Health-100);
  97.                 return 1;
  98.             }
  99.             return 1;
  100.         }
  101.         if(weaponid == ArmasDanos[6] || weaponid == ArmasDanos[7])
  102.         {
  103.             if(IsPlayerInRangeOfPoint(issuerid, RaioRifles, Cordenadas[0], Cordenadas[1], Cordenadas[2]))
  104.             {
  105.                 GetPlayerHealth(playerid,Health);
  106.                 SetPlayerHealth(playerid,Health-15);
  107.                 return 1;
  108.             }
  109.             return 1;
  110.         }
  111.         if(weaponid == ArmasDanos[9] || weaponid == ArmasDanos[9])
  112.         {
  113.             if(IsPlayerInRangeOfPoint(issuerid,RaioSnipers, Cordenadas[0], Cordenadas[1], Cordenadas[2]))
  114.             {
  115.                 GetPlayerHealth(playerid,Health);
  116.                 SetPlayerHealth(playerid,Health-100);
  117.                 return 1;
  118.             }
  119.             return 1;
  120.         }
  121.     }
  122.     return 1;
  123. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement