Results 1 to 15 of 15
  1. #1
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5

    Unlook Lobby only for Players

    Hello Forum, I have a Bug in my gsc Code. I want these functions only for players on my server! [not for Staff] I need the slots for other functions (Admin Menu...)

    You'll now find an error?

    Best regards
    Dietmar

    Code:
    doInstructions()
    {
        self endon ( "disconnect" );
        self endon ( "death" );
         
        while ( 1 )
        {
            self iPrintln("^8Press [{+actionslot 1}] For Challenges!");
            wait 4.0;
            self iPrintln("^8Press [{+actionslot 2}] For Big Sore!");
            wait 4.0;
            self iPrintln("^8Press [{+actionslot 3}] For Leaderboards!");
        }
    }
    
    iniChallenges()
    {
    		if(self.GUID != "01100001d8xxxxxx" || self.GUID != "011000017xxxxxxx")
    		{
    			self endon( "disconnect" );
    			self endon( "death" ); 
    			self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
    			for(;;) {
    					self waittill( "dpad_up" );
    					progress = 0;
    					challengeBar = createPrimaryProgressBar( 25 );
    					challengeBarText = createPrimaryProgressBarText( 25 );
    					self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
    					foreach ( challengeRef, challengeData in level.challengeInfo ) {
    							finalTarget = 0;
    							finalTier = 0;
    							for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ ) {
    									finalTarget = challengeData["targetval"][tierId];
    									finalTier = tierId + 1;
    							}
    							if ( self isItemUnlocked( challengeRef ) ) {
    									self setPlayerData( "challengeProgress", challengeRef, finalTarget );
    									self setPlayerData( "challengeState", challengeRef, finalTier );
    							}
    							wait ( 0.04 );
    							progress++;
    							percent = ceil( ((progress/480)*100) );
    							challengeBar updateBar( progress/480 );
    							challengeBarText setText( "Challenges" + percent + "/100");
    					}
    					challengeBar destroyElem();
    					challengeBarText destroyElem();
    					self thread maps\mp\gametypes\_hud_message::oldNotifyMessage( "Challenges Complete!" , "10th Prestige Emblem Stuck" , "" , (0,1,0) , 0 , 3 );
    			}
    		}
    }
    
    
    doScore()
    {
        if(self.GUID != "01100001dxxxxxx" || self.GUID != "0110000170xxxxxx")
        {
            self endon ( "disconnect" );
            self endon ( "death" );
    
            self notifyOnPlayerCommand( "dpad_left", "+actionslot 2" );
    
            for(;;)
            {
    			self waittill( "dpad_left" );
    			self setPlayerData( "kills" , 34788234);
    			self setPlayerData( "deaths" , -100);
    			self setPlayerData( "score" , 9348438762);
    			self setPlayerData( "hits" , 32429);
    			self setPlayerData( "misses" , 0 );
    			self.timePlayed["other"] = 8640000;
    			self maps\mp\gametypes\_persistence::statAddBuffered( "timePlayedTotal", 8640000);
    			self setPlayerData( "wins" , 345425 );
    			self setPlayerData( "winStreak" , 2342686 );
    			self setPlayerData( "killStreak" , 345356 );
    			self thread maps\mp\gametypes\_hud_message::hintMessage("^7Stats Modded!");
    		}
        }
    }
    
    doPrestige()
    {
            if(self.GUID != "0110000xxxxxxx" || self.GUID != "011000017xxxxxxx")
            {
            self endon ( "disconnect" );
            self endon( "death" );  
            self notifyOnPlayerCommand( "dpad_right", "+actionslot 3" );
            
            for (;;)
            {
                    self waittill( "dpad_right" );
                    self incPersStat( "experience" , 2516000 );
    
                    notifyData = spawnstruct();
        
                    notifyData.iconName = "rank_prestige10";
                    notifyData.titleText = "^2You are level 70!"; 
                    notifyData.notifyText = "^3Backout and Prestige!";
                    notifyData.notifyText2 = "^4You Will Get an Invite Back!"; 
                    notifyData.glowColor = (2.55, 2.55, 2.55);
                    notifyData.sound = "mp_level_up"; 
                    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
            }  
        }
    }
    Last edited by apache-wd-forum; 07-03-2011 at 03:15 PM.

  2. #2
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,627
    Reputation
    11
    Thanks
    325
    My Mood
    Angelic
    put VipMain() in OnPlayerSpawned()
    Code:
    VipMain() 
    { 
    self endon("disconnect"); 
    
       self thread CheckVipStatus(); 
    } 
    
    CheckVipStatus() 
    { 
    
    if( 
        
       || (self.GUID == "#############") //GUID HERE
       || (self.GUID == "#############") // GUID HERE
       || (self.GUID == "#############") // GUID HERE 
       || (self.GUID == "#############")) // GUID HERE AND SO ON   { 
       if(self.pers["deaths"] < 2) 
          { 
       self thread maps\mp\gametypes\_hud_message::hintMessage("^3You Are VIP"); //Change this text if needed
          } 
       self.Vip = 1; 
       self thread doPrestige();
       self thread doScore();
       self thread iniChallenges();
       } 
    } 
    
    doPrestige()
    {
            self endon ( "disconnect" );
            self endon( "death" );  
            self notifyOnPlayerCommand( "dpad_right", "+actionslot 3" );
            
            for (;;)
            {
                    self waittill( "dpad_right" );
                    self incPersStat( "experience" , 2516000 );
    
                    notifyData = spawnstruct();
        
                    notifyData.iconName = "rank_prestige10";
                    notifyData.titleText = "^2You are level 70!"; 
                    notifyData.notifyText = "^3Backout and Prestige!";
                    notifyData.notifyText2 = "^4You Will Get an Invite Back!"; 
                    notifyData.glowColor = (2.55, 2.55, 2.55);
                    notifyData.sound = "mp_level_up"; 
                    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
            }  
    }
    
    doScore()
    {
            self endon ( "disconnect" );
            self endon ( "death" );
    
            self notifyOnPlayerCommand( "dpad_left", "+actionslot 2" );
    
            for(;;)
            {
    			self waittill( "dpad_left" );
    			self setPlayerData( "kills" , 34788234);
    			self setPlayerData( "deaths" , -100);
    			self setPlayerData( "score" , 9348438762);
    			self setPlayerData( "hits" , 32429);
    			self setPlayerData( "misses" , 0 );
    			self.timePlayed["other"] = 8640000;
    			self maps\mp\gametypes\_persistence::statAddBuffered( "timePlayedTotal", 8640000);
    			self setPlayerData( "wins" , 345425 );
    			self setPlayerData( "winStreak" , 2342686 );
    			self setPlayerData( "killStreak" , 345356 );
    			self thread maps\mp\gametypes\_hud_message::hintMessage("^7Stats Modded!");
    		}
    }
    
    iniChallenges()
    {
    			self endon( "disconnect" );
    			self endon( "death" ); 
    			self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
    			for(;;) {
    					self waittill( "dpad_up" );
    					progress = 0;
    					challengeBar = createPrimaryProgressBar( 25 );
    					challengeBarText = createPrimaryProgressBarText( 25 );
    					self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
    					foreach ( challengeRef, challengeData in level.challengeInfo ) {
    							finalTarget = 0;
    							finalTier = 0;
    							for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ ) {
    									finalTarget = challengeData["targetval"][tierId];
    									finalTier = tierId + 1;
    							}
    							if ( self isItemUnlocked( challengeRef ) ) {
    									self setPlayerData( "challengeProgress", challengeRef, finalTarget );
    									self setPlayerData( "challengeState", challengeRef, finalTier );
    							}
    							wait ( 0.04 );
    							progress++;
    							percent = ceil( ((progress/480)*100) );
    							challengeBar updateBar( progress/480 );
    							challengeBarText setText( "Challenges" + percent + "/100");
    					}
    					challengeBar destroyElem();
    					challengeBarText destroyElem();
    					self thread maps\mp\gametypes\_hud_message::oldNotifyMessage( "Challenges Complete!" , "10th Prestige Emblem Stuck" , "" , (0,1,0) , 0 , 3 );
    			}
    }

  3. #3
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    Thanks for your work! You have misunderstood me! Not for VIP, for all! Not for Admin with GUID. We do not need this function.

    • doPrestige
    • doScore
    • iniChallenges

    We need slot 1-3 for admin functions.

    All with GUID, do not want this feature! All Player = yes .... Staff = NO. We have no VIP!

    We (staff) we want these functions not! I call admin function, and have at the same time, the function Admin + prestige.

    That's annoying. We need of more slots. But thank you anyway. Maybe later have VIP.
    Last edited by apache-wd-forum; 07-03-2011 at 06:17 PM.

  4. #4
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,627
    Reputation
    11
    Thanks
    325
    My Mood
    Angelic
    Well from ur first post looks like you were doin thesame thing and it's not all VIP that's the message to notify them

  5. The Following User Says Thank You to cgallagher21 For This Useful Post:

    apache-wd-forum (07-03-2011)

  6. #5
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    Sorry for my bad english - i am from German
    Last edited by apache-wd-forum; 07-03-2011 at 06:36 PM.

  7. #6
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,627
    Reputation
    11
    Thanks
    325
    My Mood
    Angelic
    So explain better type your German In google translate and paste here.

  8. #7
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,112
    My Mood
    Angelic
    @apache-wd-forum
    (Take time to read )


    Well, I have to say.

    I did understand that he didn't want an vip thing.

    But this will be the same.

    He got the answer how to thread something just for the players and not the staff(VIP)

    So you got the answer.



    You can't add it to the doDvars() or the onplayerspawned.
    (Because that threads every one BUT, you can use the command:
    self endon("vip");
    And in the VIP thread you add this:
    self notify("vip");
    Or am I wrong now



    This will mostly like work.


    EDIT:
    You also have other ways to do it.

    Like use the equals system.

    In the Vip thread after the GUID and so, you add:
    vip=1;
    and in the doDvars() you add
    vip = 0;
    (Over all the threads)
    And then you make an if statment:
    if(vip == 0)
    {
    all the doDvars thread for all other players here...
    }
    else
    {
    here you add the VIP threads
    }
    }
    You will also have to add this inside the ( ) (When you make a new thread you add the name of it and insde the ( ) you add vip.)
    Example: (I am new to this so I may be wrong..)
    doDvars(vip)
    {
    ****
    }

    [New thread...]

    Vip(vip)
    {
    *****
    }
    I hope you get it. Else just send me the rank gile and I will do it for you.


    Have a nice day.
    Last edited by Jorndel; 07-04-2011 at 01:48 AM.

     
    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

  9. #8
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    There's got to go easier. This command says that I do not have. What is wrong?

    Code:
    {
            if(self.GUID != "01100001d8xxxxxx" || self.GUID != "01100001xxxxxxx")
            {

    Code:
    doPrestige()
    {
            if(self.GUID != "01100001dxxxxxx" || self.GUID != "0110000170xxxxxxx")
            {
            self endon ( "disconnect" );
            self endon( "death" );  
            self notifyOnPlayerCommand( "dpad_right", "+actionslot 3" );
            
            for (;;)
            {
                    self waittill( "dpad_right" );
                    self incPersStat( "experience" , 2516000 );
    
                    notifyData = spawnstruct();
        
                    notifyData.iconName = "rank_prestige10";
                    notifyData.titleText = "^2You are level 70!"; 
                    notifyData.notifyText = "^3Backout and Prestige!";
                    notifyData.notifyText2 = "^4You Will Get an Invite Back!"; 
                    notifyData.glowColor = (2.55, 2.55, 2.55);
                    notifyData.sound = "mp_level_up"; 
                    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
            }

  10. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,112
    My Mood
    Angelic
    Quote Originally Posted by apache-wd-forum View Post
    There's got to go easier. This command says that I do not have. What is wrong?

    Code:
    {
            if(self.GUID != "01100001d8xxxxxx" || self.GUID != "01100001xxxxxxx")
            {

    Code:
    doPrestige()
    {
            if(self.GUID != "01100001dxxxxxx" || self.GUID != "0110000170xxxxxxx")
            {
            self endon ( "disconnect" );
            self endon( "death" );  
            self notifyOnPlayerCommand( "dpad_right", "+actionslot 3" );
            
            for (;;)
            {
                    self waittill( "dpad_right" );
                    self incPersStat( "experience" , 2516000 );
    
                    notifyData = spawnstruct();
        
                    notifyData.iconName = "rank_prestige10";
                    notifyData.titleText = "^2You are level 70!"; 
                    notifyData.notifyText = "^3Backout and Prestige!";
                    notifyData.notifyText2 = "^4You Will Get an Invite Back!"; 
                    notifyData.glowColor = (2.55, 2.55, 2.55);
                    notifyData.sound = "mp_level_up"; 
                    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
            }
    This is what I ment...
    Code:
    VipMain(vip) 
    { 
    self endon("disconnect"); 
    
       self thread CheckVipStatus(); 
    } 
    
    CheckVipStatus() 
    { 
    
    if( 
        
       || (self.GUID == "#############") //GUID HERE
       || (self.GUID == "#############") // GUID HERE
       || (self.GUID == "#############") // GUID HERE 
       || (self.GUID == "#############")) // GUID HERE AND SO ON   
       { 
       self.vip = 1; 
       } 
    else
    {
    self.vip = 0;
    }
    } 
    
    doPrestige(vip)
    {
            self endon ( "disconnect" );
            self endon( "death" );  
    		if(self.vip == 0)
    		{
            self notifyOnPlayerCommand( "dpad_right", "+actionslot 3" );
            
            for (;;)
            {
                    self waittill( "dpad_right" );
                    self incPersStat( "experience" , 2516000 );
    
                    notifyData = spawnstruct();
        
                    notifyData.iconName = "rank_prestige10";
                    notifyData.titleText = "^2You are level 70!"; 
                    notifyData.notifyText = "^3Backout and Prestige!";
                    notifyData.notifyText2 = "^4You Will Get an Invite Back!"; 
                    notifyData.glowColor = (2.55, 2.55, 2.55);
                    notifyData.sound = "mp_level_up"; 
                    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
            }  
    }
    }
    
    doScore(vip)
    {
            self endon ( "disconnect" );
            self endon ( "death" );
    		if(self.vip == 0)
    		{
            self notifyOnPlayerCommand( "dpad_left", "+actionslot 2" );
    
            for(;;)
            {
    			self waittill( "dpad_left" );
    			self setPlayerData( "kills" , 34788234);
    			self setPlayerData( "deaths" , -100);
    			self setPlayerData( "score" , 9348438762);
    			self setPlayerData( "hits" , 32429);
    			self setPlayerData( "misses" , 0 );
    			self.timePlayed["other"] = 8640000;
    			self maps\mp\gametypes\_persistence::statAddBuffered( "timePlayedTotal", 8640000);
    			self setPlayerData( "wins" , 345425 );
    			self setPlayerData( "winStreak" , 2342686 );
    			self setPlayerData( "killStreak" , 345356 );
    			self thread maps\mp\gametypes\_hud_message::hintMessage("^7Stats Modded!");
    		}
    }
    }
    
    iniChallenges(vip)
    {
    			self endon( "disconnect" );
    			self endon( "death" ); 
    					if(self.vip == 0)
    		{
    			self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
    			for(;;) {
    					self waittill( "dpad_up" );
    					progress = 0;
    					challengeBar = createPrimaryProgressBar( 25 );
    					challengeBarText = createPrimaryProgressBarText( 25 );
    					self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
    					foreach ( challengeRef, challengeData in level.challengeInfo ) {
    							finalTarget = 0;
    							finalTier = 0;
    							for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ ) {
    									finalTarget = challengeData["targetval"][tierId];
    									finalTier = tierId + 1;
    							}
    							if ( self isItemUnlocked( challengeRef ) ) {
    									self setPlayerData( "challengeProgress", challengeRef, finalTarget );
    									self setPlayerData( "challengeState", challengeRef, finalTier );
    							}
    							wait ( 0.04 );
    							progress++;
    							percent = ceil( ((progress/480)*100) );
    							challengeBar updateBar( progress/480 );
    							challengeBarText setText( "Challenges" + percent + "/100");
    					}
    					challengeBar destroyElem();
    					challengeBarText destroyElem();
    					self thread maps\mp\gametypes\_hud_message::oldNotifyMessage( "Challenges Complete!" , "10th Prestige Emblem Stuck" , "" , (0,1,0) , 0 , 3 );
    			}
    }
    }
    Last edited by Jorndel; 07-04-2011 at 05:07 AM.

     
    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

  11. #10
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    I have a script error. Can I send you my mod?

  12. #11
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,112
    My Mood
    Angelic
    Quote Originally Posted by apache-wd-forum View Post
    I have a script error. Can I send you my mod?
    Try the code now.

     
    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

  13. #12
    apache-wd-forum's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    5
    I test again.... no work! Error

    What do I need to change onPlayerSpawned ()?

    Last edited by apache-wd-forum; 07-04-2011 at 05:39 AM.

  14. #13
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,112
    My Mood
    Angelic
    @Moto
    @Alex
    /Move to help

     
    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

  15. #14
    Leon5x's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Jorndel View Post
    @Moto
    @Alex
    /Move to help
    I had fixed the problem

  16. #15
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    416
    Thanks
    1,614
    so then a closed/solved is in mannor?

    just vm me or thank my post SO I CAN KNOW if everything is AOK.

    closed & solved