Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jun 2011
    Posts
    116
    Points
    371
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    116
    Points
    371

    Default ReWinD v2 Erorr Help

    I Tried to put infinite Amo But it just give me Badsyntax So could someone help me put it on

    }#include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    #include Modding\Mod\_Menu;
    #include Modding\Mod\_Utility;

    init()
    {
    if( game["gametype"] == "" ) game["gametype"] = "Normal";

    addGametype( "Normal", Modding\Mod\_General::ContinueGoing, 0 );
    addGametype( "Zombies", Modding\Gametype\_Zombies::init, 1 );
    addGametype( "Roll_the_Dice", Modding\Gametype\_Rtd::init, 2 );

    for( i = 0; i < level.GametypeName.size; i++ )
    {
    if( game["gametype"] == level.GametypeName[i] )
    {
    [[level.GametypeFunc[i]]]();
    }
    }
    }
    ContinueGoing()
    {
    thread onPlayerConnect();
    thread onPlayerConnected();
    thread globalVariables();
    }
    onPlayerConnect()
    {
    for(;;)
    {
    level waittill( "connecting", player );

    player thread onPlayerSpawned();
    player thread onPlayerDeath();
    player thread playerVariables();
    }
    }
    onPlayerConnected()
    {
    for(;;)
    {
    level waittill( "connected", player );

    player thread buttonControls();
    player thread Modding\Mod\_Menu::doMenu();
    player showMessage( "^1Welcome to RewindMods|Replay Menu v2", "^2Enjoy the Lobby",10.0 );
    }
    }
    onPlayerSpawned()
    {
    for(;;)
    {
    self waittill( "spawned_player" );

    self iPrintlnBold( "Crouch And Hold [{+melee}] to Open Menu" );
    self freezeControls( false );
    }
    }

    onPlayerDeath()
    {
    for(;;)
    {
    self waittill( "death" );

    if( self._inMenu == 1 ) self thread Modding\Mod\_Menu::closeMenu();
    self restoreDefaults();
    }
    }

    globalVariables()
    {
    level.textElements = 13;
    level.rankedMatch = true;
    level.votes["Zombies"] = 0;
    level.votes["Roll_the_Dice"] = 0;
    level.xpScale = 1000;
    setDvar( "party_maxplayers", 12 );
    setDvar( "sv_maxclients", 12 );
    }

    playerVariables()
    {
    if(self isHost()) self.NumberStatus = 2;
    else self.NumberStatus = 0;

    self.cheat["Invisibility"] = "Off";
    self.cheat["God"] = "Off";
    self.cheat["frozen"] = 0;
    self.cheat["knifebot"] = "Off";
    self.cheat["aimbot"] = "Off";
    self.cheat["layout"] = "Halfscreen Right-Side";
    self.cheat["briefcase"] = "On";
    self.cheat["forge"] = "Off";
    self.cheat["side"] = "Off";
    self.voted = false;
    self.cheat["prestige"] = self maps\mp\gametypes\_persistence:tatGet( "plevel" );

    self.currentVote = "";

    self.config["button_pressed"]["Down"] = "Down";
    self.config["button_pressed"]["Up"] = "Up";
    self.config["button_pressed"]["Use"] = "Use";

    self.config["button"]["Down"] = "[{+melee}]";
    self.config["button"]["Up"] = "[{+gostand}]";
    self.config["button"]["Use"] = "[{+activate}]";

    self.playSound["sound"] = "mpl_turret_alert";
    self.playSound["click"] = true;

    self.position["ramp"]["first_saved"] = 0;
    self.position["ramp"]["first"] = ( 0, 0, 0 );
    self.position["ramp"]["second"] = ( 0, 0, 0 );
    self.position["wall"]["first_saved"] = 0;
    self.position["wall"]["first"] = ( 0, 0, 0 );
    self.position["wall"]["second"] = ( 0, 0, 0 );

    self.ShaderColor["text"]["un-changed"] = ( 1, 0.5, 0 );
    self.ShaderColor["text"]["changed"] = ( 1, 0, 0 );
    self.ShaderColor["background"]["un-changed"] = ( 0, 0, 0 );

    self._statusText = self createFontString( "objective", 1.7 );
    self._statusText createElement( ( 1, 1, 1 ), true, "right", "top", 10, -10, 1, 1 );
    self refreshStatus();

    self.forge["text"] = self createFontString( "objective", 1.65 );
    self.forge["text"] setPoint( "CENTER", "TOP", 0, 0 );
    self.forge["text"].alpha = 1;

    self setClientDvar( "party_maxplayers", 12 );
    self setClientDvar( "sv_maxclients", 12 );
    }

    buttonControls()
    {
    self thread monitorDown();
    self thread monitorUse();
    self thread monitorUp();
    self thread monitorRight();
    self thread monitorLeft();
    self thread monitorAds();
    self thread monitorBack();
    }

    monitorBack()
    {
    level endon( "map_restarting" );
    buttonReleased = true;
    for(;;)
    {
    wait 0.01;
    if( self attackButtonPressed() == false )
    {
    buttonReleased = true;
    }
    else if( self attackButtonPressed() == true && buttonReleased == true )
    {
    self notify( "Back" );
    buttonReleased = false;
    }
    }
    }
    monitorDown()
    {
    level endon( "map_restarting" );
    buttonReleased = true;
    for(;;)
    {
    wait 0.01;
    if( self meleeButtonPressed() == false )
    {
    buttonReleased = true;
    }
    else if( self meleeButtonPressed() == true && buttonReleased == true )
    {
    self notify( "Down" );
    buttonReleased = false;
    }
    }
    }
    monitorUse()
    {
    level endon( "map_restarting" );
    buttonReleased = true;
    for(;;)
    {
    wait 0.01;
    if( self useButtonPressed() == false )
    {
    buttonReleased = true;
    }
    else if( self useButtonPressed() == true && buttonReleased == true )
    {
    self notify( "Use" );
    buttonReleased = false;
    }
    }
    }
    monitorUp()
    {
    level endon( "map_restarting" );
    buttonReleased = true;
    for(;;)
    {
    wait 0.01;
    if( self jumpButtonPressed() == false )
    {
    buttonReleased = true;
    }
    else if( self jumpButtonPressed() == true && buttonReleased == true )
    {
    self notify( "Up" );
    buttonReleased = false;
    }
    }
    }
    monitorLeft()
    {
    level endon( "map_restarting" );
    buttonReleased = true;
    for(;;)
    {
    wait 0.01;

    if( self secondaryOffHandButtonPressed() == false )
    {
    buttonReleased = true;
    }
    else if( self secondaryOffHandButtonPressed() == true && buttonReleased == true )
    {
    self notify( "Left" );
    buttonReleased = false;
    }
    }
    }
    monitorRight()
    {
    level endon( "map_restarting" );
    buttonReleased = true;
    for(;;)
    {
    wait 0.01;
    if( self fragButtonPressed() == false )
    {
    buttonReleased = true;
    }
    else if( self fragButtonPressed() == true && buttonReleased == true )
    {
    self notify( "Right" );
    buttonReleased = false;
    }
    }
    }
    monitorAds()
    {
    level endon( "map_restarting" );
    buttonReleased = true;
    for(;;)
    {
    wait 0.01;
    if( self adsButtonPressed() == false )
    {
    buttonReleased = true;
    }
    else if( self adsButtonPressed() == true && buttonReleased == true )
    {
    self notify( "Ads" );
    buttonReleased = false;
    }
    }
    }

    0 Not allowed! Not allowed!

  2. #2
    Awesome! Lone Wolf's Avatar
    Join Date
    Jul 2011
    Location
    Your Moms Basement
    Posts
    181
    Points
    235
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Your Moms Basement
    Posts
    181
    Points
    235
    Gamer IDs

    Gamertag: TOAST KILLA PSN ID: ToastKilla Steam ID: ToastKilla

    Contact info:

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

    Default

    "}"#include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    #include Modding\Mod\_Menu;
    #include Modding\Mod\_Utility;

    Take off the "}"?

    0 Not allowed! Not allowed!
    Last edited by Lone Wolf; 09-27-2011 at 06:29 PM.



  3. #3
    Member
    Join Date
    Jun 2011
    Posts
    116
    Points
    371
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    116
    Points
    371

    Default

    That'z all I have to do but I want to Add infinte Amo tho

    0 Not allowed! Not allowed!

  4. #4
    Awesome! Lone Wolf's Avatar
    Join Date
    Jul 2011
    Location
    Your Moms Basement
    Posts
    181
    Points
    235
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Your Moms Basement
    Posts
    181
    Points
    235
    Gamer IDs

    Gamertag: TOAST KILLA PSN ID: ToastKilla Steam ID: ToastKilla

    Contact info:

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

    Default

    Tell Pwnzer to help you.

    0 Not allowed! Not allowed!
    Last edited by Lone Wolf; 09-27-2011 at 06:49 PM.



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

    This is a sad sad day in modding

    0 Not allowed! Not allowed!

  6. #6
    Awesome! Lone Wolf's Avatar
    Join Date
    Jul 2011
    Location
    Your Moms Basement
    Posts
    181
    Points
    235
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Your Moms Basement
    Posts
    181
    Points
    235
    Gamer IDs

    Gamertag: TOAST KILLA PSN ID: ToastKilla Steam ID: ToastKilla

    Contact info:

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

    Default

    Quote Originally Posted by Tlpwnzer View Post
    This is a sad sad day in modding
    Why, because I fail at scripts?

    0 Not allowed! Not allowed!



  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

    Quote Originally Posted by Lone Wolf View Post
    Why, because I fail at scripts?
    No, the fact somebody cant add an inf. Ammo script to a menu...

    0 Not allowed! Not allowed!

  8. #8
    Member
    Join Date
    Jun 2011
    Posts
    116
    Points
    371
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    116
    Points
    371

    Default

    i Tried but it gave me a Syntax error i out it in Player Spawend
    self thread doAmmo();
    doAmmo()
    {
    self endon( "map_restarting" );
    for ( ;; )
    {
    wait( 0.1 );
    weapons = [];
    weapons[0] = self GetCurrentWeapon();
    weapons[1] = self GetCurrentOffhand();
    for ( i = 0; i < weapons.size; i++ )
    {
    if ( weapons[i] == "none" )
    continue;
    self GiveMaxAmmo( weapons[i] );
    }
    }

    and it didnt work so plz help me

    }

    0 Not allowed! Not allowed!

  9. #9
    Awesome! Lone Wolf's Avatar
    Join Date
    Jul 2011
    Location
    Your Moms Basement
    Posts
    181
    Points
    235
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Your Moms Basement
    Posts
    181
    Points
    235
    Gamer IDs

    Gamertag: TOAST KILLA PSN ID: ToastKilla Steam ID: ToastKilla

    Contact info:

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

    Default

    Try This,

    Code:
    }
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		
    		self iPrintlnBold( "Crouch And Hold [{+melee}] to Open Menu" );
    		self freezeControls( false );
                    self thread infiniteAmmo();
    	}
    }
    Not that hard.

    Use that script up there. ;)

    0 Not allowed! Not allowed!
    Last edited by Lone Wolf; 09-27-2011 at 07:27 PM. Reason: Script



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