[Include] lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling
#1

Lagcomp.inc
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(playeridweaponidFloat:damage);
Float:GetPlayerWeaponDamage(playeridweaponid); 
Installation
  • 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.
Download
https://github.com/Agneese-Saini/SA-...de/lagcomp.inc

Credits
Slice - "ProcessDamage" function with the damage data array
Humza - Testing the script
Reply


Messages In This Thread
lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 25.04.2017, 08:50
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Max_Andolini - 25.04.2017, 08:51
Re: lagcomp.inc - Fixed lagcomp response - by Logic_ - 25.04.2017, 08:58
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 25.04.2017, 09:00
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 25.04.2017, 09:08
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 25.04.2017, 09:26
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 25.04.2017, 10:16
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 25.04.2017, 10:44
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 25.04.2017, 13:41
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 01:55
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 02:20
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 02:30
Re: lagcomp.inc - Fixed lagcomp response - by Kar - 26.04.2017, 06:16
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 06:24
Re: lagcomp.inc - Fixed lagcomp response - by Kar - 26.04.2017, 06:43
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 06:57
Re: lagcomp.inc - Fixed lagcomp response - by Yashas - 26.04.2017, 08:37
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 09:22
Re: lagcomp.inc - Fixed lagcomp response - by Yashas - 26.04.2017, 09:37
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 09:55
Re: lagcomp.inc - Fixed lagcomp response - by Killa[DGZ] - 26.04.2017, 10:08
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 13:00
Re: lagcomp.inc - Fixed lagcomp response - by Humza - 26.04.2017, 13:22
Re: lagcomp.inc - Fixed lagcomp response - by Kar - 26.04.2017, 14:35
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 14:39
Re: lagcomp.inc - Fixed lagcomp response - by Jefff - 26.04.2017, 18:33
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 21:50
Re: lagcomp.inc - Fixed lagcomp response - by Kar - 26.04.2017, 22:06
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 26.04.2017, 22:30
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 29.04.2017, 03:34
Re: lagcomp.inc - Fixed lagcomp response - by Chaprnks - 29.04.2017, 05:26
Re: lagcomp.inc - Fixed lagcomp response - by Gammix - 29.04.2017, 09:24
Re: lagcomp.inc - Fixed lagcomp response - by gurmani11 - 29.04.2017, 10:23
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Dokins - 26.05.2017, 15:45
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Abagail - 26.05.2017, 17:59
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Konstantinos - 26.05.2017, 18:23
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Dokins - 26.05.2017, 18:34
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 26.05.2017, 18:50
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Dokins - 26.05.2017, 18:50
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Jefff - 26.05.2017, 21:51
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 27.05.2017, 00:21
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Dokins - 27.05.2017, 15:35
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 03.06.2017, 05:47
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Uberanwar - 03.06.2017, 10:12
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 04.06.2017, 18:32
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Uberanwar - 05.06.2017, 09:35
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 05.06.2017, 09:48
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Uberanwar - 05.06.2017, 10:19
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 05.06.2017, 10:28
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Astralis - 07.06.2017, 20:32
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by verlaj - 01.08.2017, 10:21
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Humza - 01.08.2017, 17:03
Re: lagcomp.inc - Fixed lagcomp response; custom weapon damage; serversided damage handling - by Gammix - 02.08.2017, 03:18

Forum Jump:


Users browsing this thread: 5 Guest(s)