Raised This Month: $ Target: $400
 0% 

Bad Connection Punisher


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
TripleThreat
Junior Member
Join Date: Nov 2011
Old 02-07-2013 , 17:30   Bad Connection Punisher
Reply With Quote #1

Bad Connection Punisher

Last edited by TripleThreat; 02-09-2013 at 17:47. Reason: Plugin Link.
TripleThreat is offline
P1raten
Senior Member
Join Date: Feb 2010
Old 02-07-2013 , 18:10   Re: Fast High Ping Kick
Reply With Quote #2

Why are you hooking the onDeath event? Why not just check on client_putinserver?
__________________
No salvation. Only madness.
P1raten is offline
TripleThreat
Junior Member
Join Date: Nov 2011
Old 02-07-2013 , 18:51   Re: Fast High Ping Kick
Reply With Quote #3

Quote:
Originally Posted by P1raten View Post
Why are you hooking the onDeath event? Why not just check on client_putinserver?
From experience as the client joins the server his ping is higher than usual, After some time it settles to correct ping so it is not best idea to check right after he joins server.
TripleThreat is offline
P1raten
Senior Member
Join Date: Feb 2010
Old 02-07-2013 , 18:53   Re: Re: Fast High Ping Kick
Reply With Quote #4

Quote:
Originally Posted by TripleThreat View Post
From experience as the client joins the server his ping is higher than usual, After some time it settles to correct ping so it is not best idea to check right after he joins server.
What if the player never dies? Then he wont be kicked.
__________________
No salvation. Only madness.
P1raten is offline
TripleThreat
Junior Member
Join Date: Nov 2011
Old 02-07-2013 , 18:55   Re: Fast High Ping Kick
Reply With Quote #5

Quote:
Originally Posted by P1raten View Post
What if the player never dies? Then he wont be kicked.
He spawns atleast once, and most servers in CS 1.6 involves deaths.

Edit: It seemed that after first spawn action was not being taken which is odd.
This have been fixed with a check that runs 10 seconds after player joins.

Last edited by TripleThreat; 02-08-2013 at 11:37.
TripleThreat is offline
TripleThreat
Junior Member
Join Date: Nov 2011
Old 02-08-2013 , 11:36   Re: Fast High Ping Kick
Reply With Quote #6

Quote:
Originally Posted by P1raten View Post
Why are you hooking the onDeath event? Why not just check on client_putinserver?
Quote:
Originally Posted by P1raten View Post
What if the player never dies? Then he wont be kicked.
I have made changes so now the player is checked 10 seconds after joining.

Plugin is running perfectly on my server!
37.59.56.157:27015

Last edited by TripleThreat; 02-08-2013 at 11:51.
TripleThreat is offline
P1raten
Senior Member
Join Date: Feb 2010
Old 02-08-2013 , 11:47   Re: Fast High Ping Kick
Reply With Quote #7

Quote:
Originally Posted by TripleThreat View Post
I have made changes so now the player is checked 10 seconds after joining.
Is it correct that you've copied some code from some other peoples code and put it in this one?
__________________
No salvation. Only madness.

Last edited by P1raten; 02-08-2013 at 11:47.
P1raten is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-08-2013 , 07:59   Re: Fast High Ping Kick
Reply With Quote #8

A player can start lagging after they are connected to the server.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
P1raten
Senior Member
Join Date: Feb 2010
Old 02-08-2013 , 15:09   Re: Fast High Ping Kick 1.1c
Reply With Quote #9

You could just use the deathmsg event and check all the players instead of just the killer and the victim.

Afaik set_task should be avoided if can be.

Obviously there are some situations when set_task is needed.
__________________
No salvation. Only madness.
P1raten is offline
TripleThreat
Junior Member
Join Date: Nov 2011
Old 02-08-2013 , 15:18   Re: Fast High Ping Kick 1.1c
Reply With Quote #10

Quote:
Originally Posted by pokemonmaster View Post
This is kinda useless, sometimes when I spawn I lag for 3 seconds, this will result in kicking me for no reason ....
It is not normal for lagg when spawning (Players that randomly lagg should be kicked). Anyway this plugin does not take action on spawn anymore.

Quote:
Originally Posted by P1raten View Post
You could just use the deathmsg event and check all the players instead of just the killer and the victim.
Could do but that could cause a lot of lag especially on full servers with many kills.

Quote:
Originally Posted by P1raten View Post
Afaik set_task should be avoided if can be.

Obviously there are some situations when set_task is needed.
What is wrong with setting a task? It just delays things a bit so the client has a chance to not be lagging or ping spiking.
TripleThreat is offline
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:10.


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