Здравствуйте!
У меня в коде разминки есть функция которая ставит и снимает паузу плагина. На 1м плагине работает 100% а вот остальные кажется ставит на паузу и не снимает в конце работы плагина...
Наверное я неправильно прописываю цикл?
Код:
Timer = get_pcvar_num(SecondsCvar)
set_task(1.0, "start_rr_timer", _, _, _, "a", Timer)
if(is_plugin_loaded("round_chat_msg.amxx",true)) pause("ac", "round_chat_msg.amxx")
if(is_plugin_loaded("infinite_round.amxx",true)) pause("ac", "infinite_round.amxx")
if(is_plugin_loaded("VIP.amxx",true)) pause("ac", "VIP.amxx")
if(is_plugin_loaded("aes_exp_cstrike.amxx",true)) pause("ac", "aes_exp_cstrike.amxx")
if(is_plugin_loaded("freeammoeveryround.amxx",true)) pause("ac", "freeammoeveryround.amxx")
}
Код:
public start_rr_timer()
{
Timer--
set_dhudmessage(135, 206, 235, -1.0, 0.08, 0, 0.0, 0.01)
show_dhudmessage(0, "WarmUp!^nRestart after %d seconds", Timer)
if(Timer < 1)
{
server_cmd("sv_restartround 1")
set_task(3.0, "rr_end")
client_cmd(0, "mp3 stop");
g_knife = false
//unpause("ac", "round_chat_msg.amxx");
if(is_plugin_loaded("round_chat_msg.amxx",false)) unpause("ac", "round_chat_msg.amxx")
if(is_plugin_loaded("infinite_round.amxx",false)) unpause("ac", "infinite_round.amxx")
if(is_plugin_loaded("VIP.amxx",false)) unpause("ac", "VIP.amxx")
if(is_plugin_loaded("aes_exp_cstrike.amxx",false)) unpause("ac", "aes_exp_cstrike.amxx")
if(is_plugin_loaded("freeammoeveryround.amxx",false)) unpause("ac", "freeammoeveryround.amxx")
}
}