View Single Post
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 02-10-2023 , 12:54   Re: Map Manager Modular
Reply With Quote #48

Quote:
Originally Posted by ChillerX View Post
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_pCvarBotStop1)
}
public 
mapm_vote_canceled() {
    
set_pcvar_num(g_pCvarBotStop0)
}
public 
mapm_vote_finished() {
    
set_pcvar_num(g_pCvarBotStop0)

Works. Might be a better way of doing it.
iclassdon is offline
Send a message via MSN to iclassdon