[FilterScript] Anti High-Ping
#1

Anti High-Ping System

This filterscipt kicks players with high ping.

pawn Код:
#define MAX_PING 1000 // highest allowed ping
Download:
Solidfiles
Pastebin
Reply
#2

Sorry, but anyone can make that. Other then that very nice.
Reply
#3

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(Spawned[playerid] && GetPlayerPing(playerid) > MAX_PING)
    {
        Kick(playerid);
        return 0;
    }
    return 1;
}
WTF is that?
Reply
#4

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?
Reply
#5

/e: oops lol nuthing to see here ;]
Reply
#6

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.
Reply
#7

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.
Reply
#8

Mirror it on Pastebin and I'll take a look
Reply
#9

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
Mirror it on Pastebin and I'll take a look
http://solidfiles.com/d/6423c/
Reply
#10

Quote:
Originally Posted by sabretur
Посмотреть сообщение
He clearly said PASTEBIN...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)