Client drop
Hey guys :)
Is there any forward public or register that is called when client drops (out of the game, not logging off, but drops. and please dont give me client_disconnect, cuz i want to know when a client has dropped)? |
Re: Client drop
Code:
public plugin_init() register_clcmd("drop", "clcmd_drop") |
Re: Client drop
PHP Code:
|
Re: Client drop
Quote:
read the thread again, please. Quote:
|
Re: Client drop
Quote:
|
Re: Client drop
Not really.
Disconnecting is when you want to stop playing in the server for some reason and then you just double click on another server to connect to it then you disconnect the current server you are in, and when you get kicked because of an error, or a good example for a drop would be that if you connect to a server and the cvar sv_allowdownload is 0, then you get kicked out of the game with a message saying "cannot continue without model..." and for everyone in console it says "p1Mp dropped" *and a line below it* "p1Mp has left the game", when the player just leaves it doesnt say he dropped. is there anyway to detect for example when is client getting kicked out of the server when sv_allowdownload is 0? (considering there are few which it works for, and for some it doesnt, so dont tell me to check if cvar is 0 then do something to whoever client_disconnect's) hope you understood :D |
Re: Client drop
If it shows in the log then you can register a log event.
|
Re: Client drop
When a player drops it shows in the logs "PLAYER_NAME dropped", how can I register that and get the player ID as a parameter?
Would that be good?: PHP Code:
|
Re: Client drop
If all else fails, try this. You can determine if client sent 'drop', was kicked, or timed out..there may be other reasons too but I haven't experimented too much.
|
Re: Client drop
Looks good, I'll take a look. But do I use register_logevent correct to detect a drop?
|
| All times are GMT -4. The time now is 08:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.