Raised This Month: $ Target: $400
 0% 

Pause a plugin before roundstart and unpause after few second


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode