View Single Post
elle
Member
Join Date: Feb 2011
Old 04-16-2012 , 11:30   Re: Pause a plugin before roundstart and unpause after few second
Reply With Quote #2

Big thanks for Deidara , he solved this problem :

i post his plugin here for anyone who needs

it works !!!


Code:
#include < amxmodx >

public plugin_init()
{
    register_plugin("PausePlugin","1.0","Deidara");
    register_logevent("round_end", 2, "1=Round_End");
    register_logevent("round_start", 2, "1=Round_Start")
}

public round_end()
{
    pause("ac","csdm_spawn_preset.amxx");
    
        
}

public round_start(id)
{
    set_task ( 2.0, "start", id );
}

public start()
{
    unpause("ac","csdm_spawn_preset.amxx");
    
}
elle is offline