View Single Post
Visual77
Veteran Member
Join Date: Jan 2009
Old 05-26-2018 , 03:55   Re: [L4D2] Jockey Pounce Damage
Reply With Quote #44

Quote:
Originally Posted by Spirit_12 View Post
I updated this plugin for a private server. Just gonna leave it here.
Atleast validate the client index and check if client is in game after you convert the userid to clientindex when you perform actions such as blind, getclientmode, getclientabsorigin etc, printtochat etc.

If you don't, the server may crash or spit out errors like (client is not connected, client is not ingame, client index is invalid). I've seen this habit in later plugins of thinking doing int client = GetClientOfUserId(event.GetInt("userid"));
is all that one needs before setting netprops or doing other things that will require a state of client connected or client in game.

Last edited by Visual77; 05-26-2018 at 04:02.
Visual77 is offline