AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Average Ping Check (https://forums.alliedmods.net/showthread.php?t=97421)

biscuit628 07-15-2009 20:16

Average Ping Check
 
2 Attachment(s)
Average Ping Check

Description:
Hello,this plugin is a type of HPK using average ping to check
avg_ping = totalping / totalplayer + MaxPingGap
If player ping over avg_ping two times,he will get kick

Here is a simple:

Aplayer ping 10
Bplayer ping 15
Cplayer ping 30
Dplayer ping 85

//get totalping
A+B+C+D = 140

//get avg_ping = totalping / totalplayer
140 / 4 = 35

//avg_ping+MaxPingGap
35+50 = 85

//Check Player Ping
Dplayer ping is 85,so he will get a warning
if Dplayer continuous 2times over,he will get kick

Cvars:

n/a

Change the define to set
PHP Code:

#define MaxPingGap 50 

PHP Code:

#define FLAG_ADMIN ADMIN_KICK 

Sorry for my poor english:)

Bend3R 07-15-2009 20:57

Re: Average Ping Check
 
What's wrong with the original HPK?

xPaw 07-16-2009 05:34

Re: Average Ping Check
 
PHP Code:

public client_putinserver(id)
{
    
joined[id] = false
    set_task
(5.0,"is_user_join",id)
}

public 
is_user_join(id)
{
    if(
is_user_connected(id))
        
joined[id] = true


->

PHP Code:

public client_putinserver(id)
{
    
joined[id] = true;
}

public 
client_disconnect(id)
{
    
joined[id] = false;



SchlumPF* 07-16-2009 05:58

Re: Average Ping Check
 
crap, asap someones ping is fluctuating he starts lagging and as such he should fix his/her ping or leave the server. another annoying case is ppl using lowrates like 20/20/3500.

biscuit628 07-16-2009 06:23

Re: Average Ping Check
 
Quote:

Originally Posted by xPaw (Post 873587)
PHP Code:

public client_putinserver(id)
{
    
joined[id] = false
    set_task
(5.0,"is_user_join",id)
}

public 
is_user_join(id)
{
    if(
is_user_connected(id))
        
joined[id] = true


->

PHP Code:

public client_putinserver(id)
{
    
joined[id] = true;
}

public 
client_disconnect(id)
{
    
joined[id] = false;



it's the delay for checking

biscuit628 07-16-2009 13:01

Re: Average Ping Check
 
Quote:

Originally Posted by Bend3R (Post 873249)
What's wrong with the original HPK?

sometimes the original hpk will kick everyone,because of server is unsettled network,everyone become high ping and get kick

using average ping to check can fix this problem

Gizmo 07-16-2009 15:02

Re: Average Ping Check
 
I made a average high ping kicker that checks the average ping on every single player and kicks them for high average ping over 10 checks, that plugin got unapproved since the approvers did not think it was useful.

http://forums.alliedmods.net/showthread.php?t=68851

biscuit628 07-16-2009 15:08

Re: Average Ping Check
 
Quote:

Originally Posted by Gizmo (Post 873961)
I made a average high ping kicker that checks the average ping on every single player and kicks them for high average ping over 10 checks, that plugin got unapproved since the approvers did not think it was useful.

http://forums.alliedmods.net/showthread.php?t=68851

omg:shock:

joaquimandrade 07-16-2009 15:17

Re: Average Ping Check
 
Sorry but, a concept similar but better than yours already exist.

http://forums.alliedmods.net/showthread.php?t=83192

avril-lavigne 07-18-2009 07:08

Re: Average Ping Check
 
im using HPK with "ultimate executor [ maxplayers ,frags,deaths ]
pfd_players 10 "amx_hpk 130 2 3 1 1 " "amx_hpk .... new value"
i can set it for any maxplayers ....


All times are GMT -4. The time now is 09:21.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.