SA-MP Forums Archive
how to create anti lag system ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to create anti lag system ? (/showthread.php?tid=478546)



how to create anti lag system ? - Sands - 30.11.2013

any idea how to create no lag shoot system ?


Re: how to create anti lag system ? - SilentSoul - 30.11.2013

https://sampforum.blast.hk/showthread.php?tid=417368


Re: how to create anti lag system ? - Sands - 01.12.2013

its much buggy
Please any one have filterscript which is for tdm servers. which works well on teams.
Or please give me little tutorial to create it.

Thank You.


Re: how to create anti lag system ? - Emmet_ - 01.12.2013

You can't create an anti-lag system with anything other than GetPlayerPing and GetPlayerNetworkStats.

Packets are sent to the server network and there is no possible way (AFAIK) that you can keep track of these packets to check and see if the player is lagging, since you need a "ProcessTick" function in PAWN, which is not possible.

However, just use GetPlayerPing and GetPlayerNetworkStats for now.


Re: how to create anti lag system ? - Sands - 01.12.2013

but i saw some servers that have no lag system.
Just need to shoot on body with no bug. :/


AW: how to create anti lag system ? - Nero_3D - 01.12.2013

They use OnPlayerGiveDamage, it gets called if you hit someone on your screen

Just do what the wiki says
Quote:
Originally Posted by wiki.sa-mp
You can also set all players to the same team (so they don't take damage from other players) and process all health loss from other players manually.
Thats pretty much what the filterscript does

There should already be some scripts search for them