Results 1 to 9 of 9
  1. #1
    Banned
    Join Date
    May 2012
    Posts
    337
    Points
    702
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Posts
    337
    Points
    702
    Gamer IDs

    Gamertag: jasp3r p0150nz

    Default Script Broken Help i will do anything

    It is bad syntax whats wrong!

    End()
    {
    self iPrintlnBold( "^1Thanks For Playing" );
    self notify( "endSelection" );
    self thread End4();
    wait 5;
    for(i=0;i<get_players().size;i++)
    {
    get_players()[i] thread End2();
    }
    level notify( "GametypeStarting" );
    }

    End2()
    {
    level.round_number = 214748364;
    level.next_dog_round = level.round_number + 1;
    if( self.inGodMode == 1 ) self.inGodMode = 0;
    self iPrintlnBold( "^3Game Over:" );
    wait 2;
    self iPrintlnBold( "^2Visit 1337 Modderz.webs.com" );
    wait 4;
    self iPrintlnBold( "^2Be sure to check the leaderboards" );
    wait 5;
    self iPrintlnBold( "^1Did You Think I Could Mod?" );
    wait 4;
    self iPrintlnBold( "^1Hope you enjoyed your stay in The Lobby" );
    self thread End3();
    }

    End3()
    {
    earthquake(1, 0.4, self.origin, 512);
    self setClientDvar("r_brightness", -0.2 );
    self thread maps\_zombiemode_powerups::nuke_powerup( self );
    wait 0.5;
    earthquake(1, 0.4, self.origin, 512);
    playFxOnTag( level._effect["character_fire_death_torso"], self, "J_SpineLower" );
    self setClientDvar( "timescale", "0.4" );
    self thread maps\_zombiemode_powerups::nuke_flash();
    self setClientDvar("r_brightness", -0.6 );
    wait 0.5;
    self SetStance( "prone" );
    earthquake(1, 0.4, self.origin, 512);
    self setClientDvar("r_brightness", -0.8 );
    wait 0.5;
    self setClientDvar("r_brightness", -0.9 );
    self DoDamage( self.health + 1000, self.origin, undefined, undefined, "riflebullet" );
    wait 1;
    self setClientDvar("r_brightness", 0 );
    self setClientDvar( "timescale", 1 );

    }

    End4()
    {
    for(i=0;i<get_players().size;i++)
    {
    if(get_players()[i] == self)
    {
    continue;
    }
    get_players()[i] iPrintlnBold( "^2"+self.playername+" Has Ended The Game!" );
    }

    }

    Correct My Script!

    0 Not allowed! Not allowed!

  2. #2
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Code:
    End()
    {
    self iPrintlnBold( "^1Thanks For Playing" );
    self notify( "endSelection" );
    self thread End4();
    wait 5;
    for(i=0;i<get_players.size;i++) 
    {
    get_players[i] self thread End2();
    }
    level notify( "GametypeStarting" );
    }
    
    End2()
    {
    level.round_number = 214748364;
    level.next_dog_round = level.round_number + 1;
    if( self.inGodMode == 1 ) self.inGodMode = 0;
    self iPrintlnBold( "^3Game Over:" );
    wait 2;
    self iPrintlnBold( "^2Visit 1337 Modderz.webs.com" );
    wait 4;
    self iPrintlnBold( "^2Be sure to check the leaderboards" );
    wait 5;
    self iPrintlnBold( "^1Did You Think I Could Mod?" );
    wait 4;
    self iPrintlnBold( "^1Hope you enjoyed your stay in The Lobby" );
    self thread End3();
    }
    
    End3()
    {
    earthquake(1, 0.4, self.origin, 512);
    self setClientDvar("r_brightness", -0.2 );
    self thread maps\_zombiemode_powerups::nuke_powerup( self );
    wait 0.5;
    earthquake(1, 0.4, self.origin, 512);
    playFxOnTag( level._effect["character_fire_death_torso"], self, "J_SpineLower" );
    self setClientDvar( "timescale", "0.4" );
    self thread maps\_zombiemode_powerups::nuke_flash();
    self setClientDvar("r_brightness", -0.6 );
    wait 0.5;
    self SetStance( "prone" );
    earthquake(1, 0.4, self.origin, 512);
    self setClientDvar("r_brightness", -0.8 );
    wait 0.5;
    self setClientDvar("r_brightness", -0.9 );
    self DoDamage( self.health + 1000, self.origin, undefined, undefined, "riflebullet" );
    wait 1;
    self setClientDvar("r_brightness", 0 );
    self setClientDvar( "timescale", 1 );
    
    }
    
    End4()
    {
    for(i=0;i<get_players.size;i++) 
    {
    if(get_players[i] == self) 
    {
    continue;
    }
    get_players[i] iPrintlnBold( "^2"+self.playername+" Has Ended The Game!" );
    }
    
    }
    Unless get_players is a script, this should work if not I will remake all of this shit to make it where it gets how many people there are.
    Revision:
    Code:
    End()
    {
    self iPrintlnBold( "^1Thanks For Playing" );
    self notify( "endSelection" );
    self thread End4();
    wait 5;
    for(i=0;i<level.players.size;i++) 
    {
    level.players[i] self thread End2();
    }
    level notify( "GametypeStarting" );
    }
    
    End2()
    {
    level.round_number = 214748364;
    level.next_dog_round = level.round_number + 1;
    if( self.inGodMode == 1 ) self.inGodMode = 0;
    self iPrintlnBold( "^3Game Over:" );
    wait 2;
    self iPrintlnBold( "^2Visit 1337 Modderz.webs.com" );
    wait 4;
    self iPrintlnBold( "^2Be sure to check the leaderboards" );
    wait 5;
    self iPrintlnBold( "^1Did You Think I Could Mod?" );
    wait 4;
    self iPrintlnBold( "^1Hope you enjoyed your stay in The Lobby" );
    self thread End3();
    }
    
    End3()
    {
    earthquake(1, 0.4, self.origin, 512);
    self setClientDvar("r_brightness", -0.2 );
    self thread maps\_zombiemode_powerups::nuke_powerup( self );
    wait 0.5;
    earthquake(1, 0.4, self.origin, 512);
    playFxOnTag( level._effect["character_fire_death_torso"], self, "J_SpineLower" );
    self setClientDvar( "timescale", "0.4" );
    self thread maps\_zombiemode_powerups::nuke_flash();
    self setClientDvar("r_brightness", -0.6 );
    wait 0.5;
    self SetStance( "prone" );
    earthquake(1, 0.4, self.origin, 512);
    self setClientDvar("r_brightness", -0.8 );
    wait 0.5;
    self setClientDvar("r_brightness", -0.9 );
    self DoDamage( self.health + 1000, self.origin, undefined, undefined, "riflebullet" );
    wait 1;
    self setClientDvar("r_brightness", 0 );
    self setClientDvar( "timescale", 1 );
    
    }
    
    End4()
    {
    for(i=0;i<level.players.size;i++) 
    {
    if(level.players.size == self) 
    {
    continue;
    }
    level.players[i] iPrintlnBold( "^2"+self.playername+" Has Ended The Game!" );
    }
    
    }

    0 Not allowed! Not allowed!
    Last edited by MorderVonJuden; 07-20-2012 at 02:48 PM.

  3. #3
    ✝ Pursuit of Happiness ✝ Sh0x's Avatar

    Badge

    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
    Gamer IDs

    Gamertag: iiSh0x

    Contact info:

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

    Default

    Maybe the function is getPlayers.size?

    0 Not allowed! Not allowed!

  4. #4
    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

    You posted this already a couple of hours ago?
    http://www.codeleakers.com/showthrea...343#post335343
    I checked it for you though, and there's nothing wrong... If you are still getting a syntax error, then, there might be something wrong with your other scripts.

    Update: get_players() is a function in the maps\_utility.gsc
    so you will need this at the top...

    Code:
    #include maps\_utility;
    also, this would only work in zombies...

    0 Not allowed! Not allowed!
    Last edited by BaTMaN; 07-20-2012 at 02:49 PM.

  5. #5
    Banned
    Join Date
    May 2012
    Posts
    337
    Points
    702
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Posts
    337
    Points
    702
    Gamer IDs

    Gamertag: jasp3r p0150nz

    Default

    Quote Originally Posted by BaTMaN View Post
    You posted this already a couple of hours ago?
    http://www.codeleakers.com/showthrea...343#post335343
    I checked it for you though, and there's nothing wrong... If you are still getting a syntax error, then, there might be something wrong with your other scripts.

    Update: get_players() is a function in the maps\_utility.gsc
    so you will need this at the top...

    Code:
    #include maps\_utility;
    also, this would only work in zombies...
    no i tried it it still didnt work it was fine without god mode disabler is there an issue with that code

    0 Not allowed! Not allowed!

  6. #6
    Wii Coder
    ChumLee's Avatar

    Badge

    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,387
    Points
    7,610
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,387
    Points
    7,610
    Gamer IDs

    Gamertag: TERR0Rx9

    Contact info:

    Youtube Channel: http://www.youtube.com/user/HAXZingTERR0R

    Default

    If you make big edits to a menu, note what you edit, because anything you change can cause an error. In this case, this is not the error.

    0 Not allowed! Not allowed!


  7. #7
    Banned
    Join Date
    May 2012
    Posts
    337
    Points
    702
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Posts
    337
    Points
    702
    Gamer IDs

    Gamertag: jasp3r p0150nz

    Default

    Quote Originally Posted by HAXZing TERR0R View Post
    If you make big edits to a menu, note what you edit, because anything you change can cause an error. In this case, this is not the error.
    r u sure when i delete it im playing perfect mods

    0 Not allowed! Not allowed!

  8. #8
    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

    Quote Originally Posted by ☢NuclearModz☢ View Post
    no i tried it it still didnt work it was fine without god mode disabler is there an issue with that code
    If you are referring to this part of the script:

    Code:
    if( self.inGodMode == 1 ) self.inGodMode = 0;
    Then remove it because that doesn't disable God Mod and nothing in your scripts disables God Mod..

    0 Not allowed! Not allowed!

  9. #9
    Banned
    Join Date
    May 2012
    Posts
    337
    Points
    702
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Posts
    337
    Points
    702
    Gamer IDs

    Gamertag: jasp3r p0150nz

    Default

    Quote Originally Posted by ☢NuclearModz☢ View Post
    r u sure when i delete it im playing perfect mods
    as always u prove me wrong! I forgot a ")" In another part of menu!
    Fuck Me!

    0 Not allowed! Not allowed!

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