[FilterScript] Anti High-Ping - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Anti High-Ping (
/showthread.php?tid=244205)
Anti High-Ping -
sabretur - 26.03.2011
Anti High-Ping System
This filterscipt kicks players with high ping.
pawn Код:
#define MAX_PING 1000 // highest allowed ping
Download:
Solidfiles
Pastebin
Re: Anti High-Ping -
Casss - 26.03.2011
Sorry, but anyone can make that. Other then that very nice.
Re: Anti High-Ping -
Cypress - 26.03.2011
pawn Код:
public OnPlayerUpdate(playerid)
{
if(Spawned[playerid] && GetPlayerPing(playerid) > MAX_PING)
{
Kick(playerid);
return 0;
}
return 1;
}
WTF is that?
Re: Anti High-Ping -
wups - 26.03.2011
Quote:
Originally Posted by Cypress
pawn Код:
public OnPlayerUpdate(playerid) { if(Spawned[playerid] && GetPlayerPing(playerid) > MAX_PING) { Kick(playerid); return 0; } return 1; }
WTF is that?
|
And what's wrong with it?
Re: Anti High-Ping -
rbN. - 26.03.2011
/e: oops lol nuthing to see here ;]
Re: Anti High-Ping -
Calgon - 26.03.2011
Using Kick() in OnPlayerUpdate on Linux crashes the server.
You should create an additional timer that checks all players' ping every one second, not over nine thousand times a second.
Re: Anti High-Ping -
sabretur - 26.03.2011
Quote:
Originally Posted by Calg00ne
Using Kick() in OnPlayerUpdate on Linux crashes the server.
You should create an additional timer that checks all players' ping every one second, not over nine thousand times a second.
|
Fixed now.
Re: Anti High-Ping -
Calgon - 26.03.2011
Mirror it on Pastebin and I'll take a look
Re: Anti High-Ping -
sabretur - 26.03.2011
Quote:
Originally Posted by Calg00ne
Mirror it on Pastebin and I'll take a look
|
http://solidfiles.com/d/6423c/
Re: Anti High-Ping -
Zh3r0 - 26.03.2011
Quote:
Originally Posted by sabretur
|
He clearly said PASTEBIN...