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

Quote:
Originally Posted by dr_lex View Post
Release 5.0 alpha
This is an early version, and a new version with 40-50% changes will be released soon.

The new version adds support for saving AFK
This does not save on afk...all events related to afk(player_team, player_afk, bot_player_replace) fire too quickly in order to GetPlayerWeaponSlot in time to save it...if you printtochat or printtoserver you will see this is the case. In order to properly get this to save when players go idle you'll need to save more aggressively. weaponcanusepost sdkhook is a good place to start, i use a similar method in one of my plugins. When doing things like this, always print out results to make sure its working as intended. Good Luck.
MasterMind420 is offline