Account for joins and leaves to properly show the ply count

This commit is contained in:
Redox 2022-04-16 17:57:11 +02:00 committed by plally
parent f07fba0323
commit 00c432b50c
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ ChatTransit.PlayerConnect = (data) =>
Data:
SteamName: name
SteamId: steamId and SteamIDTo64 steamId
PlayerCountCurrent: player\GetCount!
PlayerCountCurrent: player\GetCount! + 1
PlayerCountMax: game\MaxPlayers!
ChatTransit.PlayerInitialSpawn = (ply) =>

View File

@ -12,7 +12,7 @@ ChatTransit.PlayerDisconnected = (data) =>
Data:
SteamName: ply and ply\Nick! or name
SteamId: ply and ply\SteamID64! or SteamIDTo64 steamId
PlayerCountCurrent: player\GetCount!
PlayerCountCurrent: player\GetCount! - 1
PlayerCountMax: game\MaxPlayers!
Content: reason