AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [solved]how to get current c4 time ? (https://forums.alliedmods.net/showthread.php?t=128841)

K.K.Lv 06-06-2010 02:56

[solved]how to get current c4 time ?
 
as the title !
be careful, not the c4time, I said the current c4 time when the bomb has been planted !

ConnorMcLeod 06-06-2010 04:47

Re: how to get current c4 time ?
 
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

K.K.Lv 06-06-2010 04:58

Re: how to get current c4 time ?
 
got it con !
thx !

may be my way is not a good one, but the problem is solved, just look at this plugin


All times are GMT -4. The time now is 05:27.

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