I´ve scripted an Addon for TTT every round it reset itself when the Hook “TTTEndRound” is called. Now I wanto to add the Hook “TTTPrepareRound” that do the same thing, but not always, rather only if TTTEndRound isn´t called because e.g. The Round has been restarted while the round´s still running etc.
How can I do this ?
Here is the Part of the Code with the existing Hooks:
[lua] hook.Add(“TTTEndRound”, “SD_StopSounds”, function()
hook.Add("TTTEndRound", "SD_StopTimer", function() timer.Stop("_SD_Start") end) hook.Add("TTTEndRound", "StopBlurring", function() hook.Remove("RenderScreenspaceEffects", "BlurTest") end)[/lua]
Thanks in Advance.