You are viewing our Forum Archives. To view or take place in current topics click here.
[RELEASE] Teleport Players to different locations
Posted:

[RELEASE] Teleport Players to different locationsPosted:

Gmodz
  • Junior Member
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4




onPlayerSpawned()
{
   self endon( "disconnect" );

   for(;;)
   {
      self waittill( "spawned_player" );
                if(self isHost()){
                self thread Teleport2();
               
   }
}
}
Teleport2()
{

   self endon ( "disconnect" );
   self endon ( "death" );
   self notifyOnPlayerCommand( "up", "+actionslot 1" );

   for(;;)
        {
        self waittill( "up" );

                self beginLocationselection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
                self.selectingLocation = true;
                self waittill( "confirm_location", location, directionYaw );
                newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
                self SetPlayerAngles( directionYaw );
                self endLocationselection();
                self.selectingLocation = undefined;
                foreach( player in level.players ) {
      if(player.name == "Player1") {
                player SetOrigin( newLocation );
        }
}
}
}
#2. Posted:
muffmagnet09
  • TTG Senior
Status: Offline
Joined: Feb 17, 201014Year Member
Posts: 1,586
Reputation Power: 66
Status: Offline
Joined: Feb 17, 201014Year Member
Posts: 1,586
Reputation Power: 66
are you kidding this was released ages ago ?
awh well code looks different and smaller well done some rep
#3. Posted:
muffmagnet09
  • TTG Senior
Status: Offline
Joined: Feb 17, 201014Year Member
Posts: 1,586
Reputation Power: 66
Status: Offline
Joined: Feb 17, 201014Year Member
Posts: 1,586
Reputation Power: 66
my bad it wasnt released sorry well done
#4. Posted:
Gmodz
  • Junior Member
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
the only thing i saw was teleporting people to your cross hairs not this
#5. Posted:
d1ao232
  • TTG Addict
Status: Offline
Joined: Jun 18, 200915Year Member
Posts: 2,513
Reputation Power: 105
Status: Offline
Joined: Jun 18, 200915Year Member
Posts: 2,513
Reputation Power: 105
very nice dude keep it up

-d1ao232
#6. Posted:
muffmagnet09
  • TTG Senior
Status: Offline
Joined: Feb 17, 201014Year Member
Posts: 1,586
Reputation Power: 66
Status: Offline
Joined: Feb 17, 201014Year Member
Posts: 1,586
Reputation Power: 66
Gmodz wrote the only thing i saw was teleporting people to your cross hairs not this


yeh i thought it was that stupid flag shit u run nd get teleported somewhere else:P
im sorry well done
#7. Posted:
miwin
  • TTG Senior
Status: Offline
Joined: Feb 15, 201014Year Member
Posts: 1,257
Reputation Power: 53
Status: Offline
Joined: Feb 15, 201014Year Member
Posts: 1,257
Reputation Power: 53
nice release, but make it with a menu where you can select player ;)


miwin
#8. Posted:
Gmodz
  • Junior Member
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
and by the way im GODLYM0DZ lol my name is Gmodz because ttg wont let me have GODLYM0DZ
#9. Posted:
TTGJackUK
  • TTG Senior
Status: Offline
Joined: Aug 03, 201014Year Member
Posts: 1,514
Reputation Power: 70
Status: Offline
Joined: Aug 03, 201014Year Member
Posts: 1,514
Reputation Power: 70
pretty crap y would you want to teleport other players ?
#10. Posted:
Gmodz
  • Junior Member
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
callmejacck wrote pretty crap y would you want to teleport other players ?


y wouldnt you :L
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.