(TTT) Using 2 Hooks for the same task

Hi.
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()
net.Start(“SuddenMusic_Remove”)
net.Broadcast()
end)

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.

Use variables and if statements

Do you mean something like:

local EndOfRound = hook.Add(“TTTEndRound”, “SD_StopSounds”…)

if not EndOfRound then

hook.Add(“TTTPrepareRound”)

Or What do you mean?

[lua]local roundCleaned = false
local function CleanRound()
roundCleaned = true
// do stuff
end

local function PrepareRound()
if( !roundCleaned ) then
CleanRound()
end
roundCleaned = false
// do stuff
end

hook.Add( “TTTEndRound”, “my_EndRound”, CleanRound )
hook.Add( “TTTPrepareRound”, “my_PrepRound”, PrepareRound )[/lua]

Oh. Thanks. I appreciate it.