AmericanStyle

Nice Shot Realims |AmericanStyle| English

Aug 26th, 2012
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.17 KB | None | 0 0
  1. /*
  2.                 AmericanStyle'
  3.               No Remove Credits
  4.                    ASTYLE'
  5. */
  6.  
  7.  
  8. /*
  9.             Such Updates to New Version:
  10.             - Added More Weapons.
  11.             - More Damage and Lightning.
  12.             - Detecting and Removing Collect From Agreement With Damage
  13.             - Proximity More From Realism.
  14.             - Disable Realism (Somentes Admins Logged In RCON)
  15.             - Enable Realism (Somentes Admins Logged In RCON)
  16.  
  17.             Release Date To:
  18.             - 26/05/2012
  19.  
  20.  
  21.             If you find bug or something PLEASE I Communicate
  22. */
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. #include                        <       a_samp      >
  30.  
  31.  
  32. new Float:Pos[3];
  33. new Float:Health;
  34.  
  35. #define RangePistol             10.0        //Change the value for the radius that you want (but LEMBRESSE CHECKLIST FOR A CHANGE CHECKLIST APPROACH TO RAY OF REALISM)
  36. #define RangeEscopeta           7.0         //Change the value for the radius that you want (but LEMBRESSE CHECKLIST FOR A CHANGE CHECKLIST APPROACH TO RAY OF REALISM)
  37. #define RangeRifles             25.0        //Change the value for the radius that you want (but LEMBRESSE CHECKLIST FOR A CHANGE CHECKLIST APPROACH TO RAY OF REALISM)
  38. #define RangeSnipers            100.0       //Change the value for the radius that you want (but LEMBRESSE CHECKLIST FOR A CHANGE CHECKLIST APPROACH TO RAY OF REALISM)
  39.  
  40. new weaponsDamage[10] =
  41. {
  42.                     22, 23,
  43.                     24, 25,
  44.                     26, 27,
  45.                     30, 31,
  46.                     33, 34
  47. };
  48.  
  49.  
  50.  
  51. public OnFilterScriptInit()
  52. {
  53.     print("========================================");
  54.     print(" Obra Feita Por AmericanStyle'");
  55.     print(" Não Retire os Créditos");
  56.     print("     Não Seja Um Plagio (:");
  57.     print("     Apoie Essa campanha tão nobre.");
  58.     print("=======================================");
  59.     return 1;
  60. }
  61.  
  62. public OnFilterScriptExit()
  63. {
  64.     print("========================================");
  65.     print(" Obra Feita Por AmericanStyle'");
  66.     print(" Não Retire os Créditos");
  67.     print("     Não Seja Um Plagio (:");
  68.     print("     Apoie Essa campanha tão nobre.");
  69.     print("=======================================");
  70.     return 1;
  71. }
  72.  
  73. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  74. {
  75.     GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  76.     if(weaponid == weaponsDamage[0] || weaponid == weaponsDamage[1] || weaponid == weaponsDamage[2])
  77.     {
  78.         if(IsPlayerInRangeOfPoint(playerid, RangePistol, Pos[0], Pos[1], Pos[2]))
  79.         {
  80.             GetPlayerHealth(playerid,Health);
  81.             SetPlayerHealth(playerid,Health-35);
  82.         }
  83.     }
  84.     else if(weaponid == weaponsDamage[3] || weaponid == weaponsDamage[4] || weaponid == weaponsDamage[5])
  85.     {
  86.         if(IsPlayerInRangeOfPoint(issuerid, RangeEscopeta, Pos[0], Pos[1], Pos[2]))
  87.         {
  88.             GetPlayerHealth(playerid,Health);
  89.             SetPlayerHealth(playerid,Health-100);
  90.         }
  91.     }
  92.     else if(weaponid == weaponsDamage[6] || weaponid == weaponsDamage[7])
  93.     {
  94.         if(IsPlayerInRangeOfPoint(issuerid, RangeRifles, Pos[0], Pos[1], Pos[2]))
  95.         {
  96.             GetPlayerHealth(playerid,Health);
  97.             SetPlayerHealth(playerid,Health-15);
  98.         }
  99.     }
  100.     else if(weaponid == weaponsDamage[9] || weaponid == weaponsDamage[9])
  101.     {
  102.         if(IsPlayerInRangeOfPoint(issuerid,RangeSnipers, Pos[0], Pos[1], Pos[2]))
  103.         {
  104.             GetPlayerHealth(playerid,Health);
  105.             SetPlayerHealth(playerid,Health-100);
  106.         }
  107.     }
  108.     return 1;
  109. }
Add Comment
Please, Sign In to add comment