local auto_disable_time = 20 -- 20 masodperc local round_start_plus_time_offset = 0.5 local timeout_queue = {} function setTimeout(callback, timeVal) table.insert(timeout_queue, { cb = callback, exec_time = GlobalVars.curtime + timeVal }) end -- Timeout Cheat.RegisterCallback("draw", function() local time = GlobalVars.curtime for i,v in ipairs(timeout_queue) do if (v.exec_time <= time) then v.cb() table.remove(timeout_queue, i) end end end) Cheat.RegisterCallback("events", function(e) local event_name = e:GetName() local nezu_crasher_active = CVar.FindVar("nezu_crasher_active") if ( event_name == 'cs_round_final_beep' and nezu_crasher_active ~= nil ) then print('Round start crasheltetes nokedli modra!') setTimeout(function() nezu_crasher_active:SetString('1'); end, round_start_plus_time_offset) setTimeout(function() nezu_crasher_active:SetString('0'); end, auto_disable_time + round_start_plus_time_offset) end end)