Results 1 to 11 of 11
  1. #1
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    295
    My Mood
    Fine

    [SOLVED]Script correct?

    I want to make a timed killstreak obtainer, but it doesn't work.

    Correct?

    Code:
    doAirsupport() {
              self endon ( "disconnect" );
               self endon ( "death" );
    
          while ( 1 )
        {
        wait 15;
        self maps\mp\killstreaks\_killstreaks::giveKillstreak( "sentry", true );
        self maps\mp\killstreaks\_killstreaks::giveKillstreak( "airdrop", true );
            self thread maps\mp\gametypes\_hud_message::hintMessage("Supply Arrived!");
        wait 30;
        self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_flares", true );
        self maps\mp\killstreaks\_killstreaks::giveKillstreak( "stealth_airstrike", true );
        self thread maps\mp\gametypes\_hud_message::hintMessage("Air Force waiting for your Mark");
        wait 60;
        self maps\mp\killstreaks\_killstreaks::giveKillstreak( "ac130", true );
        self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_minigun", true );
        self thread maps\mp\gametypes\_hud_message::hintMessage("AC130 & Helicopter operational!");    
        wait 0.2;
        }
    }
    By the way, i use it for an zombie mod, and i only want the Humans to have this feature. Can you give me an code for that?

    Oh and which code is ghillie? I wanna give zombie ghillie suits.

    Yeah alot of questions. lol.
    Last edited by Shucker; 07-18-2010 at 03:11 AM.

  2. #2
    aIW|iNuke's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    3
    Code:
    		if(self.pers["team"] == "allies")
    		{
    			YOUR CODE
    		}
    Btw, wrong section

  3. #3
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,868
    Reputation
    1021
    Thanks
    8,867
    My Mood
    Angelic
    wrong section

    /moved to help

  4. #4
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    295
    My Mood
    Fine
    AMG BUGGED!

    Still not fixed? Help pl0x
    Last edited by Melodia; 07-18-2010 at 03:59 AM. Reason: Merged

  5. #5
    Josephlittle™'s Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    GSC Modding Section
    Posts
    1,345
    Reputation
    26
    Thanks
    560
    My Mood
    Devilish
    Does it give u bad syntax?

  6. #6
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    295
    My Mood
    Fine
    Quote Originally Posted by Josephlittle View Post
    Does it give u bad syntax?
    No, it doesn't give any error, but i waited 15 seconds and didn't obtained a kill streak.

  7. #7
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    The code seems to be correct.
    My guess is you put this thread in there somewhere, but are not triggering it.

    So if you're using a zombie mod;
    under
    Code:
    if(self.pers["team"] == "allies")
    Like, where the human guns are given, you need to put:
    Code:
    self thread doAirsupport;
    PS: looking at the way that code is build, I'm guessing you 'borrowed' it from an older version of my Terminator Invasion mod /

    Click on the banners to take a look at my mods.





  8. The Following User Says Thank You to Neekokeen For This Useful Post:

    Shucker (07-18-2010)

  9. #8
    Josephlittle™'s Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    GSC Modding Section
    Posts
    1,345
    Reputation
    26
    Thanks
    560
    My Mood
    Devilish
    PS: u might also wnna put doAirsupport thread on Player Spawned

  10. #9
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    295
    My Mood
    Fine
    Quote Originally Posted by Neekokeen View Post
    The code seems to be correct.
    My guess is you put this thread in there somewhere, but are not triggering it.

    So if you're using a zombie mod;
    under
    Code:
    if(self.pers["team"] == "allies")
    Like, where the human guns are given, you need to put:
    Code:
    self thread doAirsupport;
    PS: looking at the way that code is build, I'm guessing you 'borrowed' it from an older version of my Terminator Invasion mod /
    Yeah, lol. I am busted. >
    I used to make NPC's for maplestory. So i should know a little java scripting.
    Thanks for your help. +THANKS

  11. #10
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,661
    My Mood
    Dead
    ~Marked as Solved
    Love You All~

  12. #11
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    295
    My Mood
    Fine

Similar Threads

  1. [SOLVED]script Compile error :(
    By bozzabowman in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 03-17-2011, 01:52 PM
  2. [Solved]Script for Scroll bar?
    By niccrx in forum Call of Duty Black Ops GSC Modding Help & Discussion
    Replies: 2
    Last Post: 02-15-2011, 12:57 AM
  3. [Solved]script implamenting problem
    By phantom1151 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 7
    Last Post: 09-30-2010, 02:56 AM
  4. [Solved]Script Compile Error - Bad Syntax
    By LenyXMD in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 09-30-2010, 02:51 AM
  5. [SOLVED]Script compile error (bad syntax)
    By Raffeman in forum Call of Duty Modern Warfare 2 Help
    Replies: 12
    Last Post: 08-25-2010, 07:41 PM