PDA

View Full Version : Kick frozen players.


4ever16
01-16-2017, 17:13
Sometimes people get frozen on my server and needs to be kicked.
But when no admins is online that cant be done.
Is there a plugin for kicking frozen players fast?

edon1337
01-16-2017, 17:17
And how would one check if a player is frozen ?

EFFx
01-16-2017, 17:47
He meant 'timed out', I think.

4ever16
01-16-2017, 17:51
Yes timed out i used frozen didnt know the exact word.

EFFx
01-16-2017, 17:54
But can you explain me the point for kick him fast? He already will be kicked in a few seconds after his freeze.

4ever16
01-16-2017, 17:56
Found it sv_timeout xx seconds.

I dont know i get a error like this dude https://forums.alliedmods.net/showthread.php?t=251234
But it seems like when he gets kicked then i get this error.

yas17sin
01-16-2017, 18:00
i think someone try to crash your server with something like that : (HLDS Buffer Overload) it's a server crash tool you must get some protect it happen to me too a player was try crashing my server with this tool and it was give me the same error and server did shutdown and then i restart it . go get some protect

EFFx
01-16-2017, 18:01
Have you tried to desactive some plugins of your plugins.ini? It already happened with me as well and the problem was a plugin.

edon1337
01-16-2017, 18:03
He meant 'timed out', I think.

I know what he meant. How would one check if a player "timed out" ?

EFFx
01-16-2017, 18:06
Its not possible.

edon1337
01-16-2017, 18:19
The only way is checking if user is stuck and floating.

EFFx
01-16-2017, 18:26
If have a plugin that set FL_FROZEN to player when hes flying? :P

edon1337
01-17-2017, 08:39
And how can we detect whether he's flying.. ?

EFFx
01-17-2017, 13:08
If(!(pev(id, pev_flags) & ~FL_ONGROUND))

edon1337
01-17-2017, 14:26
That includes jumping though.

EFFx
01-17-2017, 15:07
You can make like this


if(!(pev(id, pev_flags) & ~FL_ONGROUND))
{
new iSpeed, Float:fVecVelocity[3]
entity_get_vector(id, EV_VEC_velocity, fVecVelocity)
iSpeed = floatround(vector_length(fVecVelocity))

if(iSpeed == 0)
{
client_print(id,print_center, "Timed out")
}
}

tarsisd2
01-18-2017, 08:03
i use this bind when a player is frozen

bind "F6" "amx_say [ debugging ] - [ timeout ]; amx_rcon sv_timeout 1; wait; wait; wait; wait; wait; amx_rcon sv_timeout 99999; amx_rcon sv_timeout 99999; amx_execall speak buttons/button1; speak buttons/button1"

tarsisd2
01-18-2017, 08:06
You can make like this


if(!(pev(id, pev_flags) & ~FL_ONGROUND))
{
new iSpeed, Float:fVecVelocity[3]
entity_get_vector(id, EV_VEC_velocity, fVecVelocity)
iSpeed = floatround(vector_length(fVecVelocity))

if(iSpeed == 0)
{
client_print(id,print_center, "Timed out")
}
}

Will this work with parachute?

4ever16
01-18-2017, 11:34
Sorry no longer needed found sv_timeout command.