Raised This Month: $ Target: $400
 0% 

bot_quota control help CS/CZ bots


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ricky
Senior Member
Join Date: Jul 2005
Old 07-19-2017 , 00:44   Re: bot_quota control help CS/CZ bots
Reply With Quote #6

Quote:
Originally Posted by baneado View Post
When do you call check_players?

Maybe doing a break after Kick the bot to stop the loop
Code:
public plugin_cfg() {
	
	if(!get_pcvar_num(g_bot_enabled)) 
		return PLUGIN_HANDLED
	
	set_task(1.0, "check_players", TASK_CZBOT_MODE, _, _, "b")
	set_task(3.0, "map_loaded", TASK_CZBOT_SLOTS)
	
	return PLUGIN_CONTINUE
}
What line should I edit with the break code? Example?
Ricky is offline
 



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 23:11.


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