Advertisement
AmericanStyle

Nice Shot Realims |AmericanStyle|

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