ItsMods

Full Version: Run this code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I kill enough, it nothing happens! Why?


Quote:MonitorKillstreaks()
{
self endon("respawn");
self endon("death");
self endon("disconnect");

for(;Wink
{
if(self.pers["botKillstreak"] == 5 && self.pers["lastKillstreak"] != "uav")
{
self.pers["lastKillstreak"] = "uav";
self maps\mp\gametypes\_hardpoints:ConfusedtreakNotify(self.pers["cur_kill_streak"]);
self maps\mp\gametypes\_hardpoints::giveKillstreak("radar_mp", "radar_mp", true, false);
}


wait 0.05;
}
}
Lets take a look at this shall we?
Code:
if(self.pers["botKillstreak"] == 5 && self.pers["lastKillstreak"] != "uav")

if(self.pers["botKillstreak"] == 5

self.pers["botKillstreak"]

["botKillstreak"]

bot
(03-12-2011, 22:37)AZUMIKKEL Wrote: [ -> ]Lets take a look at this shall we?
Code:
if(self.pers["botKillstreak"] == 5 && self.pers["lastKillstreak"] != "uav")

if(self.pers["botKillstreak"] == 5

self.pers["botKillstreak"]

["botKillstreak"]

bot

So you say he should change it to self.pers["bot"]? [Image: troll-1.gif]
(03-12-2011, 22:37)AZUMIKKEL Wrote: [ -> ]Lets take a look at this shall we?
Code:
if(self.pers["botKillstreak"] == 5 && self.pers["lastKillstreak"] != "uav")

if(self.pers["botKillstreak"] == 5

self.pers["botKillstreak"]

["botKillstreak"]

bot

So you say he should change it to self.pers["bot"]? [Image: el9rnk.gif]
These are not bots Combat Training, but bots like cod 4 zombie.
Sorry, but when you move on to a difficulty like that, self.pers variables should already be obligatory.
My guess is that you didn't define the self.pers["botKillstreak"] variable.
If you have no idea what I'm talking about, move down to a lower difficulty.
attacker.pers["botKillstreak"]++;

I have already defined, each kill zombies.