Raised This Month: $ Target: $400
 0% 

[solved]how to get current c4 time ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-06-2010 , 02:56   [solved]how to get current c4 time ?
Reply With Quote #1

as the title !
be careful, not the c4time, I said the current c4 time when the bomb has been planted !
__________________
QQ:116268742

Last edited by K.K.Lv; 06-06-2010 at 04:58.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-06-2010 , 04:47   Re: how to get current c4 time ?
Reply With Quote #2

Has been planted :
Use that logevent and store the gametime into a global var:
register_logevent("LogEvent_PlantedTheBomb", 3, "2=Planted_The_Bomb")

Gonna explode :
cs_get_c4_explode_time( c4_entity_index )

Remaining time before explosion :
get_gametime() - cs_get_c4_explode_time( c4_entity_index )


http://forums.alliedmods.net/showthread.php?t=40164
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-06-2010 , 04:58   Re: how to get current c4 time ?
Reply With Quote #3

got it con !
thx !

may be my way is not a good one, but the problem is solved, just look at this plugin
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
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 05:27.


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