PDA

View Full Version : AMX Super Exension: High Ping Kicker


Bo0m!
04-28-2007, 19:59
Well as promised here is an updated High Ping Kicker to go along with AMX Super.
Actually you don't even need to have AMX Super to use this, but you should be using it anyway, because it's clearly the best plugin ever. :gyar:

In any case, here's an improved version of the old high ping kicker that came with AMX Super.

Commands:
amx_hpk <max ping> <total ping checks> <time between checks> <delay before starting checks>

Cvars:
amx_hpk_ping - Maximum ping someone can have before being kicked. Default 200.
amx_hpk_check - How often it will test someone's ping. Default 12 seconds.
amx_hpk_tests - How many times a player's ping will be tested before kicking. Default 5.
amx_hpk_delay - How long the HPK should wait after a player joins the game to start checking their ping. Default 60 seconds.
amx_hpk_immunity - Enable or Disable Immunity checks

By default admins with the immunity flag will not be checked. You can change this flag if you wish by editing #define HPK_IMMUNE ADMIN_IMMUNITY in the sma and changing ADMIN_IMMUNITY to whatever flag you wish and recompiling. More info here (http://www.amxmodx.org/funcwiki.php?go=module&id=1#const_admin).

- Added Immunity check Cvar
By X-olent

Enjoy! Any questions or problems feel free to post.

MIRROR DOWNLOAD = HERE (http://supercentral.net/forums/index.php?/topic/267-high-ping-kicker/)

vvg125
04-28-2007, 20:44
because it's clearly the best plugin ever. :gyar:

Clearly.

Nice job. But it won't be incorporated into amx_super at any point, will it?

Bo0m!
04-28-2007, 21:25
Nah, too much of a hassle because 50% of the people want HPK in it, and the other 50% don't. I don't wanna have to do two plugins every time there is an update, besides, running the HPK as a small extra plugin on your server won't have any negative effects on it.

datwinkle
04-29-2007, 00:40
nice, +karma!

terry0412x
04-29-2007, 02:26
How do you use the plugin?...
I never knew this..
Sorry for being a noob.. I never used amxx before :[

bmann_420
04-29-2007, 02:28
It does everything by itself :D

Unless you want to change minor details, it will run everything just fine with only adding the plugin. (the main things you would change is hpk_ping cvar. as in how high of ping you will allow somebody in your server to have consistently)

Tartooob
04-29-2007, 02:28
Amazing !!! ,, Karma+

datwinkle
04-29-2007, 10:21
yup its a great plugin!

Noni77
05-14-2007, 22:51
Hey Man I Was Wondering Where Can I Find Ur Amx Super Plugin!
cant find.

YamiKaitou
05-14-2007, 23:01
Hey Man I Was Wondering Where Can I Find Ur Amx Super Plugin!
cant find.

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

bmann_420
05-15-2007, 02:03
Yea I havnt put 3.1 up yet, So teh svn got a lil screwy so it might take a minut.

Tartooob
05-27-2007, 10:44
I dunno why but sometimes it doesnt kick people with high pings, it takes alot of time and sometimes it never does and sometimes it works fine, weird =/ and if anyone entered the server he gets a msg in the chat saying players with ping higher than 200 will be kicked although the hpk is set to 100. How to fix that ? and how to turn the immunity off ? I want even admins to get kicked if they had high ping =/

Sorry if i asked 2 much and thanks --,--'--@

bmann_420
06-07-2007, 23:08
Sorry, but did you check the cvars in the super.cfg?

And i can take off the immunity for yea, sorry just forgot about this.

Tartooob
06-08-2007, 09:17
Sorry, but did you check the cvars in the super.cfg?

And i can take off the immunity for yea, sorry just forgot about this.

For some reason its working good now, is it possible to add a cvar to remove immunity ?

bmann_420
06-08-2007, 15:14
I read some of it, and its a wee bit harder for the immunity. Its pretty interwoven in. ANd B0om!'s doing finals right now. So I would wait for that :D

Bo0m!
06-08-2007, 18:04
I'll be back for AMX Super once I'm done with exams and such.

Exolent[jNr]
06-13-2007, 13:22
For some reason its working good now, is it possible to add a cvar to remove immunity ?

you mean a cvar to turn off immunity to the hpk?

Tartooob
06-15-2007, 02:01
you mean a cvar to turn off immunity to the hpk?

Yes That what i meant, I dont want it to be removed from the plugin completely, Just a cvar if its possible because there is some admins enter with high ping and they keep playing and i think its really unfair for other players.

bo0m: no rush for this bro, Take your time and good luck ;)

Exolent[jNr]
06-15-2007, 02:15
there ya go xD
cvar: amx_hpk_immunity (0/1)

Tartooob
06-15-2007, 11:13
there ya go xD
cvar: amx_hpk_immunity (0/1)

Wow, Thanks a bunch mate :)

