View Single Post
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 10-27-2013 , 22:34   Re: [TF2] Taunt Speed Modifier - [1.0.0] - [7/31/13]
Reply With Quote #13

Quote:
Originally Posted by friagram View Post
OnClientDisconnect
Why? When they disconnect their client entity is destroyed along with any attributes.

IsValidClient. Nope, also you are calling this in loops and inside calls after you have already called it. A simple isclientingame would do.

If you are so scared that replay and sourcetv will destroy your life, you can always use a player event to apply effects like player spawn or inventory application. Then you can also axe most of your other callbacks.
Did not know that, just did it to be safe.

Been trying to convert most of my plugins to stop using IsValidClient but swamped with school work atm. I'll be able to do this in 2 months or so.
__________________
Chaosxk is offline