diff --git a/src/scripts/hlstats.pl b/src/scripts/hlstats.pl index 9cace82..8d1b3cc 100644 --- a/src/scripts/hlstats.pl +++ b/src/scripts/hlstats.pl @@ -1292,7 +1292,10 @@ sub getPlayerInfo $player->updateTimestamp(); } } else { - if ($userid != 0) { + # In CS2, the first user is always assigned userid of '0'. Always create a player regardless of its value + # E.g. L 02/01/2024 - 21:02:01.253 - "X<0><[U:Y]><>" entered the game + # For all other games, userid is always above '0' + if ($userid != 0 || $g_servers{$s_addr}->{play_game} == CS2()) { if ($create_player > 0) { my $preIpAddr = ""; if ($g_preconnect->{"$s_addr/$userid/$name"}) {