Exolent[jNr]
06-15-2007, 18:16
i had actually made it once you posted but i needed details before i could be sure it was what you wanted :D

crazyman
09-09-2007, 11:39
Yea.. I cant find the plugin file to AMX SUPER. :S

Exolent[jNr]
09-09-2007, 12:21
its the very last sticky-ed post in the sub-forum

AMX Super All-In-One Commands v3.7http://forums.alliedmods.net/showthread.php?t=19542

totopito
09-18-2007, 17:59
1 question. Does it show damage when you shoot people??

totopito
09-18-2007, 18:00
my bad i ment amx super also wrogn post sorry

bmann_420
09-18-2007, 20:09
amx_cvar bullet_damage = is that

Its in teh amx_super.cfg

own3d
11-05-2007, 17:38
man this is great it works!
Great job!:up:

C14 | TheDoc
11-14-2007, 13:36
is there any way to make kick those ppl higher than 100ms??

YamiKaitou
11-14-2007, 13:56
Yes, that is what it does. Just change the cvars to your liking and use it

C14 | TheDoc
11-14-2007, 14:12
anyway to crack up the max ping to 100 ms or 125 ms ?!?
PLEASE HELP!!

i can't what ever i do theres no way to crack it up; it shows " [HPK]Players with ping above 200 will be kicked "!

can anyone post the codes for 100 ms / 125ms right here?? :D

YamiKaitou
11-14-2007, 14:13
Yeah, set the cvar to that. It is not that hard, READ THE FIRST POST!!

C14 | TheDoc
11-14-2007, 14:16
If its like you said, i have to change the cvars when ever my server's map changes... Please help i dont want to type the cvar to change it to 100 ms and waste my time! please i want to make it directly to 100 ms instead of 200 ms !

YamiKaitou
11-14-2007, 14:18
Damn you are dumb. I am refusing to help you if you can't figure this out. It is so fucking simple. Google it for everyone's sake.

C14 | TheDoc
11-14-2007, 14:18
this is what i did to change the Registered Cvar but no chance :-


hpk_ping = register_cvar("amx_hpk_ping","100")
hpk_check = register_cvar("amx_hpk_check","12")
hpk_tests = register_cvar("amx_hpk_tests","5")
hpk_delay = register_cvar("amx_hpk_delay","60")
hpk_immunity = register_cvar("amx_hpk_immunity","1")


Any change in this, please let me know!

YamiKaitou
11-14-2007, 14:19
Did you recompile it?

Ambrosia
04-16-2008, 20:19
This is what I have in my amxx.cfg doesn't look correct to me.
I opened the SMA file and saw the settings, tried to compile it.
And got some weird output, but it's not .amxx

