View Single Post
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 11-04-2013 , 07:09   Re: [CSTRIKE FIX] mp_autokick/cs_get_user_lastactivity FIX
Reply With Quote #8

Quote:
Originally Posted by kNowo View Post
During my debugging, the pdata offset of 124 (m_flLastActivityTime) is set to the time when a player dies because his lastbutton pdata offset (245) is set to IN_SCORE (32768) at that time.

I can think of 2 solutions:
1. hook cmdstart and block the key
2. save the player's last activity time at pre death and set that value at post death

I'm sure they are a few other methods too. What is the best method to fix this bug?

EDIT: Also, it seems that lastactivity_normalizer.sma is not working correctly. Plugin is running but the pdata is still getting updated on death and pre spawn events of an afk player.

omg, it is fixed since last hlds build and this topic is older than 2010.
update your server and use mp_autokick and mp_autokick_timeout vars.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 11-04-2013 at 07:10.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY