[SOLVED]Script correct?

Posts 1–11 of 11 · Page 1 of 1
[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.
Code:
		if(self.pers["team"] == "allies")
		{
			YOUR CODE
		}
Btw, wrong section
wrong section

/moved to help
AMG BUGGED!

Still not fixed? Help pl0x
Does it give u bad syntax?
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.
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 /
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
PS: u might also wnna put doAirsupport thread on Player Spawned
~Marked as Solved
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?