Hello. I need to create a code that will run ply:Freeze(true) if my first spawn function is being run(shown below), and will disable ply:Freeze(true) and make it ply:Freeze(false) if the function is not being run. My first spawn function is here:
[CODE]function FirstSpawn(ply)
timer.Simple(45, start ) -- after 180 seconds, start() is called.
ply:SetNWString("canusemenu", "yes")
ply:GodEnable()
end
hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", FirstSpawn )[/CODE]
what do you mean, if it is being run? You have set it up so it will be run every time a player spawns for the first time.
I'm not quite sure what you're asking, but you can use ply:IsFrozen() to check and maybe that'll help?
Could you post the start() function?
Sorry, you need to Log In to post a reply to this thread.