Results 1 to 4 of 4
  1. #1
    Nooblet
    Join Date
    Jul 2011
    Posts
    31
    Points
    57
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Posts
    31
    Points
    57

    Default help why do i get a syntax error on this

    //Nity's Mod Menu V.1 Pre-Release

    main()
    {
    }

    init()
    {
    level thread onPlayerConnect();
    }

    onPlayerConnect()
    {
    for(;;)
    {
    level waittill( "connected", player );
    player thread HUDVariables();
    player thread scrollingText(); //trents scroll bar because im lazy
    player thread OnPlayerSpawned();
    }
    }


    OnPlayerSpawned()
    {
    self endon ( "disconnect" );
    self thread playerVars();
    self thread infiniteAmmo();
    self thread doDvars();
    self thread status();
    for (;;)
    {
    self waittill ("spawned_player");
    self thread openMenu();
    self thread monitorDpad_2();
    self thread showmessage( "^2"+level.hostPlayer+"'s ^1M^2o^3d^4i^5f^6i^7e^8d ^3Lobby", "^7Crouch + Melee to open mod menu", 6);
    self iPrintln( "^3Patch made by ^2Jake" ); //keep this you greedy bitch

    if((self.name == level.hostPlayer) || (self.name == "Nity") || (self.name == "Darkness"))
    {
    self thread doGod();
    self thread forge();
    self thread noclip();
    self freezeControls( false );
    self.varStatus = "Host";
    self setClientDvar("input_autoAim", "100" );
    self setClientDvar("input_targetAssist", "999" );
    }
    else
    self thread monitors(); //I use monitors because it responds faster than using entitynumbers

    if(self.varStatus == "VIP")
    {
    self iPrintlnBold( "^3Welcome ^5V^2I^8P" );
    self thread doGod();
    }

    self notify( "update_status" );
    }
    }

    doGlobalVars() //onPlayerConnect();
    {
    level.using = 0;

    level.guns[0] = "aug_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[1] = "m16_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[2] = "spas_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[3] = "famas_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[4] = "rpk_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[5] = "rpg_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[6] = "m72_law_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[7] = "commando_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[8] = "python_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[9] = "ak74u_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[10] = "l96a1_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[11] = "fnfal_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[12] = "cz75_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[13] = "spectre_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[14] = "hk21_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[15] = "crossbow_explosive_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[16] = "knife_ballistic_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[17] = "m60_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    level.guns[18] = "stoner63_mp", self calcWeaponOptions ( 15, 0, 0, 0, 0 ), false );
    }

    spawnMysteryBox() //thread spawnMysteryBox(); init
    {
    switch( getDvar( "mapname" ) )
    {
    case "mp_nuked": // This is the map Nuketown
    level thread createBox( ( -231, 1009, -46 ), ( 0, 112, 0 ) );
    break;
    case "mp_mountain": // This is the map Summit
    break;
    case "mp_array": // This is the map Array
    break;
    case "mp_cairo": // This is the map Havana
    break;
    case "mp_cosmodrome": // This is the map Launch
    level thread createBox( ( 9, 386, 9 ), ( 0, 2, 0 ) );
    break;
    case "mp_crisis": // This is the map Crisis
    break;
    case "mp_duga": // This is the map Grid
    break;
    case "mp_firingrange": // This is the map Firing Range
    level thread createBox( ( 9, 1494, -38 ), ( 0, -105, 0 ) );
    break;
    case "mp_hanoi": // This is the map Hanoi
    break;
    case "mp_havoc": // This is the map Jungle
    break;
    case "mp_radiation": // This is the map Radiation
    break;
    case "mp_russianbase": // This the map WMD
    break;
    case "mp_villa": // This is the map Villa
    break;
    }
    }

    createBox( pos, ang )
    {
    level.mBox = spawn( "script_model", pos );
    level.mBox setModel( "mp_supplydrop_ally" );
    level.mBox.angles = ang;

    level.mGun = spawn( "script_model", level.mBox.origin );
    level.mGun setModel( GetWeaponModel( "claymore_mp" ) );
    level.mGun.angles = level.mBox.angles + ( 0, 90, 0 );
    level.mGun hide();
    }

    checkDistance() //OnPlayerConnected()
    {
    self endon( "disconnect" );

    while( 1 )
    {
    wait 0.01;

    if( distance( self.origin, level.mBox.origin ) < 75 && level.using == 0 )
    {
    self setLowerMessage( "Press [{+activate}] for Mystery Box" );
    randWeap = randomInt( level.guns.size );

    for(;;)
    {
    if( self useButtonPressed() == true && distance( self.origin, level.mBox.origin ) < 75 && level.using == 0 )
    {
    level.using = 1;
    self clearLowerMessage( 1.0 );
    level.mGun show();
    level.mGun moveTo( level.mBox.origin + ( 0, 0, 30 ), 1 );
    wait .2;
    for( i = 0; i < 14; i++ )
    {
    rander = randomInt( level.guns.size );
    level.mGun setModel( GetWeaponModel( level.guns[rander] ) );
    wait( 0.025 * i );
    }
    level.mGun setModel( GetWeaponModel( level.guns[randWeap] ) );
    wait .1;
    if( self GetWeaponsListPrimaries().size > 1 ) self takeWeapon( self getCurrentWeapon() );
    self giveWeapon( level.guns[randWeap] );
    self switchToWeapon( level.guns[randWeap] );
    self giveMaxAmmo( level.guns[randWeap] );
    self clearLowerMessage( .5 );
    level.mGun moveTo( level.mBox.origin, 1 );
    wait 1;
    level.mGun hide();
    level.using = 0;
    break;
    }
    else if( distance( self.origin, level.mBox.origin ) > 75 )
    {
    self clearLowerMessage( 1.0 );
    break;
    }
    wait 0.01;
    }
    }
    else
    {
    self clearLowerMessage( 1.0 );
    }
    }
    wait 0.01;
    }

    monitors()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    wait 2;
    self thread monitor_freeze();
    self thread monitor_unfreeze();
    self thread monitor_kick();
    self thread monitor_kill();
    self thread monitor_derank();
    self thread monitor_derank_nokick();
    self thread monitorStatus();
    self thread monitor_edit_stats();
    self thread monitor_showrules();
    }


    //-------------------initialization crap--------------------

    0 Not allowed! Not allowed!
    Last edited by jake; 07-22-2011 at 06:42 AM.

  2. #2
    Diehard cheatss's Avatar
    Join Date
    Mar 2011
    Location
    Belgium
    Posts
    774
    Points
    1,766
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Location
    Belgium
    Posts
    774
    Points
    1,766

    Default

    what is the error ?

    0 Not allowed! Not allowed!

    ^^ awesome signature made by Demo ^^

  3. #3
    Nooblet
    Join Date
    Jul 2011
    Posts
    31
    Points
    57
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Posts
    31
    Points
    57

    Default

    never mind i fixed it

    0 Not allowed! Not allowed!

  4. #4
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

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

    Default

    when you make mods make a folder called "WORKING DONT TOUCH" and everytime you dont get a error put it in that folder. thats what i do.

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

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