← Scripts et bibliothèques
Lordzy/OnPlayerRapidFire
"OnPlayerRapidFire" is a callback which gets called for 0.3z SA-MP versions when a player does rapid fire. "Rapid Fire" is a cheat which could be done through Cleo scripts and could entirely be harmful for DM servers. This anti-cheat can prevent and determine rapid shots.
Bibliothèque★ 3mis à jour août 2014MPL-2.0PAWN
Ouvrir sur GitHubL’essayer dans le compilateur Pawn →
Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.
README.txt
OnPlayerRapidFire - OPRF.inc
By Lordz AKA Lordzy
- 2014
Version : 3
"OPRF" AKA OnPlayerRapidFire is an include which provides a callback called
"OnPlayerRapidFire" which is called when a player does rapid fire cheat.
Rapid shots, especially on DM servers with lagcompmode 'On' can be very -
harmful because quick kills are possible with rapid fires. This include
detects if a player does rapid fire or not for the following weapons :
Colt,
Desert Eagle,
Silenced Pistol,
Shotgun,
Sawnoff Shotgun,
Combat Shotgun,
Uzi,
MP5,
Tec9,
AK47,
M4,
Country Rifle,
Sniper Rifle.
This Source Code Form is subject to the
terms of the Mozilla Public License, v.
2.0. If a copy of the MPL was not
distributed with this file, You can
obtain one at
http://mozilla.org/MPL/2.0/.
Author : Lordz AKA Lordzy.
Callbacks:
OnPlayerRapidFire(playerid, weaponid, intervals);
playerid - returns the player who does rapid shots.
weaponid - returns the weapon's ID which is being used for rapid shots.
intervals - returns the difference between the last shot and the current one.
Changelogs:
23-02-2014
- Initial Release.
- Fixed some issues with arrays.
- Fixed the problem for sub-machine guns like Tec9 (ID:32) and uzi (ID:28)
24-02-2014 (v2 Released)
- Added support for Sniper Rifle and Country Rifle.
(Thanks to 'West X' for reporting about it)
26-8-2014
- Improved the way of detection.
- Added : GetPlayerLastShotTick which would return the last shot time data.
Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche