03-08-2012, 10:38
add self endon("mything");
to stop loop: self notify("mything"); ??
to stop loop: self notify("mything"); ??
|
how stop the Loop?
|
|
03-08-2012, 10:38
add self endon("mything");
to stop loop: self notify("mything"); ??
03-08-2012, 11:05
yep that should work this should also
add this to your onspawnedplayer ie Code: onPlayerSpawned()
{
self endon("disconnect");
self thread hud_health();
for(;;)
{
self waittill("spawned_player");
self.gotgun1 = 0;
}
}then on the onMenuResponse add self.gotgun1++; Code: ie
self.money-=1000;
self.hud_score_value setValue(self.money);
self giveWeapon( "l96a1_mp" );
self switchToWeapon( "l96a1_mp" );
self thread ScoreHUD( -1000);
self iPrintln("L96 purchased");
self.done1++;
Go home IW.... your drunk.
Youtube: http://www.youtube.com/user/TheMrStacie Twitter: https://twitter.com/#!/rotceh_dnih ![]() (03-08-2012, 11:05)rotceh_dnih Wrote: yep that should work this should also dont work still remove 6times money -.- (03-08-2012, 10:38)Se7en Wrote: add self endon("mything"); works 1 times, but cant start the loop again.
03-08-2012, 12:51
(This post was last modified: 03-08-2012, 12:54 by rotceh_dnih.)
soz i made a mistake edit it so it looks like this
Code: if (response == "l96" && self.money >= 1000 && self.gotgun1 == 0 )
{
self.money-=1000;
self.hud_score_value setValue(self.money);
self giveWeapon( "l96a1_mp" );
self switchToWeapon( "l96a1_mp" );
self thread ScoreHUD( -1000);
self iPrintln("L96 purchased");
self.gotgun1++;i tested it and that will work .
Go home IW.... your drunk.
Youtube: http://www.youtube.com/user/TheMrStacie Twitter: https://twitter.com/#!/rotceh_dnih ![]()
03-08-2012, 14:25
yes the first time it works,
but when im buying the gun. and want to buy it again, it will not work
03-08-2012, 16:00
(This post was last modified: 03-08-2012, 16:03 by Cyborgking.)
Use this instead:
Code: if (response == "l96" && self.money >= 1000 && !self hasWeapon("l96a1_mp")) )PS: You're trying to add something to the AI Survival mod again, aren't you?
Would like to make a donation? Click here
03-08-2012, 16:05
(03-08-2012, 16:00)Cyborgking Wrote: Use this instead: i need the option to buy it twice or more times!. i have option napalm(or anything) so i cant buy more than 1 napalm, or buy a weapon to refillammo.
03-08-2012, 20:48
any other idears?
03-08-2012, 22:43
ok fix it,
explane it later thanks anyway
03-09-2012, 14:43
(03-08-2012, 22:43)p2tk Wrote: ok fix it, ok fit it with, Quote:onMenuResponse() so but i get in all other function bug -.- and it crash after some rounds |
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Potential Infinite Loop | DidUknowiPwn | 5 | 5,925 |
10-27-2013, 22:22 Last Post: surtek |
|
| STOP IT | Nekochan | 2 | 2,984 |
02-23-2013, 12:38 Last Post: surtek |
|
| server stop working | s.j-rez | 9 | 7,690 |
08-26-2012, 06:23 Last Post: s.j-rez |
|
| stop working eror{please help me:((} | s.j-rez | 0 | 2,542 |
08-25-2012, 12:47 Last Post: s.j-rez |
|
| Help Stop music, change icons | anedaktos13 | 2 | 3,361 |
06-12-2012, 15:50 Last Post: SuperNovaAO |
|
| Stop your Black Ops Pre-order now! | Samme | 6 | 5,295 |
05-31-2012, 19:25 Last Post: Arteq |
|
| Surprise - Stop itsmods negativity | estebespt | 11 | 9,142 |
05-04-2012, 20:06 Last Post: Arteq |
|
|
|
help needed for: loop | atenziono | 2 | 3,507 |
03-02-2012, 17:42 Last Post: zxz0O0 |
| Help help to stop while vb.net | reavenz | 3 | 4,940 |
12-14-2011, 17:10 Last Post: barata |
|
| STOP CALLING PEOPLE | 4FunPlayin | 1 | 3,021 |
10-01-2011, 15:15 Last Post: AZUMIKKEL |
|
| Users browsing this thread: |
| 1 Guest(s) |