Hello as you know I am coding a GM called Zombie escape based on the CS:S
version. To make it work I need this code to work. But it does not seem to do it’s job when it goes into my GM.
function ZombieSpawn( ply)
if ply:Team() == TEAM_DEATH then
ply:SetColor(0, 0, 255, 125)
ply:PrintMessage( HUD_PRINTTALK, “You are protected for 15 seconds to give time for humans to run!”)
local function DoIt()
hook.Add(“PlayerSpawn”, “ZombieSpawn”, ZombieSpawn)