{$CLEO .cs}

0@ = Actor.EmulateFromPlayer(0)

:MAIN_LOOP
wait 0

read_memory 1@ = read_memory 9874336 size 1 virtual_protect 0 //OnMission (0x96ABA0)
get_time_of_day 2@ = current_time_hours, 3@

if and
  2@ >= 0
  5 >= 2@
  1@ == 0
  not Actor.Driving(0@)
goto_if_false @Noname_178
if 
  locate_char_any_means_3d 0@ sphere 0 in_sphere -1636.2 -2239.1 31.4 radius 4.0 4.0 4.0
goto_if_false @Noname_178
if 
gosub @DEFEAT
goto_if_false @Noname_149
//disable_all_entry_exits 1 // Disable ENNEX
terminate_this_custom_script 
goto @Noname_178

:Noname_149
print_string_now "incorrect installation" time 5000

:Noname_178
goto @MAIN_LOOP

:DEFEAT
load_and_launch_custom_mission "slenderman" 
return 
//terminate_this_custom_script 
