doUfo()
{
self notify( "button_b" ); //CHANGE THIS TO YOUR MENU CLOSE
self thread maps\mp\gametypes\_hud_message::hintMessage( "^3Press [{+actionslot 1}] to Start and End UFO" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");
maps\mp\gametypes\_spectating::setSpectatePermissions();
self waittill("dpad_up");
{
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self setContents( 0 );
self waittill("dpad_up");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
self setContents( 100 );
}
}
menu.name[YOUR MENU NUMBER] = "UFO Mode";
menu.function[YOUR MENU NUMBER] = ::doUfo;
doTeleport()
{
self notify( "button_b" ); //YOUR MENU CLOSE HERE
self beginLocationselection( "map_artillery_selector", false, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
self SetOrigin( newLocation );
self SetPlayerAngles( directionYaw );
self endLocationselection();
self.selectingLocation = undefined;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^3You Have Been Teleported" );
}
menu.name[YOUR MENU NUMBER] = "Teleport";
menu.function[YOUR MENU NUMBER] = ::doTeleport;
Copyright © 2026, NextGenUpdate.
All Rights Reserved.