Raised This Month: $ Target: $400
 0% 

[SOLVED]Round end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-24-2007 , 08:05   Re: Round end
Reply With Quote #1

try this:
PHP Code:
#include <amxmodx>
new bool:g_round_started
new g_roundtime

public plugin_init(){
    
register_plugin"test2""1.0""Sylwester" )
    
register_logevent("logevent_round_start"2"1=Round_Start")
    
register_message(get_user_msgid("RoundTime"), "round_time")
}


public 
logevent_round_start(){
    
g_round_started true
}

public 
round_time(){
    if(
g_round_started)
        
g_round_started false
    
else return

    
g_roundtime get_msg_arg_int(1)
    
set_task(float(g_roundtime), "my_func")
}

public 
my_func(){
    
// DO STUFF

__________________
Impossible is Nothing
Sylwester is offline
Reply



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 21:33.


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