amx_hpk_ping Default 180.
amx_hpk_check Default 12 seconds.
amx_hpk_tests Default 5.
amx_hpk_delay Default 10 seconds.
amx_hpk_immunity Default 0. (normally 0 means disabled no?, it shouldn't check for admins. whichever that may be)

YamiKaitou
04-16-2008, 20:28
type amx_hkp in console and show us the output. The amx_hpk_immunity is for admins with the ADMIN_IMMUNITY flag

bobo9175
06-29-2008, 23:08
Hey guys I did everything as documented. In my cvars I put choices for "200" "250" "300" and everytime I put 300 after map change it defaults back to 200. No matter what I do. Any help would be greatly appreciated. I also put amx_hpk_ping 300 in amx.cfg and still it doesn't work. Just wants to kick at 200

bmann_420
06-30-2008, 04:30
you mean amxx.cfg? Have you tried putting it into the sma and compiling? Or maybe adding it to server.cfg ?

RealNC
10-26-2008, 23:32
* Changelog:
* 6/15/07 - v0.16.2:
* ...
* 4/28/07 - v0.17 (Bo0m!)

Er, the update to v0.17 is v0.16.2?

johnnyb17
11-23-2008, 15:44
Or maybe adding it to server.cfg ?

I've got same problem. I change hpk_ping = register_cvar("amx_hpk_ping","100") to 300, but nothing changes (in the sma file)
What can i change in server.cfg? and how it could looked like? (an example for 300 ping)
Thanks in advance!

YamiKaitou
11-23-2008, 16:47
Did you try recompiling it?

johnnyb17
11-23-2008, 17:31
ooops.. :oops:
Thanks!! (carma added) :up:

joaquimandrade
01-30-2009, 15:14
You should add a check to see if the ping is 0. When a user is badly lagged its ping is 0 and adding 0 to his total benefits him. You should do something like if(!ping) ping = get_pcvar_num(hpk_ping);

PauliusBa
02-03-2009, 05:49
Did you try recompiling it?
Hehe

meigyoku
04-20-2009, 06:16
I am a Admin on my server. All people playing ping are <100, but one player of them is hacker (i think), this hacker increase all players ping >1000, and hpk kicked half players (5 in 12 players). What will I do to avoid this problem (cause by hacker)?
Sorry my poor English!

danielkza
04-20-2009, 06:22
I am a Admin on my server. All people playing ping are <100, but one player of them is hacker (i think), this hacker increase all players ping >1000, and hpk kicked half players (5 in 12 players). What will I do to avoid this problem (cause by hacker)?
Sorry my poor English!
He's not a hacker, he's simply trying to flood the server and your rates allow it, or you simply don't have enought bandwidth for the extra player with your current rates.

meigyoku
04-20-2009, 21:28
He's not a hacker, he's simply trying to flood the server and your rates allow it, or you simply don't have enought bandwidth for the extra player with your current rates.

Please tell me how to prevent it! What do you mean when you say: "your rates allow it"!
Thank you for your help!

danielkza
04-20-2009, 21:47
Please tell me how to prevent it! What do you mean when you say: "your rates allow it"!
Thank you for your help!
I mean the server can enforce proper rates on clients, and your server is not configured to do it properly, meaning one can use bandwidth that could server others.

Take a look here:
http://forums.alliedmods.net/showthread.php?t=89715

meigyoku
05-24-2009, 05:11
Thank you so much!

ID12345
05-24-2009, 22:46
edit:
its fixed
nvm

meigyoku
08-02-2009, 06:00
Now there are too many high ping kicker plugins. Which one is the best?

bmann_420
08-02-2009, 16:41
well, everybody or server has their own preferences. This is coded well, if the cvars do the job you need, then use it.

KadiR
08-03-2009, 17:33
this is more advanced:

http://forums.alliedmods.net/showthread.php?p=738892

slash-ork
08-04-2009, 10:58
hey there is some thing wrong with the .sma
i've tok the .sma and change the hpk to 110 the when i wanted to compile it here wat i got

Error: Cannot read from file: "amxmodx" on line 58
what i do

DarkGod
08-04-2009, 17:27
It means that you tried to compile without having a include folder.
Just use the webcompiler instead.

keitHy
08-12-2009, 15:27
Well done , seem's to be good :)
Gonna try it :P

KadiR
05-08-2010, 07:06
L 05/08/2010 - 08:43:47: Invalid player id 37
L 05/08/2010 - 08:43:47: [AMXX] Displaying debug trace (plugin "amx_hpk.amxx")
L 05/08/2010 - 08:43:47: [AMXX] Run time error 10: native error (native "get_user_flags")
L 05/08/2010 - 08:43:47: [AMXX] [0] amx_hpk.sma::checkPing (line 137)

?

DarkGod
05-08-2010, 07:37
Add something like this before the check:

if(1 > id > 32)
return PLUGIN_CONTINUE

KadiR
05-12-2010, 12:43
Added like that:

public checkPing(param[]) {

if (get_pcvar_num(hpk_tests) < 3)
set_pcvar_num(hpk_tests,3)

new id = param[ 0 ]

if(1 > id > 32)
return PLUGIN_CONTINUE

else if ( get_user_flags(id) & HPK_IMMUNE && get_pcvar_num(hpk_immunity) == 1 ) {
remove_task(id)
client_print(id, print_chat, "[HPK] Ping checking disabled due to immunity...")
return PLUGIN_CONTINUE
}

new ping, loss

get_user_ping(id,ping,loss)

g_Ping[ id ] += ping
++g_Samples[ id ]

if ( (g_Samples[ id ] > get_pcvar_num(hpk_tests)) && (g_Ping[id] / g_Samples[id] > get_pcvar_num(hpk_ping)) )
kickPlayer(id)

return PLUGIN_CONTINUE
}

Still getting the same error:

Invalid player id 37

KadiR
05-31-2010, 15:12
bump

Bren
06-11-2010, 01:05
I get this [HPK] Ping checking disabled due to immunity..
and the cvars dont work
what should i do plz

horussjr
01-16-2011, 13:57
i can't change the color of the messages. please help

GordonFreeman (RU)
11-07-2011, 01:08
damn plugin
no lags - no players

DarkGod
11-07-2011, 03:54
damn plugin
no lags - no players

What?

CISS_ee
12-20-2011, 10:11
hey guy's..noob here..where do i put this file in my amx_super to get it working

DarkGod
12-20-2011, 12:29
Add name to plugins.ini and put it in amxmodx/plugins.

GBLTeam
02-10-2014, 14:49
Its this plugin without bugs and good coded without taking the memory of CPU for anything.