diff --git a/scripts/vscripts/ZombieReborn.lua b/scripts/vscripts/ZombieReborn.lua index fa63027..68f02d4 100644 --- a/scripts/vscripts/ZombieReborn.lua +++ b/scripts/vscripts/ZombieReborn.lua @@ -140,12 +140,12 @@ function OnPlayerSpawn(event) InfectAsync(hPlayer, false) return end + + -- assign human class for those who missed the human class assignment + if ZR_ROUND_STARTED and not ZR_ZOMBIE_SPAWNED and hPlayer:GetTeam() == CS_TEAM_CT then + InjectPlayerClass(PickRandomHumanDefaultClass(), hPlayer) + end - -- force switch team for player who tries to join the T side - -- if not ZR_ZOMBIE_SPAWN_READY and hPlayer:GetTeam() == CS_TEAM_T then - -- --print("Forcing player to ct") - -- CureAsync(hPlayer, false) - -- end end function OnItemEquip(event)