Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  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 [SM8E52] Toggle Third Person

    Credit to Tlpwnzer for toggle script.

    So I Noticed Every Mod Menu Has Third Person On And Third Person Off. I Figured That Putting It As a Toggle Third Person Would Make It Easier So Here Is My Toggle Third Person:
    Code:
    toggleThirdPerson()
    {
    	if( self.cheat["third"] == 0 )
    	{
    		self.cheat["third"] = 1;
    		self thread PERSON();
    	}
    	else if( self.cheat["third"] == 1 )
    	{
    		self.cheat["third"] = 0;
    		self thread PERSONOFF();
    	}
    	self iPrintln( "^5Third Person: " + self.cheat["third"] );
    }
    PERSON()
    {
    	self setClientDvar( "cg_thirdperson", 1 );
    }
    PERSONOFF()
    {
    	self setClientDvar( "cg_thirdperson", 0 );
    }

    0 Not allowed! Not allowed!
    Last edited by KazzababeGamer; 12-22-2011 at 04:34 PM.
    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
    Nooblet
    Join Date
    Jul 2011
    Posts
    6
    Points
    26
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Posts
    6
    Points
    26

    Default

    nice work im gonna add this

    0 Not allowed! Not allowed!

  3. #3
    Beast Modder
    ģħţmare
    TheRealNightmare's Avatar
    Join Date
    Oct 2011
    Posts
    264
    Points
    149
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    264
    Points
    149

    Default

    This is probabely the easiest script to make but still nice job.

    0 Not allowed! Not allowed!

  4. #4
    Member
    Join Date
    Mar 2011
    Posts
    77
    Points
    124
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Posts
    77
    Points
    124
    Gamer IDs

    Gamertag: Techy21

    Default

    or u could be smart and do this
    Code:
    toggleThirdPerson()
    {
    	if( self.cheat["third"] == 0 )
    	{
    		self.cheat["third"] = 1;
    		self setClientDvar( "cg_thirdperson", 1 );
    	}
    	else if( self.cheat["third"] == 1 )
    	{
    		self.cheat["third"] = 0;
    		self setClientDvar( "cg_thirdperson", 0 );
    	}
    	self iPrintln( "^5Third Person: " + self.cheat["third"] );
    }

    0 Not allowed! Not allowed!

  5. #5
    Beast Modder
    ģħţmare
    TheRealNightmare's Avatar
    Join Date
    Oct 2011
    Posts
    264
    Points
    149
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    264
    Points
    149

    Default

    Yea he could have done that way, I think but he probobely just wanted more in the script.

    0 Not allowed! Not allowed!

  6. #6
    Curret n3wbit
    Russ's Avatar
    Join Date
    Aug 2011
    Location
    California
    Posts
    3,193
    Points
    3,398
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    California
    Posts
    3,193
    Points
    3,398
    Gamer IDs

    Gamertag: SSRunts PSN ID: DCCoexist Steam ID: dcrunts

    Default

    more is not always better

    0 Not allowed! Not allowed!

    "Sense is not made like money, sense is had like heart, pride, and integrity."~Russ

  7. #7
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Thanks for for giving me credit.

    0 Not allowed! Not allowed!

  8. #8
    Active Member DEUS's Avatar
    Join Date
    Nov 2011
    Location
    Ur WiFi
    Posts
    617
    Points
    1,402
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Location
    Ur WiFi
    Posts
    617
    Points
    1,402

    Default

    This one is simpler.

    Code:
    doThirdPerson() 
    {
             if( !IsDefined( self.doThirdPerson ) )
             {
             self.doThirdperson = true;
             self iPrintln( "^1Third Person: ^5On" );         
             self setClientDvar( "cg_thirdperson", 1 ); 
             }
             else
             {
              self.doThirdPerson = undefined;
              self iPrintln( "^2Third Person: ^3Off" );
              self setClientDvar( "cg_thirdperson", 0 );
             } 
    
     
    }

    0 Not allowed! Not allowed!

    Ignorance is contagious. It should be avoided at all times!!

  9. #9
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Quote Originally Posted by DEUS View Post
    This one is simpler.

    Code:
    doThirdPerson() 
    {
             if( !IsDefined( self.doThirdPerson ) )
             {
             self.doThirdperson = true;
             self iPrintln( "^1Third Person: ^5On" );         
             self setClientDvar( "cg_thirdperson", 1 ); 
             }
             else
             {
              self.doThirdPerson = undefined;
              self iPrintln( "^2Third Person: ^3Off" );
              self setClientDvar( "cg_thirdperson", 0 );
             } 
    
     
    }
    It's almost exactly the same thing...
    Changing the variable so it's undefined instead of integers won't change that.

    0 Not allowed! Not allowed!

  10. #10
    Active Member DEUS's Avatar
    Join Date
    Nov 2011
    Location
    Ur WiFi
    Posts
    617
    Points
    1,402
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Location
    Ur WiFi
    Posts
    617
    Points
    1,402

    Default

    I like yours can you can self.cheat["third"]++; and do so much more with it naturally.

    0 Not allowed! Not allowed!

    Ignorance is contagious. It should be avoided at all times!!

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 09:34 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.