View Single Post
MasterMind420
BANNED
Join Date: Nov 2010
Old 03-17-2021 , 15:09   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #102

Quote:
Originally Posted by dr_lex View Post
A delay of 3 seconds is sufficient for issuing and saving via player_team.

But if you want you can post your own save option as an alternative
In order to properly save afk...use player_bot_replace event...save the bots weapons to the arrays, not the players, then transfer the bots weapon arrays over to the players weapon arrays immediately after saving the bots. The reason why is because these events are only notifications, the player no longer has weapons because the event already happened before the notification. Their team has already changed, but the bots weapons do exist...I have worked extensively on this issue with my own private plugin, it works doing it like this. Use bot_player_replace event to restore them to the player. If u need help fixing it i am willing to help.

Last edited by MasterMind420; 03-17-2021 at 15:11.
MasterMind420 is offline