Results 1 to 7 of 7
  1. #1
    L33TGamer
    Taste The Rainbow
    777ATRiiX's Avatar
    Join Date
    Jun 2011
    Location
    Canada
    Posts
    320
    Points
    266
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Canada
    Posts
    320
    Points
    266
    Gamer IDs

    PSN ID: MATRiiX360

    Contact info:

    Youtube Channel: www.youtube.com/user/777ATRiiX

    Default [SC7E52] Coordinate Finder

    This Isnt Really Anything I Just Thought It Would Be Helpfull It Basically Tells Were You Are And Your Angle Every 3 Secs Its Good For Getting Spawns

    The Original Script:
    Code:
    PrintOrigin()
    {
    	self endon( "disconnect" );
    	self endon( "OriginStop" );
    	while(1)
    	{
    		wait 3;
    		self iPrintln( "^2Origin: ^7"+self.origin+" ^2Angles: ^7"+self.angles );
    	}
    }
    Toggler Version I Put It Into:
    Code:
    toggleOrigin()
    {
    	if( self.originOn == 0 )
    	{
    		self.originOn = 1;
    		self thread PrintOrigin();
    		self iPrintln( "Coordinate Finder: ^2On" );
    	}
    	else
    	{
    		self.originOn = 0;
    		self iPrintln( "Coordinate Finder: ^1Off" );
    		self notify( "OriginStop" );
    	}
    }
    
    PrintOrigin()
    {
    	self endon( "disconnect" );
    	self endon( "OriginStop" );
    	while(1)
    	{
    		wait 3;
    		self iPrintln( "^2Origin: ^7"+self.origin+" ^2Angles: ^7"+self.angles );
    	}
    }
    Credits:
    TlPwnzer For Toggler(I Got It From Nade Training)
    BaTMaN For GIVING Me The PrintOrigin Script
    And To Whoever Made The PrintOrigin Script Thanks!

    0 Not allowed! Not allowed!
    Quote Originally Posted by RED 58 View Post
    I especially want to wish S&S Skittles a Merry Christmas!

    I Am S&S Skittles

  2. #2
    mini mini's Avatar
    Join Date
    Aug 2011
    Location
    Minnesota
    Posts
    1,988
    Points
    2,840
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Minnesota
    Posts
    1,988
    Points
    2,840
    Gamer IDs

    PSN ID: minnesotastyle

    Contact info:

    Youtube Channel: www.youtube.com/user/codeleakerforums

    Default

    Will be nice for people making mod menus.

    0 Not allowed! Not allowed!


  3. #3
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    Quote Originally Posted by L33TGamer View Post
    This Isnt Really Anything I Just Thought It Would Be Helpfull It Basically Tells Were You Are And Your Angle Every 3 Secs Its Good For Getting Spawns

    The Original Script:
    Code:
    PrintOrigin()
    {
    	self endon( "disconnect" );
    	self endon( "OriginStop" );
    	while(1)
    	{
    		wait 3;
    		self iPrintln( "^2Origin: ^7"+self.origin+" ^2Angles: ^7"+self.angles );
    	}
    }
    Toggler Version I Put It Into:
    Code:
    toggleOrigin()
    {
    	if( self.originOn == 0 )
    	{
    		self.originOn = 1;
    		self thread PrintOrigin();
    		self iPrintln( "Coordinate Finder: ^2On" );
    	}
    	else
    	{
    		self.originOn = 0;
    		self iPrintln( "Coordinate Finder: ^1Off" );
    		self notify( "OriginStop" );
    	}
    }
    
    PrintOrigin()
    {
    	self endon( "disconnect" );
    	self endon( "OriginStop" );
    	while(1)
    	{
    		wait 3;
    		self iPrintln( "^2Origin: ^7"+self.origin+" ^2Angles: ^7"+self.angles );
    	}
    }
    Credits:
    TlPwnzer For Toggler(I Got It From Nade Training)
    BaTMaN For GIVING Me The PrintOrigin Script
    And To Whoever Made The PrintOrigin Script Thanks!
    I originally made this, but I don't really care for credit.
    But dude, test before you release if you don't know wtf is gonna happen.
    This will fail badly.

    Okay..
    First off..

    self endon( "disconnect" );
    Why? Why?
    I will never stop asking myself and the rest of the people in this modder why?
    WHY THE FUCK END SOMETHING WHEN YOU DISCONNECT? IT MAKES 0 SENSE!!!!!!!!!!
    Omg, it get's so annoying when people use this for the hell of using this.
    You might as well put
    //Stupid comment that does nothing
    at the top of every script you have..
    That's not really a problem, it's just 100% useless.

    if( self.originOn == 0 )
    Do you know what self.origin first equals?
    it equals undefined. Seriously.
    sefl.originOn = undefined;
    Every variable is that before it is defined. So this
    thing wont work at all because if will never, ever, equal one.

    And, if it did equal 1, then the else wouldn't really work.
    So first off, when the will it EVER not equal one (if it did equal one
    in the first place)
    The game will not randomly out of no where make it equal 5256 so the else would work.
    If you did make it so it would equal else somehow, then the whole script would stop working.
    because of your notify.
    What's the point of the notify if you have if's?
    Btw, I would do:

    for( ;; )
    {
    self iprintln(self.origin + ", " +self.angles);
    wait 1;
    }

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  4. #4
    L33TGamer
    Taste The Rainbow
    777ATRiiX's Avatar
    Join Date
    Jun 2011
    Location
    Canada
    Posts
    320
    Points
    266
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Canada
    Posts
    320
    Points
    266
    Gamer IDs

    PSN ID: MATRiiX360

    Contact info:

    Youtube Channel: www.youtube.com/user/777ATRiiX

    Default

    it works just fine i used it to edit Humans Vs Aliens

    0 Not allowed! Not allowed!
    Quote Originally Posted by RED 58 View Post
    I especially want to wish S&S Skittles a Merry Christmas!

    I Am S&S Skittles

  5. #5
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    I didn't look in that else, my bad.
    It just looks like the way it works is kinda bad and confusing imo..
    Here..

    Code:
    toggleOrigin()
    {
        if(self.originOn)
        {
            self.originOn = false;
            self iPrintln( "Coordinate Finder: ^1Off" );
        }
        else if(!self.originOn)
        {
            self.originOn = true;
            self iPrintln( "Coordinate Finder: ^2On" );
        }
        if(!isDefined(self.asdjk))
        {
            self.asdjk = "";
            self.originOn = true;
            self thread PrintOrigin();
        }
    }
    
    PrintOrigin()
    {
        for(;;)
        {
            while(self.originOn)
            {
                self iPrintln( self.origin+ ", " +self.angles );
                wait 1;
            }
            wait 0.1;
        }
    }

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  6. #6
    silenthitman7
    Zombie Modder
    BaTMaN's Avatar
    Join Date
    Feb 2012
    Posts
    235
    Points
    520
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Posts
    235
    Points
    520

    Default

    As long as self.originOn is defined as
    self.originOn = 0;
    in the player Variables thread or wherever, it should work just fine...

    0 Not allowed! Not allowed!

  7. #7
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    I wasn't really looking in detail, my code would normally work by defining the variables on spawned.
    I didn't look at the else very well and thought of it as
    else if(self.originOn == 1)
    So I looked at everything wrong.

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 03:07 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.