Raised This Month: $51 Target: $400
 12% 

Kill bots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cstrike37
Member
Join Date: Jan 2012
Old 05-09-2013 , 00:16   Kill bots
Reply With Quote #1

is it possible to make a plugin that will kill all bots in 5 seconds when all players are dead?
cstrike37 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-09-2013 , 00:53   Re: Kill bots
Reply With Quote #2

there is a default setting for that with POD BOTS... check the cfg file.

Code:
# Set the below value to 1 to enable auto kill bots if all human players
# are dead already. <0|1>. Default is 0.
pb_autokill 1
__________________

Last edited by Blizzard_87; 05-09-2013 at 00:55.
Blizzard_87 is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-09-2013 , 01:31   Re: Kill bots
Reply With Quote #3

Actually i'm not using podbot cause it's really confusing, I'm using the default bot on Condition Zero
Thanks for the reply tho
cstrike37 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-09-2013 , 01:56   Re: Kill bots
Reply With Quote #4

ok ive never worked with CSCZ, or the bots with CZ.. but i make up a quick code... might not work but here you go.
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "Kill Bots After No Alive Players" #define VERSION "1.0" #define AUTHOR "Blizzard" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_event( "DeathMsg", "Event_DeathMsg", "a" ); } public Event_DeathMsg() {     new Players[ 32 ], iNum, i, player;     get_players( Players, iNum, "ac" );     for( i = 0; i < iNum; i++ )     {         player = Players[ i ];         if( !player)         {             set_task(5.0, "KillBots", 0 );         }     } } public KillBots() {     new Players[ 32 ], iNum, i, bots;     get_players( Players, iNum, "d" );     for( i = 0; i < iNum; i++ )     {         bots = Players[ i ];         user_kill( bots );     } }

EDIT: fixed making sure it checks if No Real players alive.
__________________

Last edited by Blizzard_87; 05-09-2013 at 01:59.
Blizzard_87 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-09-2013 , 07:43   Re: Kill bots
Reply With Quote #5

@ Blizzard Condition Zero has a command "bot_kill" which can be used with server_cmd() .
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-09-2013 , 08:20   Re: Kill bots
Reply With Quote #6

Quote:
Originally Posted by hornet View Post
@ Blizzard Condition Zero has a command "bot_kill" which can be used with server_cmd() .
yeah. Thanks. I've never played it before. So my code was guessing. sorry.
__________________
Blizzard_87 is offline
PoLiCe
Senior Member
Join Date: Apr 2013
Location: Xen™
Old 05-09-2013 , 11:21   Re: Kill bots
Reply With Quote #7

I know there is a command to kill bots, but I searched for plugin and found this, it might help you
https://forums.alliedmods.net/showthread.php?t=10762
__________________
PoLiCe is offline
Send a message via MSN to PoLiCe Send a message via Skype™ to PoLiCe
cstrike37
Member
Join Date: Jan 2012
Old 05-09-2013 , 16:41   Re: Kill bots
Reply With Quote #8

@blizzard thanks! Ill test it out when i get home and post the result

@police i want a plugin that will kill the bots in 5 seconds when theres no human alive

Last edited by cstrike37; 05-09-2013 at 16:42.
cstrike37 is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-09-2013 , 18:00   Re: Kill bots
Reply With Quote #9

@blizzard Not working ;(
thanks anyways
cstrike37 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-09-2013 , 20:28   Re: Kill bots
Reply With Quote #10

Quote:
Originally Posted by PoLiCe View Post
I know there is a command to kill bots, but I searched for plugin and found this, it might help you
https://forums.alliedmods.net/showthread.php?t=10762
cstrike37 use this link it states it works with more then one kind of bots.
__________________
Blizzard_87 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode