Raised This Month: $ Target: $400
 0% 

Detect roundtime 1:00


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-30-2009 , 10:20   Re: Detect roundtime 1:00
Reply With Quote #2

Try this.
PHP Code:
#include <amxmodx>
 
new RoundTime;
 
public 
plugin_init()
{
        
register_plugin("Detect Round Time""1.0""hleV");
 
        
register_logevent("RoundStart"2"1=Round_Start");
        
register_logevent("RoundEnd"2"1=Round_End");
 
        
RoundTime get_cvar_pointer("mp_roundtime");
}
 
public 
RoundStart()
        
set_task(get_pcvar_float(RoundTime) - 60.0"Execute"123);
 
public 
RoundEnd()
        
remove_task(123);
 
public 
Execute()
{
        
// Execute command for all players
        
client_cmd(0"yourcommand");
 
        
// Execute command for server
        
server_cmd("yourcommand");

__________________

Last edited by hleV; 06-30-2009 at 12:15.
hleV 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 15:28.


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