Raised This Month: $ Target: $400
 0% 

High Ping Kicker by OLO (0.16.2)


Post New Thread Reply   
 
Thread Tools Display Modes
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 07-15-2007 , 07:45   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #101

There is nothing to help with. If you have questions, read this:

http://wiki.alliedmods.net/Category:...28AMX_Mod_X%29
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
AirEterno
Junior Member
Join Date: Apr 2008
Old 04-27-2008 , 02:06   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #102

what about a hpk that check the ping of the player and kick or let him connect to the server depending of his ping?

A hpk that test the ping before the player connects.. It woult be very handly...!

Sorry for my terrorific english
AirEterno is offline
Send a message via Skype™ to AirEterno
Richard
Member
Join Date: Apr 2008
Location: In the Counter Strike
Old 06-20-2008 , 21:38   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #103

wath is a diference of won - steam?
__________________
..._...|.._____________________, ,
....../ `–-___________–– ;_____|] = = = =
...../_==o;;;;;;;;_______.:/
.....), –-.(_(__) /
....// (..) ), ––"
...//___//
..//___//

[Richard]
Richard is offline
Phorce_Phed
Member
Join Date: Jun 2006
Old 06-24-2008 , 20:31   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #104

Quote:
Originally Posted by Richard View Post
wath is a diference of won - steam?
If you don't know the answer to this, you want the Steam version.
Phorce_Phed is offline
Demoz123
Member
Join Date: Jul 2008
Location: USA, California, Brea
Old 07-13-2008 , 01:20   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #105

Nice Plugin +Karma me please
__________________
Demoz123 is offline
netraL
Junior Member
Join Date: Dec 2008
Location: Jakarta , Indonesia
Old 05-19-2009 , 11:13   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #106

Just Downloaded . Good Plugins , Im From Indonesia , Try My Server If u Can , 119.2.44.22:27017 , the name of the server is MagiC Counter-Strike .hehehe
netraL is offline
Send a message via MSN to netraL Send a message via Yahoo to netraL
Old 08-03-2009, 07:39
hleV
This message has been deleted by hleV.
eduardotobon
Junior Member
Join Date: Oct 2008
Old 11-27-2010 , 16:36   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #107

what should i change if i want to banip 1 minute instead kick????
eduardotobon is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 11-30-2010 , 21:35   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #108

Hmmm, I would suggest an unnaproval on this one, im pretty sure only approvers can unnaprove anyway, dont wanna step on anybodys toes! I know connorr is running around. Even the hpk by eks is more updated than this. Besides the other .... 5 or so out their.
__________________
bmann_420 is offline
ViBE
Member
Join Date: Jul 2011
Location: Somewhere over the...
Old 07-18-2011 , 15:39   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #109

hi! i know this topic is really old, but i hope someone has got an idea how to rewrite this plugin to support language file. i manage a few servers and players comes from everywhere. so the community is very colourful, so multilanguage support needed. i found a forum where someone already rewrote this plugin, BUT it doesn't work. it can't kick players only displays the messages and nothing happens.

check this (the webpage is russian): http://amxmodx.ucoz.ru/forum/19-3664-1
the 10th comment contains the plugin.
ViBE is offline
Send a message via ICQ to ViBE
bymisi
Member
Join Date: Apr 2010
Location: Budapest / Hungary
Old 03-09-2012 , 10:02   Re: High Ping Kicker by OLO (0.16.2)
Reply With Quote #110

Hi all .
I made little modification , and i use modified plugin on my serv. , and i think it is useful.

-hpk players are not kicked , they are banned 2 minutes (message: LAG_SORRY)
so they cant reconnect after kick.
must wait two minutes (to stop torrent , or other background programs)
after 2 minutes , they can join again . in these way , server lag will be smaller.

- you can give hpk immunity to any player
set flag "i" (ADMIN_CHAT) (he cant ban , kick , changemap..)

add line in users.ini :

"name" "password" "i" "a" ; name (password protected)
"name" "" "i" "e" ; name ( not password protected)

ex: "misi" "1234" "i" "a"
"misi" "" "i" "e"


___________________________________

/* AMX Mod X script.
*
* This file is provided as is (no warranties).
*
* (c) 2002-2003, OLO
* Modified by shadow
* Modified again by Bo0m!
* For use alongside with the AMX Super All-In-One Plugin.
*
********************************************* ********************************
* Changelog:
*
*
* 6/15/07 - v0.16.2:
* - changed cvar
* amx_hpk_immunity -> Weather or not to have it use Immunity (X-olent)
*
* 4/28/07 - v0.17 (Bo0m!):
* - fixed check cvar never being used
* - fixed delay cvar check
* - switched to pcvars
* - adjusted some messages
* - added definable immunity flag
* - added logging when admins change HPK settings
*
*
* 4/19/04 - v0.16.2:
* - changed cvars
* amx_maxping -> amx_hpk_ping
* amx_maxping_check -> amx_hpk_check
* amx_maxping_tests -> amx_hpk_tests
*
* - added amx_command
* amx_hpk - displays status of the plugin and syntax to configure it
*
* - added cvar
* amx_hpk_delay - Delays ping checking after connect (default 1min, use amx_hpk to configure)
*
*
* 4/15/04 - v0.16.1:
* - added cvars
* amx_maxping //lowest average ping to be kicked
* amx_maxping_check //time between checks
* amx_maxping_tests //number of checks to be performed before kick
*
* - modified the version from 0.9.4 (OLO) to 0.16.1 (amxx)
*
* - added log entry for amxx logging
*
*
********************************************* ********************************
* Original plugin: http://forums.alliedmods.net/showthread.php?p=10259
*
* This modified plugin can be found at:
* http://forums.alliedmods.net/forumdisplay.php?f=111
*/

#include <amxmodx>
#include <amxmisc>

new const PLUGIN[] = "High_Ping_Ban"
new const VERSION[] = "1.0"
new const AUTHOR[] = "Shadow/Bo0m!+bymisi"

// Feel free to change this flag
#define HPK_IMMUNE ADMIN_CHAT

// PCvars
new hpk_ping, hpk_check, hpk_tests, hpk_delay, hpk_immunity

new g_Ping[33]
new g_Samples[33]

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)

register_concmd("amx_hpk","cmdHpk",ADMIN_CVAR ,"- configures high ping kicker")

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","30")
hpk_immunity = register_cvar("amx_hpk_immunity","1")

if (get_pcvar_num(hpk_check) < 5) set_pcvar_num(hpk_check,5)
if (get_pcvar_num(hpk_tests) < 3) set_pcvar_num(hpk_tests,3)
}

public client_disconnect(id)
remove_task(id)

public client_putinserver(id) {
g_Ping[id] = 0
g_Samples[id] = 0

if ( !is_user_bot(id) )
{
new param[1]
param[0] = id
set_task( 15.0 , "showWarn" , id , param , 1 )

if (get_pcvar_num(hpk_delay) != 0) {
set_task( float(get_pcvar_num(hpk_delay)), "taskSetting", id, param , 1)
}
else {
set_task( float(get_pcvar_num(hpk_check)) , "checkPing" , id , param , 1 , "b" )
}
}
}

public showWarn(param[])
client_print( param[0] ,print_chat,"[HPK] Players with ping higher than %d will be kicked!", get_cvar_num( "amx_hpk_ping" ) )

public taskSetting(param[]) {
new name[32]
get_user_name(param[0],name,31)
set_task( float(get_pcvar_num(hpk_check)) , "checkPing" , param[0] , param , 1 , "b" )
}

kickPlayer(id) {
new name[32],authid[36]
get_user_name(id,name,31)
get_user_authid(id,authid,35)
client_print(0,print_chat,"[HPK] Player %s disconnected due to high ping",name)
server_cmd("amx_ban #%d 2 LAG_SORRY",get_user_userid(id))
log_amx("HPK: ^"%s<%d><%s>^" was kicked due high ping (Average Ping ^"%d^")", name,get_user_userid(id),authid,(g_Ping[id] / g_Samples[id]))
}

public checkPing(param[]) {

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

new id = param[ 0 ]

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
}


public cmdHpk(id,level,cid) {
if (!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED

if (read_argc() < 6) {
console_print(id,"Usage: amx_hpk <max ping> <total ping checks> <time between checks> <delay before starting checks> <1 to allow immunity|0 to disallow")
console_print(id,"Current High Ping Kicker Settings:")
console_print(id,"Max Ping: %d | Ping Checks: %d | Check Frequency: %d | Start Delay: %d | Immunity: %d",get_pcvar_num(hpk_ping),get_pcvar_num(hpk _tests),get_pcvar_num(hpk_check),get_pcvar_nu m(hpk_delay),get_pcvar_num(hpk_immunity))
return PLUGIN_HANDLED
}

new name[32], authid[36]
get_user_name(id,name,31)
get_user_authid(id,authid,35)

new ping_arg[5], check_arg[5], tests_arg[5], delay_arg[5], immune_arg[5]
read_argv(1,ping_arg,4)
read_argv(2,tests_arg,4)
read_argv(3,check_arg,4)
read_argv(4,delay_arg,4)
read_argv(5,immune_arg,4)

new ping = str_to_num(ping_arg)
new tests = str_to_num(tests_arg)
new check = str_to_num(check_arg)
new delay = str_to_num(delay_arg)
new immune = str_to_num(immune_arg)

if ( check < 5 ) check = 5
if ( tests < 3 ) tests = 3

set_pcvar_num(hpk_ping,ping)
set_pcvar_num(hpk_tests,tests)
set_pcvar_num(hpk_check,check)
set_pcvar_num(hpk_delay,delay)
set_pcvar_num(hpk_immunity,immune)

console_print(id,"The following HPK Settings have been set:")
console_print(id,"Max Ping: %d | Ping Checks: %d | Check Frequency: %d | Start Delay: %d | Immunity: %d",get_pcvar_num(hpk_ping),get_pcvar_num(hpk _tests),get_pcvar_num(hpk_check),get_pcvar_nu m(hpk_delay),get_pcvar_num(hpk_immunity))
log_amx("HPK: ^"%s<%d><%s>^" has configured the HPK - Max Ping: %d | Ping Checks: %d | Check Frequency: %d | Start Delay: %d | Immunity: %d", name,get_user_userid(id),authid,get_pcvar_num (hpk_ping),get_pcvar_num(hpk_tests),get_pcvar _num(hpk_check),get_pcvar_num(hpk_delay),get_ pcvar_num(hpk_immunity))

return PLUGIN_HANDLED
}
Attached Files
File Type: sma Get Plugin or Get Source (hpk_ban.sma - 939 views - 6.1 KB)
bymisi is offline
Send a message via Skype™ to bymisi
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:59.


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