player_spawn event is called as well when the player spawns into the game
Quote:
Originally Posted by MAGNAT2645
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
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.
__________________