25.04.2017, 08:50
(
Last edited by Gammix; 11/09/2017 at 03:36 PM.
)
Lagcomp.inc
Version: 2.0 | Last Updated: 5 Sept, 2017
Version: 2.0 | Last Updated: 5 Sept, 2017
Lagcomp is a simple include which fixes SAMP lagcomp response and detection vastly. There are some advantages too such as protection against Fake kills and since the damage system is all server sided, there is no way hackers can hack Weapon damage values.
Since the damage system is server sided, you can set the weapon's damage per player:
(Note: the damage value is only override for Player giving Player damage, for self damage, these functions don't work)
PHP Code:
SetPlayerWeaponDamage(playerid, weaponid, Float:damage);
Float:GetPlayerWeaponDamage(playerid, weaponid);
- Click on the download link given above.
- Click "Raw" button on top of script and "Copy" the code from there.
- Go to your pawno/include folder and make a new text document file.
- Paste all the code there and save it as "lagcomp.inc".
- Goto your script and add "#include <lagcomp>" right after "#include <a_samp>". Then you can include other libraries but this one should be above them.
https://github.com/Agneese-Saini/SA-...de/lagcomp.inc
Credits
Slice - "ProcessDamage" function with the damage data array
Humza - Testing the script