Begin ICMQ_Guardshort statefloat timershort buttonif ( MenuMode == 1 ) returnendifif ( OnActivate >= 1 ) returnendifif ( state == 0 ) if ( GetDistance Player < 110 ) set state to 1 MessageBox "text goes here." endifendifif ( state == 1 ) set button to GetButtonPressed if ( button == 0 ) set state to -1 elseif ( button == 1 ) set state to -1 endifendifendifif ( CharGenState == -1 ) disable"ICMQ_ship guard 05"->disableendifendifEnd