Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- AmericanStyle'
- No Remove Credits
- ASTYLE'
- */
- /*
- Such Updates to New Version:
- - Added More Weapons.
- - More Damage and Lightning.
- - Detecting and Removing Collect From Agreement With Damage
- - Proximity More From Realism.
- - Disable Realism (Somentes Admins Logged In RCON)
- - Enable Realism (Somentes Admins Logged In RCON)
- Release Date To:
- - 26/05/2012
- If you find bug or something PLEASE I Communicate
- */
- #include < a_samp >
- new Float:Pos[3];
- new Float:Health;
- #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)
- #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)
- #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)
- #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)
- new weaponsDamage[10] =
- {
- 22, 23,
- 24, 25,
- 26, 27,
- 30, 31,
- 33, 34
- };
- public OnFilterScriptInit()
- {
- print("========================================");
- print(" Obra Feita Por AmericanStyle'");
- print(" Não Retire os Créditos");
- print(" Não Seja Um Plagio (:");
- print(" Apoie Essa campanha tão nobre.");
- print("=======================================");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("========================================");
- print(" Obra Feita Por AmericanStyle'");
- print(" Não Retire os Créditos");
- print(" Não Seja Um Plagio (:");
- print(" Apoie Essa campanha tão nobre.");
- print("=======================================");
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
- if(weaponid == weaponsDamage[0] || weaponid == weaponsDamage[1] || weaponid == weaponsDamage[2])
- {
- if(IsPlayerInRangeOfPoint(playerid, RangePistol, Pos[0], Pos[1], Pos[2]))
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid,Health-35);
- }
- }
- else if(weaponid == weaponsDamage[3] || weaponid == weaponsDamage[4] || weaponid == weaponsDamage[5])
- {
- if(IsPlayerInRangeOfPoint(issuerid, RangeEscopeta, Pos[0], Pos[1], Pos[2]))
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid,Health-100);
- }
- }
- else if(weaponid == weaponsDamage[6] || weaponid == weaponsDamage[7])
- {
- if(IsPlayerInRangeOfPoint(issuerid, RangeRifles, Pos[0], Pos[1], Pos[2]))
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid,Health-15);
- }
- }
- else if(weaponid == weaponsDamage[9] || weaponid == weaponsDamage[9])
- {
- if(IsPlayerInRangeOfPoint(issuerid,RangeSnipers, Pos[0], Pos[1], Pos[2]))
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid,Health-100);
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment