View Single Post
Deidara
Member
Join Date: Jul 2010
Location: Romania
Old 04-21-2012 , 15:06   Re: Pause a plugin before roundstart and unpause after few second
Reply With Quote #4

Code:
#include < amxmodx >

public plugin_init()
{
	register_plugin("PausePlugin","1.0","Deidara");
	register_logevent("round_end", 2, "1=Round_End");
	register_event("TextMsg", "round_restart", "a", "2&#Game_C", "2&#Game_w");
	register_logevent("round_start", 2, "1=Round_Start")
}

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

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

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

public start()
{
	unpause("ac","csdm_spawn_preset.amxx");
    
}
Try
Deidara is offline
Send a message via Yahoo to Deidara Send a message via Skype™ to Deidara