Results 1 to 2 of 2
  1. #1
    roxor804's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    77
    Reputation
    10
    Thanks
    4
    My Mood
    Goofy

    Got a Problem with AlienvsPredator mod

    Hey guys i was trying to change some settings of the alien vs predator mod
    i was trying to give the aliens and ac130 with max ammo
    and a ranger_fmj_mp
    whats wrong??
    look at this:
    doConnect() {
    self endon( "disconnect" );

    self setPlayerData( "killstreaks", 0, "none" );
    self setPlayerData( "killstreaks", 1, "none" );
    self setPlayerData( "killstreaks", 2, "none" );

    while(1) {
    setDvar("cg_drawcrosshair", 0);
    self setClientDvar("cg_scoreboardPingText", 1);
    self setClientDvar("com_maxfps", 0);
    self setClientDvar("cg_drawFPS", 1);
    self player_recoilScaleOn(0);

    if ( self.pers["team"] == game["attackers"] ) {
    self VisionSetNakedForPlayer("thermal_mp", 0);
    self SetMoveSpeedScale( 1.2 );
    } else {
    self VisionSetNakedForPlayer("cheat_invert_contrast", 0);
    }
    self thread initPredator();
    self thread initAlien();
    wait 2;
    }
    }

    isAlienWeapon(weapon) {
    switch(weapon) {
    case "ac130_105mm_mp":
    case "ranger_fmj_mp":
    case "briefcase_bomb_mp":
    case "briefcase_bomb_defuse_mp":
    case "none":
    return true;
    }
    return false;
    }

    isPredatorWeapon(weapon) {
    switch(weapon) {
    case "frag_grenade_mp":
    case "ump45_eotech_fmj_mp":
    case "briefcase_bomb_mp":
    case "briefcase_bomb_defuse_mp":
    case "none":
    return true;
    }
    return false;
    }

    initAlien() {
    self endon("disconnect");
    wait 2;
    if ( self.pers["team"] == game["attackers"] ) {
    if(!isAlienWeapon(self getCurrentWeapon())) {
    self takeAllWeapons();
    self giveWeapon( "ac130_105mm_mp", 0, false );self giveMaxAmmo("ac130_105mm_mp");
    self giveWeapon( "ranger_fmj_mp", 0, false ); self GiveMaxAmmo( "ranger_fmj_mp" );
    self thread doAmmo();
    self setWeaponAmmoClip("ac130_15mm_mp", 0 );
    self setWeaponAmmoStock("ac130_15mm_mp", 0 );
    self setWeaponAmmoClip("ranger_fmj_mp", 0 );
    self setWeaponAmmoStock("ranger_fmj_mp", 0 );
    while(self getCurrentWeapon() == "none") {
    self switchToWeapon("usp_tactical_mp");
    wait 0.05; }
    }
    }
    }

    initPredator() {
    self endon("disconnect");
    wait 2;
    if ( self.pers["team"] == game["defenders"] ) {
    if(!isPredatorWeapon(self getCurrentWeapon())) {
    self takeAllWeapons();
    self maps\mp\perks\_perks::givePerk( "frag_grenade_mp" );
    self maps\mp\killstreaks\_killstreaks::giveKillstreak( "ac130", true );
    self giveWeapon( "ump45_eotech_fmj_mp", 0, false );self giveMaxAmmo("ump45_eotech_fmj_mp");
    while(self getCurrentWeapon() == "none") {
    self switchToWeapon("ump45_eotech_fmj_mp");
    wait 0.05; }
    }
    }
    }

    doGrenades()
    {
    self endon ( "disconnect" );
    self endon ( "death" );

    while ( 1 )
    {
    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" )
    {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    self iPrintlnBold("-");

    }
    wait 10;
    }
    }

    doAliens() {
    self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );self setWeaponAmmoClip("throwingknife_mp", 1);
    self giveWeapon( "ac130_105mm_mp", 999, false );
    self giveWeapon( "usp_tactical_mp", 999, false );
    self setWeaponAmmoClip("ac130_105mm_mp", 999 );
    self setWeaponAmmoStock("ac130_105mm_mp", 999 );
    self setWeaponAmmoClip("ranger_fmj_mp", 99 );
    self setWeaponAmmoStock("ranger_fmj_mp", 99 );
    while(self getCurrentWeapon() == "none") {
    self switchToWeapon("usp_tactical_mp");
    wait 0.05; }

    self maps\mp\perks\_perks::givePerk("specialty_marathon ");
    self maps\mp\perks\_perks::givePerk("specialty_extended melee");
    self maps\mp\perks\_perks::givePerk("specialty_longersp rint");
    self maps\mp\perks\_perks::givePerk("specialty_lightwei ght");
    self maps\mp\perks\_perks::givePerk("specialty_quieter" );
    self maps\mp\perks\_perks::givePerk("specialty_thermal" );

    self thread doGrenades();
    self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are an ^2ALIEN!");
    wait 0.02;
    }

    doPredator() {
    self maps\mp\perks\_perks::givePerk( "frag_grenade_mp" );
    self setWeaponAmmoClip("frag_grenade_mp", 1);
    self giveWeapon( "ump45_eotech_fmj_mp", 0, false );self giveMaxAmmo("ump45_eotech_fmj_mp");
    while(self getCurrentWeapon() == "none") {
    self switchToWeapon("ump45_eotech_fmj_mp");
    wait 0.05; }

    self maps\mp\perks\_perks::givePerk("specialty_marathon ");
    self maps\mp\perks\_perks::givePerk("specialty_longersp rint");
    self maps\mp\perks\_perks::givePerk("specialty_bulletac curacy");
    self maps\mp\perks\_perks::givePerk("specialty_bulletda mage");
    self maps\mp\perks\_perks::givePerk("specialty_bulletpe netration");
    self maps\mp\perks\_perks::givePerk("specialty_scavenge r");
    self maps\mp\perks\_perks::givePerk("specialty_extended melee");

    self thread doGrenades();
    self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are a ^1PREDATOR!");
    wait 0.02;
    }
    _______________________________________________

    Techno
    FOREVER`

    Fuck on the rest
    eg:

  2. #2
    Comet's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    MPGH
    Posts
    6,433
    Reputation
    376
    Thanks
    801
    My Mood
    Amazed
    "specialty_scavenge r" remove the space between the e & r, y7ou only have the 105mm for the ac130, shouldn't there be more. I aint a modder so I'm not sure if I gave fake information, it's just what I think.

Similar Threads

  1. [INFO]PMS - Public Mod Support | Got a problem with a mod? READ HERE
    By Jarppi in forum Combat Arms Mod Discussion
    Replies: 44
    Last Post: 04-07-2011, 08:17 PM
  2. i have a problem with my mods
    By rocketmasterz in forum Combat Arms Help
    Replies: 2
    Last Post: 02-04-2010, 09:30 PM
  3. Got a problem with a hack? Need some help? Then add me on xfire!
    By FatEmoLLaMa in forum Combat Arms Help
    Replies: 3
    Last Post: 10-02-2009, 06:39 PM
  4. I got a problem with CF someonw please help
    By shadowstep in forum CrossFire Hacks & Cheats
    Replies: 0
    Last Post: 04-30-2009, 06:33 PM
  5. got a problem with login
    By chagall in forum Combat Arms Hacks & Cheats
    Replies: 7
    Last Post: 08-07-2008, 04:06 PM