Quote:
Originally Posted by ChillerX
Yes I saw it last week and my next question was going to be if it is doable for YAPB as well...
They do have bot freeze cvar - yb_freeze_bots 0/1 but i haven`t test yet if just swapping the cvars will work.
|
PHP Code:
#include <amxmodx>
#include <map_manager>
new g_pCvarBotStop
public plugin_init() {
register_plugin("Map Manager: YaPB Freeze Bots", "1.0", "")
g_pCvarBotStop = get_cvar_pointer("yb_freeze_bots")
}
public mapm_prepare_votelist() {
set_pcvar_num(g_pCvarBotStop, 1)
}
public mapm_vote_canceled() {
set_pcvar_num(g_pCvarBotStop, 0)
}
public mapm_vote_finished() {
set_pcvar_num(g_pCvarBotStop, 0)
}
Works. Might be a better way of doing it.