forked from CFC-Servers/cfc_chat_transit
Account for joins and leaves to properly show the ply count
This commit is contained in:
parent
f07fba0323
commit
00c432b50c
@ -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) =>
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user