local cutoff = {} local cutoff2 = {} function pause_script_init(e) cutoff[e] = 0 cutoff2[e] = 0 end function pause_script_main(e) if cutoff[e] == 0 then TextCenterOnX(50,90,3, "Press '<' to pause script") ---Put important debugging text here ---for example: --TextCenterOnX(50,50,3, "Player Position; "..plrx, plry,plrz) end if g_Scancode == 51 then cutoff[e] = 1 end -- '<' = pause script if g_Scancode == 52 then cutoff[e] = 0 cutoff2[e] = 0 end -- '>' = resume script if cutoff2[e] == 0 and g_Scancode == 0 then cutoff2[e] = 1 end if cutoff[e] == 1 then TextCenterOnX(50,90,3, "script PAUSED; press '?' for step script...") TextCenterOnX(50,95,3, "Press '>' for pause OFF.") if g_Scancode == 53 then cutoff2[e] = 0 else return end end TextCenterOnX(50,50,3, "script RUNNING FINE...") end -- main