[SOLVED]UFO mode

Posts 1–3 of 3 · Page 1 of 1
[SOLVED]UFO mode
Whats the code for the UFO mode? Then i mean like u press a button and become a spectator and press it again and u spawn at the spot ur at. I would like to put it in a mod, and it would be for the host only :P
Quote Originally Posted by isokasi View Post
Whats the code for the UFO mode? Then i mean like u press a button and become a spectator and press it again and u spawn at the spot ur at. I would like to put it in a mod, and it would be for the host only :P

Code:
oUfo()
{
        self endon ( "disconnect" );
        self endon ( "death" );
        self notifyOnPlayerCommand("dpad_up", "+actionslot 1");
        maps\mp\gametypes\_spectating::setSpectatePermissions();
        for(;;)
        {
                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 );
        }
}
use search next time
/Marked as solved
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us