View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 08-14-2019 , 10:34   Re: [TF2] Client is not in game bug
Reply With Quote #19

player_spawn event is called as well when the player spawns into the game

Quote:
Originally Posted by MAGNAT2645 View Post
Client can't be in game if he's not connected.
yes, but i've said you check if the player is in game only in that loop and not in player_spawn event.

Quote:
Originally Posted by MAGNAT2645 View Post
if (!iClient) check just to ensure that we're working with real player.
that player is just connected (IsClientConnected returns true), but that player can not be in game (IsClientInGame can return false).

You should see which part of your code gives errors (player_spawn or that loop). I'm 100% sure that is the player_spawn event.
__________________

Last edited by Ilusion9; 08-14-2019 at 10:35.
Ilusion9 is offline