Results 1 to 6 of 6
  1. #1
    sdm's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    8
    My Mood
    Angelic

    Flag Teleporter [moving]

    Whats the mistakes in this code:

    Code:
    doFTr()
    {
    	self endon("disconnect");
    	self endon("death");
    
    	self.ftrText = self createFontString( "objective", 1 );
    	self.ftrText setPoint( "LEFT", "LEFT", 20, 0 );
    	self.ftrText setText("^3Press ^2[{+actionslot 4}] ^3to teleport to flags");
    
    	self notifyOnPlayerCommand( "[{+actionslot4}]", "+actionslot 4" );
    	for(;;) {
    	if ( (getDvar( "mapname" ) == "mp_favela") )
    	{
    		location = BulletTrace( (275.958, -1046.83, 2.125), ( (275.958, -1046.83, 2.125) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    		newlocation = BulletTrace( (53.7972, 2282.32, 283.205), ( (53.7972, 2282.32, 283.205) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    	}
    	else if ( (getDvar( "mapname" ) == "mp_highrise") )
    	{
    		location = BulletTrace( (176.932, 6384.51, 2824.13), ( (176.932, 6384.51, 2824.13) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    		newlocation = BulletTrace( (-2912.55, 6380.89, 2824.13), ( (-2912.55, 6380.89, 2824.13) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    	}
    	else if ( (getDvar( "mapname" ) == "mp_afghan") )
    	{
    		location = BulletTrace( (3452.09, 1624.96, 48.6644), ( (3452.09, 1624.96, 48.6644) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    		newlocation = BulletTrace( (-510.486, 1203.04, 188.182), ( (-510.486, 1203.04, 188.182) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    	}
    	else if ( (getDvar( "mapname" ) == "mp_derail") )
    	{
    		location = BulletTrace( (82.6741, -2594.78, 108.263), ( (82.6741, -2594.78, 108.263) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    		newlocation = BulletTrace( (2383.88, 1496.17, 128.125), ( (2383.88, 1496.17, 128.125) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    	}
    	else if ( (getDvar( "mapname" ) == "mp_estate") )
    	{
    		location = BulletTrace( (-2885.65, 2483.84, -313.693), ( (-2885.65, 2483.84, -313.693) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    		newlocation = BulletTrace( (774.688, 1684.02, 135.337), ( (774.688, 1684.02, 135.337) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    	}
    	else if ( (getDvar( "mapname" ) == "mp_invasion") )
    	{
    		location = BulletTrace( (-2544.27, -2255.79, 256.125), ( (-2544.27, -2255.79, 256.125) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    		newlocation = BulletTrace( (560.682, -1715.91, 291.317), ( (560.682, -1715.91, 291.317) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    	}
    	else if ( (getDvar( "mapname" ) == "mp_karachi") )
    	{
    		location = BulletTrace( (-356.622, 2112.62, -1.24653), ( (-356.622, 2112.62, -1.24653) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    		newlocation = BulletTrace( (601.808. -1574.98, 8.125), ( (601.808. -1574.98, 8.125) + ( 0, 0, -100000 ) ), 0, self)[ "position" ];
    	}
    	self waittill( "[{+actionslot4}]" );
    	self SetOrigin( location );
    	self waittill( "[{+actionslot4}]" );
    	self SetOrigin( newlocation ); }
    }

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,923
    Reputation
    161
    Thanks
    3,096
    /moved 2 gsc help



  3. #3
    sdm's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    8
    My Mood
    Angelic
    someone can help me?

  4. #4
    sdm's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    8
    My Mood
    Angelic
    please someone?

  5. #5
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    2,001
    Don't double post! Read the damn rules!

    It's on the quick reply before you post, it's stickied on every section and on the top banner. You people piss me off.

  6. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,681
    Reputation
    905
    Thanks
    18,671
    My Mood
    Angelic
    What is this supposed to be?

    If you let me know what you want I can try to make/fix for you. Private Message me when you can/want

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A