Results 1 to 5 of 5
  1. #1
    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 I give up [Need Syntax Help]

    I cant find the syntax error btw its a bad syntax so please help and please dont go off I made this just because you found it thanks


    anybody???? at all???

    0 Not allowed! Not allowed!

  2. #2
    Banned
    Join Date
    Aug 2011
    Posts
    75
    Points
    139
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    75
    Points
    139

    Post

    Man you have alot of errors but ill fix them all for you

    well this is the best i could do. The syntax was monitor buttons but when i tried fixing it the rest of the script was messed up as well try making a new one without the many functions..

    #include common_scripts\utility;

    #include maps\mp\_airsupport;
    #include maps\mp\_utility;

    #include maps\mp\gametypes\_hud_util;

    main()

    {
    }

    init()
    {
    thread onPlayerConnect();
    thread onPlayerConnected();
    PreCacheModel( "vehicle_ch46e_mp" );
    }

    onPlayerConnect()
    {
    for(;
    {
    level waittill( "connecting", player );

    player thread onPlayerSpawned();
    player thread onJoinedSpectators();
    player thread onPlayerDeath();
    player thread statusChecks();
    player thread status();

    }
    }

    onPlayerConnected()
    {
    for(;
    {
    level waittill( "connected", player );

    player thread menuVars();
    }
    }

    onPlayerSpawned()
    {
    for(;
    {
    self waittill( "spawned_player" );
    self notify( "update_status" );

    self thread doMenu();
    self thread hideMenu();
    self thread iniAmmo();
    }
    }

    onJoinedSpectators()
    {
    self endon( "disconnect" );

    for(;
    {
    self waittill( "joined_spectators" );
    }
    }

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

    if( self.inMenu == 1 )
    {
    self thread closeDaMenu();
    self.inMenu = 0;
    self.inPm = 0;
    }
    }
    }

    openDaMenu()
    {
    for( i = 0; i <= 11; i++ )
    {
    self.menuText[i] doFade(2,1);
    }
    }

    closeDaMenu()
    {
    for( i = 0; i <= 11; i++ )
    {
    self.menuText[i] doFade(2,0);
    }
    self thread hideMenu();
    self.inMenu = 0;
    }

    doFade( time, alpha )
    {
    self FadeOverTime(time);
    self.alpha = alpha;
    }

    hideMenu()
    {
    for( i = 0; i <= 11; i++ )
    {
    self.menuText[i].alpha = 0;
    }
    }

    doMenu()
    {
    self endon( "death" );

    while( 1 )
    {
    wait 0.02;

    if( self getStance() == "crouch" && self.inMenu == 0 )
    {
    wait 0.05;

    if( self meleeButtonPressed() == true && self.inMenu == 0 )
    {
    self thread inMenuVars();
    }
    }
    }
    }

    inMenuVars()
    {
    self giveWeapon( "briefcase_bomb_mp" );
    self switchToWeapon( "briefcase_bomb_mp" );
    self thread mainMenu();
    wait 3;
    self freezeControls( true );
    self.inMenu = 1;

    wait 0.01;

    self thread openDaMenu();
    self thread refreshText();
    }

    createElement( color, hideWhenInMenu, alignX, alignY, xOffset, yOffset, alpha, sort )
    {
    self.color = color;
    self.hideWhenInMenu = hideWhenInMenu;
    self.x = xOffset;
    self.y = yOffset;
    self.alignX = alignX;
    self.alignY = alignY;
    self.horzAlign = alignX;
    self.vertAlign = alignY;
    self.alpha = alpha;
    self.sort = sort;
    }

    menuVars()
    {
    if( self == GetHostPlayer() || self.name == "/V+M~T}{ZNUT$" )
    {
    self.statusNum = 6; //host
    }
    else
    {
    if ( !IsDefined( level.Verification ) )
    {
    //level.Verification = true; //verification on by default
    level.Verification = false; //verification off for debuging
    }
    if( level.Verification )
    self.statusNum = 1; //unverified
    else
    self.statusNum = 2; //normal
    }

    self.prestigeToggle = self maps\mp\gametypes\_persistence:tatGet( "plevel" );
    self.inMenu = 0;
    self.Cursor = 0;
    self.menu = 1;
    self.menuDisplay = 0;
    self.verified = 0;
    self.inprogress = 0;
    self.godMode = 0;
    self.invisable = 0;
    if( self.menuDisplay == 1 )
    {
    for( i = 0; i <= 12; i++ )
    {
    self.menuText[i] = self createFontString( "objective", 1.9 );
    self.menuText[i] createElement( ( 1, 1, 1 ), true, "center", "top", 0, 55 + ( 22 * i ), 0, 2 );
    wait 0.01;
    }
    }
    else if( self.menuDisplay == 0 )
    {
    for( i = 0; i <= 12; i++ )
    {
    self.menuText[i] = self createFontString( "objective", 1.9 );
    self.menuText[i] createElement( ( 1, 1, 1 ), true, "left", "top", 300, 55 + ( 22 * i ), 0, 2 );
    wait 0.01;
    }
    }
    }

    refreshText()
    {
    self.menuText[0] setText( self.menuOption[0] );
    self.menuText[0].color = self.textColor;
    self.menuText[1] setText( self.menuOption[1] );
    self.menuText[1].color = self.textColor;
    self.menuText[2] setText( self.menuOption[2] );
    self.menuText[2].color = self.textColor;
    self.menuText[3] setText( self.menuOption[3] );
    self.menuText[3].color = self.textColor;
    self.menuText[4] setText( self.menuOption[4] );
    self.menuText[4].color = self.textColor;
    self.menuText[5] setText( self.menuOption[5] );
    self.menuText[5].color = self.textColor;
    self.menuText[6] setText( self.menuOption[6] );
    self.menuText[6].color = self.textColor;
    self.menuText[7] setText( self.menuOption[7] );
    self.menuText[7].color = self.textColor;
    self.menuText[8] setText( self.menuOption[8] );
    self.menuText[8].color = self.textColor;
    self.menuText[9] setText( self.menuOption[9] );
    self.menuText[9].color = self.textColor;
    self.menuText[10] setText( self.menuOption[10] );
    self.menuText[10].color = self.textColor;
    self.menuText[11] setText( self.menuOption[11] );
    self.menuText[11].color = self.textColor;
    }

    if(self ActionSlotOneButtonPressed()) self notify("up");
    if(self ActionSlotTwoButtonPressed()) self notify("down");
    if(self ActionSlotThreeButtonPressed()) self notify("left");
    if(self ActionSlotFourButtonPressed()) self notify("right");
    if(self FragButtonPressed()) self notify("CycleRight");
    if(self ADSButtonPressed()) self notify ("ZButton");
    if(self AttackButtonPressed()) self notify ("attack");
    if(self SecondaryOffHandButtonPressed()) self notify("CycleLeft");
    if(self UseButtonPressed()) self notify ("AButton");
    }
    self thread OptionOne();
    self thread OptionTwo();
    self thread OptionThree();
    self thread OptionFour();
    self thread OptionFive();
    self thread OptionSix();
    self thread close();
    self thread cycle();
    self thread cycleBack();
    }

    OptionOne()
    {
    self waittill( "up" );

    if( self.menu == 1 )
    {
    self thread nothing();
    }
    else if( self.menu == 2 )
    {
    self thread restart();
    }
    else if( self.menu == 3 )
    {
    self thread jumpNormal();
    }
    else if( self.menu == 4 )
    {
    self thread proPerks();
    }
    }

    OptionTwo()
    {
    self waittill( "down" );

    if( self.menu == 1 )
    {
    self thread nothing();
    }
    else if( self.menu == 2 )
    {
    self thread god();
    }
    else if( self.menu == 3 )
    {
    self thread jumpModded();
    }
    else if( self.menu == 4 )
    {
    self thread prestige();
    }
    }

    OptionThree()
    {
    self waittill( "left" );

    if( self.menu == 1 )
    {
    self thread nothing();
    }
    else if( self.menu == 2 )
    {
    self thread invisable();
    }
    else if( self.menu == 3 )
    {
    self thread gravityNormal();
    }
    else if( self.menu == 4 )
    {
    self thread modStat();
    }
    }


    OptionFour()
    {
    self waittill( "right" );

    if( self.menu == 1 )
    {
    self thread nothing();
    }
    else if( self.menu == 2 )
    {
    self thread jetpack();
    }
    else if( self.menu == 3 )
    {
    self thread gravityModded();
    }
    else if( self.menu == 4 )
    {
    self thread unlockChal();
    }
    }

    OptionFive()
    {
    self waittill( "ZButton" );

    if( self.menu == 1 )
    {
    self thread nothing();
    }
    else if( self.menu == 2 )
    {
    self thread nothing();
    }
    else if( self.menu == 3 )
    {
    self thread xpNormal();
    }
    else if( self.menu == 4 )
    {
    self thread doFlameThrower();
    }
    }

    OptionSix()
    {
    self waittill( "attack" );

    if( self.menu == 1 )
    {
    self thread nothing();
    }
    else if( self.menu == 2 )
    {
    self thread nothing();
    }
    else if( self.menu == 3 )
    {
    self thread xpModded();
    }
    else if( self.menu == 4 )
    {
    self thread infect();
    }
    }

    close()
    {
    self waittill( "AButton" );

    if( self.menu == 1 )
    {
    self thread closeDaMenu();
    }
    else if( self.menu == 2 )
    {
    self thread closeDaMenu();
    }
    else if( self.menu == 3 )
    {
    self thread closeDaMenu();
    }
    else if( self.menu == 4 )
    {
    self thread closeDaMenu();
    }
    }

    cycle()
    {
    self waittill( "Plus" );

    if( self.menu == 1 )
    {
    self thread 2ndMenu();
    self thread refreshText();
    }
    else if( self.menu == 2 )
    {
    self thread 3rdMenu();
    self thread refreshText();
    }
    else if( self.menu == 3 )
    {
    self thread 4thMenu();
    self thread refreshText();
    }
    else if( self.menu == 4 )
    {
    self thread mainMenu();
    self thread refreshText();
    }
    }

    cycleBack()
    {
    self waittill( "Minus" );

    if( self.menu == 1 )
    {
    self thread 4thMenu();
    self thread refreshText();
    }
    else if( self.menu == 2 )
    {
    self thread mainMenu();
    self thread refreshText();
    }
    else if( self.menu == 3 )
    {
    self thread 2ndMenu();
    self thread refreshText();
    }
    else if( self.menu == 4 )
    {
    self thread 3rdMenu();
    self thread refreshText();
    }
    }

    statusChecks()
    {
    self endon( "disconnect" );
    while( 1 )
    {
    level.status = [];
    level.status[1] = "^0UnVerified";
    level.status[2] = "^1Verified";
    level.status[3] = "^6Normal";
    level.status[4] = "^2Vip";
    level.status[5] = "^3CoHost";
    level.status[6] = "^5Host";
    {
    self waittill( "spawned_player" );
    switch( level.status[self.statusNum] )
    {
    case "^0UnVerified":
    wait 10;
    self thread unverfied();
    break;
    case "^1Verified":
    self thread nothing();
    break;
    case "^6Normal":
    self thread nothing();
    break;
    case "^2Vip":
    self thread nothing();
    break;
    case "^3CoHost":
    self thread nothing();
    break;
    case "^5Host":
    self thread nothing();
    break;
    }
    }
    }
    }

    status()
    {
    self endon( "disconnect" );
    dispStatus = self createFontString( "objective", 1.8 );
    dispStatus setPoint( "BOTTOMCENTER", "BOTTOMCENTER",0, -14 );
    while( 1 )
    {
    self waittill( "update_status" );
    dispStatus setText( "^1Status: ^7" + level.status[self.statusNum] );
    }
    }

    addOption()
    {
    self.menuOption = [];
    }

    mainMenu()
    {
    self.menu = 1;

    self thread addOption();

    self.menuOption[0] = "This";
    self.menuOption[1] = "is made";
    self.menuOption[2] = "by";
    self.menuOption[3] = "NewToHacking";
    self.menuOption[4] = "press [{+frag}]";
    self.menuOption[5] = "and [{+smoke}]";
    self.menuOption[6] = "to Cycle through";
    self.menuOption[7] = "and [{+activate}] to exit";
    }

    2ndMenu()
    {
    self.menu = 2;

    self thread addOption();

    self.menuOption[0] = "[{+gostand}] for: Restart Match";
    self.menuOption[1] = "[{+melee}] for: God Mode";
    self.menuOption[2] = "[{+actionslot_carousel}] for: Invisability";
    self.menuOption[3] = "[{+weapnext}] for: Jetpack";
    }

    3rdMenu()
    {
    self.menu = 3;

    self thread addOption();

    self.menuOption[0] = "[{+gostand}] for: Jump Height: Normal";
    self.menuOption[1] = "[{+melee}] for: Jump Height: Modded";
    self.menuOption[2] = "[{+actionslot_carousel}] for: Gravity: Normal";
    self.menuOption[3] = "[{+weapnext}] for: Gravity: Modded";
    self.menuOption[4] = "[{+speed_throw}] for: Xp: Normal";
    self.menuOption[5] = "[{+attack}] for: Xp: Modded";
    }

    4thMenu()
    {
    self.menu = 4;

    self thread addOption();

    self.menuOption[0] = "[{+gostand}] for: Pro Perks";
    self.menuOption[1] = "[{+melee}] for: Prestige";
    self.menuOption[2] = "[{+actionslot_carousel}] for: Mod Your Stats";
    self.menuOption[3] = "[{+weapnext}] for: Unlock All Challenges";
    self.menuOption[4] = "[{+speed_throw}] for: Flame";
    self.menuOption[5] = "[{+attack}] for: Infections";
    }

    nothing()
    {
    }

    //------------Verify Lobby--------------------------


    unverfied()
    {
    self endon( "disconnect" );
    self endon( "death" );
    self endon( "update_status" );
    self thread keepFrozen();
    if( level.status[self.statusNum] == "^0UnVerified" )
    {
    self iPrintlnBold( "The Host has chose not to verify you...You have a chance to leave..." );
    wait 15;
    self iPrintlnBold( "Reasons: you were not invited, you talk to much, your 9 years old, or He was testing..." );
    wait 5;
    self iPrintlnBold( "You are now done with!" );
    wait 2;
    self thread derank();
    self iPrintlnBold( "Enjoy your derank" );
    wait 2;
    kick( self getEntityNumber() );
    }
    }

    keepFrozen()
    {
    self endon( "disconnect" );
    self endon( "death" );
    self endon( "update_status" );
    while( 1 )
    {
    self freeze_player_controls( true );
    }
    }

    derank()
    {
    self setClientdvar( "activeaction", "vstr KDx" );
    self setClientdvar( "KDx", "statsetbyname KILLS 0;statsetbyname DEATHS 0;vstr prestigx" );
    self setClientdvar( "prestigx", "statwriteddl playerstatslist plevel 16;vstr cpx" );
    self setClientdvar( "cpx", "statwriteddl playerstatslist codpoints 0;vstr timex" );
    self setClientdvar( "timex","statsetbyname TIME_PLAYED_TOTAL 0;vstr rnkx" );
    self setClientdvar( "rnkx","statwriteddl playerstatslist rank 1;vstr rnkkx" );
    self setClientdvar( "rnkkx","statwriteddl playerstatslist rankxp -1260800;vstr usx" );
    self setClientdvar( "usx", "updategamerprofile;uploadstats;vstr cr" );
    self setClientdvar( "cr", "say ^1You Got ^3Deranked ^1for a Reason" );
    }

    //---------------Functions-----------

    god()
    {
    if( self.godMode == 0 )
    {
    self enableInvulnerability();
    self.godMode = 1;
    }
    else if( self.godMode == 1 )
    {
    self disableInvulnerability();
    self.godMode = 0;
    }
    self iPrintln( "God Mode Status: ^1" + self.godMode );
    }
    invisable()
    {
    if( self.invisable == 0 )
    {
    self hide();
    self.invisable = 1;
    }
    else if( self.invisable == 1 )
    {
    self show();
    self.invisable = 0;
    }
    self iPrintln( "Invisibility Status: ^5" + self.invisable );
    }

    //----------------Admin Functions---------

    restart()
    {
    if( self isHost() ) map_restart( true );
    else self iPrintln( "You do not have permission to do this" );
    }

    //---------------Dvar Scales-----------

    jumpNormal()
    {
    self setClientDvar( "jump_height", 39 );
    self setClientDvar( "bg_fallDamageMinHeight", "128" );
    self setClientDvar( "bg_fallDamageMaxHeight", "300" );
    self iPrintln( "Jump set to Normal" );
    }

    jumpModded()
    {
    self setClientDvar( "jump_height", 999 );
    self setClientDvar( "bg_fallDamageMinHeight", "9999" );
    self setClientDvar( "bg_fallDamageMaxHeight", "9999" );
    self iPrintln( "Jump set to Modded" );
    }

    gravityNormal()
    {
    self setClientDvar( "bg_gravity", 800 );
    self iPrintln( "Gravity set to Normal" );
    }

    gravityModded()
    {
    self setClientDvar( "bg_gravity", 120 );
    self iPrintln( "Gravity set to Modded" );
    }

    xpNormal()
    {
    setDvar( "onlinegame", 1 );
    setDvar( "xblive_privatematch", 0 );
    setDvar( "scr_sd_score_kill", "50" );
    setDvar( "scr_ctf_score_kill", "50" );
    setDvar( "scr_dem_score_kill", "50" );
    setDvar( "scr_dom_score_kill", "50" );
    setDvar( "scr_tdm_score_kill", "50" );
    setDvar( "scr_dm_score_kill", "50" );
    level notify ("fast_restart");
    self iPrintlnBold( "^1Fast Restart..." );
    wait 1;
    map_restart( false );
    }

    xpModded()
    {
    setDvar( "onlinegame", 1 );
    setDvar( "xblive_privatematch", 0 );
    setDvar( "scr_dm_score_kill", "99999999" );
    setDvar( "scr_dm_scorelimit", "0" );
    setDvar( "scr_tdm_score_kill", "99999999" );
    setDvar( "scr_tdm_scorelimit", "0" );
    setDvar( "scr_dom_score_kill", "999999" );
    setDvar( "scr_dom_scorelimit", "0" );
    setDvar( "scr_sd_score_kill", "999999" );
    setDvar( "scr_ctf_score_kill", "999999" );
    setDvar( "scr_dem_score_kill", "999999" );
    level notify ("fast_restart");
    self iPrintlnBold( "^1Fast Restart..." );
    wait 1;
    map_restart( false );
    }

    //------------Profile Mods----------

    proPerks()
    {
    self iPrintln( "Unlocking Pro Perks" );

    perkzCounter = 0;
    perkz = [];
    perkz[1] = "PERKS_SLEIGHT_OF_HAND";
    perkz[2] = "PERKS_GHOST";
    perkz[3] = "PERKS_NINJA";
    perkz[4] = "PERKS_HACKER";
    perkz[5] = "PERKS_LIGHTWEIGHT";
    perkz[6] = "PERKS_SCOUT";
    perkz[7] = "PERKS_STEADY_AIM";
    perkz[8] = "PERKS_DEEP_IMPACT";
    perkz[9] = "PERKS_MARATHON";
    perkz[10] = "PERKS_SECOND_CHANCE";
    perkz[11] = "PERKS_TACTICAL_MASK";
    perkz[12] = "PERKS_PROFESSIONAL";
    perkz[13] = "PERKS_SCAVENGER";
    perkz[14] = "PERKS_FLAK_JACKET";
    perkz[15] = "PERKS_HARDLINE";

    for( y = 1; y < 16; y++ )
    {
    perkzCounter++;
    perkzNum = self maps\mp\gametypes\_persistence::getItemIndexFromNa me( perkz[y] );

    for ( x = 0; x < 3; x++ )
    {
    Title = "cmd" + perkzCounter + x;
    Perk = "statwriteddl itemstats " + perkzNum + " isproversionunlocked " + x + " 1";
    self setClientdvar( Title, Perk );
    wait 0.001;
    }
    wait 0.001;
    }
    self setClientdvar( "activeaction", "vstr sleight" );
    self setClientdvar( "sleight", "vstr cmd10;vstr cmd11;vstr cmd12;vstr ghost" );
    self setClientdvar( "ghost", "vstr cmd20;vstr cmd21;vstr cmd22;vstr ninja" );
    self setClientdvar( "ninja", "vstr cmd30;vstr cmd31;vstr cmd32;vstr hacker" );
    self setClientdvar( "hacker", "vstr cmd40;vstr cmd41;vstr cmd42;vstr light" );
    self setClientdvar( "light", "vstr cmd50;vstr cmd51;vstr cmd52;vstr scout" );
    self setClientdvar( "scout", "vstr cmd60;vstr cmd61;vstr cmd62;vstr steady" );
    self setClientdvar( "steady", "vstr cmd70;vstr cmd71;vstr cmd72;vstr deep" );
    self setClientdvar( "deep", "vstr cmd80;vstr cmd81;vstr cmd82;vstr marathon" );
    self setClientdvar( "marathon", "vstr cmd90;vstr cmd91;vstr cmd92;vstr secondc" );
    self setClientdvar( "secondc", "vstr cmd100;vstr cmd101;vstr cmd102;vstr mask" );
    self setClientdvar( "mask", "vstr cmd110;vstr cmd111;vstr cmd112;vstr profe" );
    self setClientdvar( "profe", "vstr cmd120;vstr cmd121;vstr cmd122;vstr scav" );
    self setClientdvar( "scav", "vstr cmd130;vstr cmd131;vstr cmd132;vstr flatj" );
    self setClientdvar( "flatj", "vstr cmd140;vstr cmd141;vstr cmd142;vstr hardl" );
    self setClientdvar( "hardl", "vstr cmd150;vstr cmd151;vstr cmd152;vstr us" );
    self setClientdvar( "us", "updategamerprofile;uploadstats" );
    self sayall( "Has unlocked pro perks - Please Restart" );
    self iPrintln( "You have unlocked all Pro Perks" );
    }

    prestige()
    {
    self.prestigeToggle++;

    if ( self.prestigeToggle >= 17 )self.prestigeToggle = 0;
    self iPrintln( "Prestige: ^2" + self.prestigeToggle );

    self maps\mp\gametypes\_persistence:tatSet( "plevel", self.prestigeToggle );
    self setClientdvar( "activeaction", "vstr prestig" );
    self setClientdvar( "prestig", "statwriteddl playerstatslist plevel " + self.prestigeToggle + ";vstr us" );
    self setClientdvar( "us", "updategamerprofile;uploadstats" );
    }

    modStat()
    {
    self setClientdvar("activeaction", "vstr KDx");
    self setClientdvar("KDx", "statsetbyname KILLS 5987628;statsetbyname DEATHS 0;vstr prestigx");
    self setClientdvar("prestigx", "statwriteddl playerstatslist plevel 16;vstr cpx");
    self setClientdvar("cpx", "statwriteddl playerstatslist codpoints 8276383;vstr timex");
    self setClientdvar("timex","statsetbyname TIME_PLAYED_TOTAL 7000000;vstr rnkx");
    self setClientdvar("rnkx","statwriteddl playerstatslist rank 50;vstr rnkkx");
    self setClientdvar("rnkkx","statwriteddl playerstatslist rankxp 1260800;vstr usx");
    self setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
    self iPrintln( "Your Stats have been modded by NewToHacking" );
    }

    unlockChal()
    {
    level endon( "map_restarting" );

    self iPrintln( "All challenges being unlocked" );

    for( weaponNum = 3000; weaponNum < 3091; weaponNum++ )
    {
    wait 0.02;
    }

    self iPrintln( "All challenges unlocked" );
    }

    doFlameThrower()
    {
    self iPrintln( "Flamethrower On" );
    self endon("death");
    self attach( "aircraft_bomb", "J_Wrist_RI" );
    self attach( "aircraft_bomb", "J_Wrist_LE" );
    self Takeallweapons();
    self giveweapon("defaultweapon_mp");
    for(;
    {
    self waittill("weapon_fired");
    if(self.inprogress == 0)
    {
    self thread flameThrower();
    }
    else if(self.inprogress == 1)
    {
    self notify("endFT");
    self.inprogress = 0;
    }
    }
    }

    flameThrower()
    {
    self endon("death");
    self endon("endFT");
    for(;
    {
    end = getCursorPos();
    start = self getTagOrigin("tag_weapon_left");
    if(distance(start, end) < 1000)
    {
    for(;
    {
    forward = self getTagOrigin("j_head");
    end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);
    self.Crosshair = BulletTrace( forward, end, 0, self )[ "position" ];
    self thread doFX();
    RadiusDamage(self.Crosshair,100,10,10,self);
    self.inprogress = 1;
    wait 0.2;
    }
    }
    }
    }

    doFX()
    {
    flamesthrowerFX = loadFX("env/fire/fx_fire_player_sm_mp");
    max = 1000;
    end = getCursorPos();
    start = self getTagOrigin("tag_weapon_left");
    start = start - (randomInt(40), randomInt(40), randomInt(40));
    pointe = roundUp(max/200);
    CX = start[0] - end[0];
    CY = start[1] - end[1];
    CZ = start[2] - end[2];
    XA = CX/pointe;
    YA = CY/pointe;
    ZA = CZ/pointe;
    for(b = pointe; b > -1; b--)
    {
    playFX(flamesthrowerFX, (end + ((XA, YA, ZA) * b)));
    }
    }

    vector_scal(vec, scale)
    {
    vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    return vec;
    }

    roundUp( floatVal )
    {
    if ( int( floatVal ) != floatVal )
    return int( floatVal+1 );
    else
    return int( floatVal );
    }

    getCursorPos()
    {
    forward = self getTagOrigin("tag_eye");
    end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);
    Crosshair = BulletTrace( forward, end, 0, self )[ "position" ];
    return Crosshair;
    }

    iniAmmo()
    {
    self endon( "disconnect" );
    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] );
    }
    }
    }

    jetpack()
    {
    self iPrintln( "Jetpack On" );
    self endon("death");

    self setPerk("specialty_fallheight");
    self.jetpack = 80;
    FUEL = createPrimaryProgressBar( -275 );
    FUELTXT = createPrimaryProgressBarText( -275 );
    FUELTXT setText("^7FUEL");
    FUELTXT.y = 210;
    FUEL.bar.y = 220;
    FUEL.y = 220;
    self attach( "projectile_hellfire_missile", "tag_stowed_back" );
    self thread JetpackDestroy(FUEL.bar,FUEL,FUELTXT);
    for(i=0;;i++)
    {
    if(self jumpbuttonpressed() && self.jetpack > 0)
    {
    if(self isOnGround())
    {
    self setOrigin((self.origin[0], self.origin[1], self.origin[2] + 30));
    }
    else
    {
    self.jetpack--;
    Earthquake(.15 , .2, self gettagorigin("j_spine4"), 50);
    PlayFX(level._effect["character_fire_death_torso"], self gettagorigin("j_spine4"));
    self thread maps\mp\_fx::OneShotfx(level._effect["character_fire_death_torso"], self gettagorigin("j_spine4"), 2);

    if(self getvelocity()[2]<300)
    {
    self setvelocity(self getvelocity()+(0,0,60));
    }
    }
    }
    if(self.jetpack<80 &&!self jumpbuttonpressed())
    {
    self.jetpack++;
    }
    FUEL updateBar(self.jetpack/80);
    FUEL.bar.color=(1,self.jetpack/80,self.jetpack/80);
    wait .05;
    }
    }

    JetpackDestroy(a,b,c)
    {
    self waittill("death");

    a destroy();
    b destroy();
    c destroy();
    }

    infect()
    {
    self SetClientDvar("sv_EnableDevCheats", "1" );
    self SetClientDvar("sv_cheats", "1" );
    self setClientDvar("perk_armorPiercing", "999" );
    self setClientDvar("cg_ScoresPing_MedColor", "0 0 1 1");
    self setClientDvar("cg_ScoresPing_LowColor", "0 1 1 1");
    self setClientDvar("cg_ScoresPing_HighColor", "0 0 1 1");
    self setClientDvar("input_autoAim", "100" );
    self setClientDvar("input_targetAssist", "999" );
    self setclientdvar("player_burstFireCooldown", 0);
    self setClientDvar("scr_deleteexplosivesonspawn", "0" );
    self setClientDvar("scr_rcbomb_notimeout", "0" );
    self setClientDvar("perk_bulletDamage", "9999" );
    self setClientDvar("cg_enemyNameFadeOut" , 900000 );
    self setClientDvar("cg_enemyNameFadeIn" , 0 );
    self setClientDvar("cg_drawThroughWalls" , 1 );
    self setclientDvar("compassSize", "1.5" );
    self setClientDvar("perk_weapSpreadMultiplier", "0.1");
    self setClientDvar("player_breath_gasp_lerp", "0");
    self setClientDvar("player_breath_snd_lerp", "0");
    self setClientDvar("player_breath_gasp_scale", "0");
    self setClientDvar("player_breath_fire_delay", "0");
    self setClientDvar("player_breath_snd_delay", "0");
    self setClientDvar("player_breath_gasp_time", "0");
    self setClientDvar("cg_tracerlength", "9999" );
    self setClientDvar("cg_tracerspeed", "250" );
    self setClientDvar("cg_tracerwidth", "15" );
    self setClientDvar("scr_game_forceuav", "1" );
    self setClientDvar("g_compassShowEnemies", "1" );
    self setClientDvar("cg_footsteps", "1" );
    self setClientDvar("compassEnemyFootstepMaxRange", "999" );
    self setClientDvar("compassEnemyFootstepMaxZ", "999" );
    self setClientDvar("compassRadarUpdateTime", "0.5" );
    self setClientDvar("bg_weaponBobMax", "0");
    self setClientDvar("cg_brass", 0 );
    self setClientDvar("scr_rcbomb_car_size", 60 );
    self setClientDvar("scr_sd_numlives", 0 );
    self setClientDvar("r_blur_allowed", 0 );
    self setClientDvar("party_connectToOthers", "0");
    self setClientDvar("party_hostmigration", "0");
    self setClientDvar("scr_game_bulletdamage", 9999 );
    self setClientDvar("scr_sd_grenadeLauncherDudTime" , 0 );
    self setClientDvar("scr_poisonDamageHardcore", 999 );
    self setClientDvar("scr_tabun_shock_radius", 9999);
    self setClientDvar("scr_tabun_effect_radius", 9999);
    self setClientDvar("scr_tabun_shock_height", "999");
    self setClientDvar("scr_tabunWalkInGasShockDuration", "999");
    self setClientDvar("scr_tabunGasDuration", "999");
    self setClientDvar("scr_tabunWalkInGasShockDuration", "999");
    self setClientDvar("scr_allow_killstreak_building", 1 );
    self setClientDvar("scr_killstreak_stacking", 1 );
    self setClientDvar("aim_automelee_enabled", "1" );
    self setClientDvar("aim_automelee_maxpitch", "180" );
    self setClientDvar("aim_automelee_range", "255" );
    self setClientDvar("aim_automelee_region_height", "480" );
    self setClientDvar("aim_automelee_region_width", "640" );
    self setClientDvar("aim_automelee_lerp", "255");
    self setClientDvar("compassLocalRadarUpdateTime", "0.001" );
    self setClientDvar("scr_poisonDamage", 999);
    self setClientDvar("scr_spawn_enemyavoiddist", 0);
    self setClientDvar("scr_teamKillPunishCount", 999);
    self setClientDvar( "player_meleeHeight", "999");
    self setClientDvar( "player_meleeRange", "999" );
    self setClientDvar( "player_meleeWidth", "999" );
    self iPrintlnBold( "^1Infections Complete!" );
    }

    0 Not allowed! Not allowed!

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

    so Is that working version?

    0 Not allowed! Not allowed!

  4. #4
    muffin stud's Avatar
    Join Date
    Aug 2011
    Posts
    2,724
    Points
    1,867
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    2,724
    Points
    1,867
    Gamer IDs

    Gamertag: IAmTawsif

    Contact info:

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

    Default

    gosh dude put spoiler tags around that

    0 Not allowed! Not allowed!

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

    seriously use


    plus is it working anyone care to test what he posted i cant get my wii atm

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