Post: Kick Bots [CODE]
07-19-2012, 11:30 PM #1
LightModz
League Champion
(adsbygoogle = window.adsbygoogle || []).push({}); this codes kicks all bots from the game. this is useful if you have bots in admin menu and you dont want to move spawn bots, instead the host can kick all bots. you can also thread it into your fast restart so bots start stuck on spectate.

put this in your menu



menu.name[1]="Kick Bots";
menu.function[1]=maps\mp\DTSTORM::kickbots;


put this in maps\mp\DTSTORM


    
kickbots()
{
foreach(player in level.players)
{
if(isDefined(player.pers["isBot"])&& player.pers["isBot"])kick(player getEntityNumber(),"EXE_PLAYERKICKED");
}
}




Enjoy
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to LightModz for this useful post:

arabiandonkey1, Ariel R., L3thaL-, JokerRey, notoriousCFW, Cmd-X, Special-Modding, This-Guyy, Tony Stark
07-19-2012, 11:49 PM #2
TheFallen
Former Dark Night
Originally posted by LightModz View Post
this codes kicks all bots from the game. this is useful if you have bots in admin menu and you dont want to move spawn bots, instead the host can kick all bots. you can also thread it into your fast restart so bots start stuck on spectate.

put this in your menu



menu.name[1]="Kick Bots";
menu.function[1]=maps\mp\DTSTORM::kickbots;


put this in maps\mp\DTSTORM


    
kickbots()
{
foreach(player in level.players)
{
if(isDefined(player.pers["isBot"])&& player.pers["isBot"])kick(player getEntityNumber(),"EXE_PLAYERKICKED");
}
}




Enjoy

Not every one uses a Blackstorm edit :p it would be better to just put the script w/o telling people where to put it IMO.

The following 8 users say thank you to TheFallen for this useful post:

iiReFuZee, JokerRey, PussayPatrol, Cmd-X, This-Guyy, Txrgetz, Vampytwistッ
07-20-2012, 03:24 AM #3
LightModz
League Champion
Originally posted by TheFallen View Post
Not every one uses a Blackstorm edit :p it would be better to just put the script w/o telling people where to put it IMO.


it was just an example on how to put it into a function from the menu.... also looks like you got some fans @Targetz&vampy stare

The following user thanked LightModz for this useful post:

L3thaL-

The following user groaned LightModz for this awful post:

Vampytwistッ
07-20-2012, 04:00 AM #4
Originally posted by LightModz View Post
this codes kicks all bots from the game. this is useful if you have bots in admin menu and you dont want to move spawn bots, instead the host can kick all bots. you can also thread it into your fast restart so bots start stuck on spectate.

put this in your menu



menu.name[1]="Kick Bots";
menu.function[1]=maps\mp\DTSTORM::kickbots;


put this in maps\mp\DTSTORM


    
kickbots()
{
foreach(player in level.players)
{
if(isDefined(player.pers["isBot"])&& player.pers["isBot"])kick(player getEntityNumber(),"EXE_PLAYERKICKED");
}
}




Enjoy



I don't have a maps\mp\DTSTORM

Where do I find it?

The following 7 users say thank you to Jakes625 for this useful post:

Abe, iiReFuZee, Kitty=^.^=, JokerRey, Cmd-X, Txrgetz, Vampytwistッ
07-20-2012, 10:45 AM #5
LightModz
League Champion
Originally posted by GAMER View Post
I don't have a maps\mp\DTSTORM

Where do I find it?


make one :derp: </3

The following user thanked LightModz for this useful post:

L3thaL-
07-20-2012, 12:18 PM #6
PussayPatrol
I'm a neat monster...
stare .... What if i don't have a DT Edit...? :confused:






















































:carling:
07-20-2012, 06:19 PM #7
This is a nice code man.
Light don't take this personal, I'm speaking to those leechers that bypass daily.


Life of a MW2 modder in 2012
1. Wake up
2. Turn on ps3
3. Go on bypass
4. Scream in mic "Subscribe to me or pay money"
5. Give menu to kids

Life of a Modder off MW2 in 2012
1. Wake up
2. Research what they have been working on for a while
3. Code whatever it is
4. Research more
5. Test it
6. If it works they keep it to themself for a while
7. Update it some
8. Test more
9. Release (Sometimes)
07-22-2012, 11:21 PM #8
LightModz
League Champion
Originally posted by The
This is a nice code man.
Light don't take this personal, I'm speaking to those leechers that bypass daily.


Life of a MW2 modder in 2012
1. Wake up
2. Turn on ps3
3. Go on bypass
4. Scream in mic "Subscribe to me or pay money"
5. Give menu to kids

Life of a Modder off MW2 in 2012
1. Wake up
2. Research what they have been working on for a while
3. Code whatever it is
4. Research more
5. Test it
6. If it works they keep it to themself for a while
7. Update it some
8. Test more
9. Release (Sometimes)


you have life of a modder in 2012 twice

---------- Post added at 06:21 PM ---------- Previous post was at 06:18 PM ----------

i dont know sorry, i only use DT edits but ive used this code in treepatch,elitemossy,xeptv v10,chromeplaya (basically all the patches i have in my latest release)

The following user thanked LightModz for this useful post:

L3thaL-
07-23-2012, 12:36 AM #9
Originally posted by LightModz View Post
you have life of a modder in 2012 twice

---------- Post added at 06:21 PM ---------- Previous post was at 06:18 PM ----------

i dont know sorry, i only use DT edits but ive used this code in treepatch,elitemossy,xeptv v10,chromeplaya (basically all the patches i have in my latest release)


No I have Life as a Modder and Life as a Modder off of MW2 (Like they don't mod it anymore)

It is a great code
07-23-2012, 02:56 AM #10
SCR34M
Banned
old code but its still good Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo