Skip to content

Commit

Permalink
Fix money HUD for ZOMBIES
Browse files Browse the repository at this point in the history
  • Loading branch information
Joost de Niet committed May 16, 2023
1 parent c3bedce commit bf6c45e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion events/player_connect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ function PlayerConnected(player)

-- HANDLE spawn after DEAD
player:onnotify("spawned_player", function()
print(player.pers["team"])
if player.type == "zombie" then
ZombieSpawnLogic(player)
if player.savedPosistion ~= nil then
Expand Down
2 changes: 2 additions & 0 deletions utils/player/player_function.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function ZombieSpawnLogic(player)
player.type = "zombie"
player.money = 50
player:GiveZombieClass()
player:CreateMoneyHUD()
end

-- [[ SURVIVOR FIRST LOGIC ]] --
Expand All @@ -31,6 +32,7 @@ function SurvivorSpawnLogic(player)
player:freezecontrols(false)
player:GivePlayerClass()
player:GivePlayerClass()
player:CreateMoneyHUD()
end

function entity:is_bot()
Expand Down

0 comments on commit bf6c45e

Please sign in to comment.