Raised This Month: $ Target: $400
 0% 

Easy way to get round time?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 05-27-2009 , 12:59   Re: Easy way to get round time?
Reply With Quote #1

Not tested!
PHP Code:
//global
new Float:round_start_gametime

// plugin init
register_event("HLTV","event_newround","a","1=0","2=0")

public 
event_newround()
{
 
round_start_gametime get_gametime()
 return 
PLUGIN_CONTINUE
}

stock get_roundtime()
{
 return 
get_gametime() - round_start_gametime

__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 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 01:27.


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