Raised This Month: $ Target: $400
 0% 

[DONE]How to check if freeze time has passed?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-09-2013 , 07:03   Re: How to check if freeze time has passed?
Reply With Quote #7

Quote:
Originally Posted by Sylwester View Post
PHP Code:
new bool:g_freezetime
public plugin_init(){
    
register_event("HLTV""event_new_round""a""1=0""2=0")
    
register_logevent("logevent_round_start"2"1=Round_Start")
}

public 
event_new_round()
    
g_freezetime true

public logevent_round_start()
    
g_freezetime false

public some_function(id){
    if(
g_freezetime)
        return
    
//...

Thanks!!!! It works!
Unkolix 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