Results 1 to 9 of 9
  1. #1
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

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

    Default [SC7E52]Simplest Player Lock Script

    PvtRyan's version of Slink's simple scripts

    Code:
    prLock()
    {	
    	if( self.lock == 0 )
    	{
    		self.lock = 1;
    		self iPrintln( "Player Lock ^2ON" );
    		SetMatchFlag( "disableingamemenu", 1 );
    	}
    	else if( self.lock == 1 )
    	{
    		self.lock = 0;
    		self iPrintln( "Player Lock ^1OFF" );
    		SetMatchFlag( "disableingamemenu", 0 );
    	}
    }
    Tested and Working? Of Course :3

    0 Not allowed! Not allowed!
    Last edited by PvtRyan; 07-21-2013 at 01:27 PM.


    PS4 Profile:

  2. #2
    Banned

    Badge

    Join Date
    Dec 2012
    Location
    Barcelona Spain
    Posts
    4,204
    Points
    6,659
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Location
    Barcelona Spain
    Posts
    4,204
    Points
    6,659

    Default

    Good job man. These scripts look simple

    0 Not allowed! Not allowed!

  3. #3
    ~ Hyrule's Savior ~
    link's Avatar
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802

    Contact info:

    Youtube Channel: http://www.YouTube.Com/ReTrOSlink

    Default

    Doing my Simple Script Series, eh? :3

    Good job

    (SON OF A FUCKING BITCH I SHOULD OF DONE THIS ONE IT CAN BE USEFUL AS FUCK!!!)

    Also this won't work. The lock variable isn't defined.

    Code:
    prLock()
    {	
    	if( self.lock == 0 )
    	{
    		self.lock = 1;
    		self iPrintln( "Player Lock ^2ON" );
    		SetMatchFlag( "disableingamemenu", 1 );
    	}
    	else if( self.lock == 1 )
    	{
    		self.lock = 0;
    		self iPrintln( "Player Lock ^1OFF" );
    		SetMatchFlag( "disableingamemenu", 0 );
    	}
    }
    Compare what I posted to the one you posted. See the error? Now it's fixed.


    The one you posted will only toggle it on, and then it can't be turned off. I just fixed it up so it can toggle on and off, not just on.

    0 Not allowed! Not allowed!
    Last edited by link; 07-21-2013 at 01:24 PM.
    #gamedevelopment


  4. #4
    Suicidal Thoughts
    Atmosphere's Avatar
    Join Date
    Oct 2012
    Location
    Oceans Ate Alaska
    Posts
    3,648
    Points
    2,290
         User Info     Contact     Gamer ID
    Join Date
    Oct 2012
    Location
    Oceans Ate Alaska
    Posts
    3,648
    Points
    2,290
    Gamer IDs

    Gamertag: xINSTANT CRUSHx Steam ID: xatmospherex

    Default

    Nice job Ryan and nice slink!

    0 Not allowed! Not allowed!

  5. #5
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

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

    Default

    Quote Originally Posted by Slink View Post
    Doing my Simple Script Series, eh? :3

    Good job

    (SON OF A FUCKING BITCH I SHOULD OF DONE THIS ONE IT CAN BE USEFUL AS FUCK!!!)

    Also this won't work. The lock variable isn't defined.

    Code:
    prLock()
    {	
    	if( self.lock == 0 )
    	{
    		self.lock = 1;
    		self iPrintln( "Player Lock ^2ON" );
    		SetMatchFlag( "disableingamemenu", 1 );
    	}
    	else if( self.lock == 1 )
    	{
    		self.lock = 0;
    		self iPrintln( "Player Lock ^1OFF" );
    		SetMatchFlag( "disableingamemenu", 0 );
    	}
    }
    Compare what I posted to the one you posted. See the error? Now it's fixed.


    The one you posted will only toggle it on, and then it can't be turned off. I just fixed it up so it can toggle on and off, not just on.


    Wow I'm a fail xD thanks Slink I didn't see that honestly.

    1 Not allowed! Not allowed!


    PS4 Profile:

  6. #6
    V.XVII.XIV Synix's Avatar
    Join Date
    Aug 2011
    Posts
    2,650
    Points
    2,307
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    2,650
    Points
    2,307
    Gamer IDs

    PSN ID: I-Synix-I

    Contact info:

    Kik Username: SynixMods

    Default

    Nice, xD. But it's still simple either way.

    0 Not allowed! Not allowed!
    DM<3
    Gaming / Modding Instagram | @SynixMods
    Personal Instagram | @Fxqn
    Kik | @Sqkx
    Retired PS3 Modder

  7. #7
    Zonked CoolGuyJones's Avatar
    Join Date
    Aug 2012
    Location
    Behind you
    Posts
    1,180
    Points
    898
         User Info     Contact     Gamer ID
    Join Date
    Aug 2012
    Location
    Behind you
    Posts
    1,180
    Points
    898
    Gamer IDs

    Gamertag: thatonedude19 PSN ID: CoolGuyJones420 Wii Code: Cannibal666

    Contact info:

    Kik Username: CannibalKush

    Default

    Technically this is simpler.

    Code:
    prLock()
    {	
    	if( self.lock == 0 )
    	{
    		self.lock = 1;
    		SetMatchFlag( "disableingamemenu", 1 );
    	}
    	else if( self.lock == 1 )
    	{
    		self.lock = 0;
    		SetMatchFlag( "disableingamemenu", 0 );
    	}
    	self iPrintln( "Player Lock ^3" + self.lock);
    }
    Just saying

    0 Not allowed! Not allowed!

    Thanks for the sig/avatar Blacksun!
    #ChickenWildWings

  8. #8
    ~ Hyrule's Savior ~
    link's Avatar
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802

    Contact info:

    Youtube Channel: http://www.YouTube.Com/ReTrOSlink

    Default

    Quote Originally Posted by Cannibal666 View Post
    Technically this is simpler.

    Code:
    prLock()
    {	
    	if( self.lock == 0 )
    	{
    		self.lock = 1;
    		SetMatchFlag( "disableingamemenu", 1 );
    	}
    	else if( self.lock == 1 )
    	{
    		self.lock = 0;
    		SetMatchFlag( "disableingamemenu", 0 );
    	}
    	self iPrintln( "Player Lock ^3" + self.lock);
    }
    Just saying
    0 and 1 doesn't tell anyone shit unless they now how variables work. It would be better if the variables are defined as ON and OFF, not 0 and 1. But you are on the right track.

    1 Not allowed! Not allowed!
    #gamedevelopment


  9. #9
    Zonked CoolGuyJones's Avatar
    Join Date
    Aug 2012
    Location
    Behind you
    Posts
    1,180
    Points
    898
         User Info     Contact     Gamer ID
    Join Date
    Aug 2012
    Location
    Behind you
    Posts
    1,180
    Points
    898
    Gamer IDs

    Gamertag: thatonedude19 PSN ID: CoolGuyJones420 Wii Code: Cannibal666

    Contact info:

    Kik Username: CannibalKush

    Default

    Quote Originally Posted by Slink View Post
    0 and 1 doesn't tell anyone shit unless they now how variables work. It would be better if the variables are defined as ON and OFF, not 0 and 1. But you are on the right track.
    I only didn't use the in and off cause I used what he had there. With most of my togglables use On and Off.

    0 Not allowed! Not allowed!

    Thanks for the sig/avatar Blacksun!
    #ChickenWildWings

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:40 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.