AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   timelimit in seconds (https://forums.alliedmods.net/showthread.php?t=147991)

Iulyy 01-16-2011 17:44

timelimit in seconds
 
Is there any function that extract timelimit in seconds? I tryd this but i don't know why can't compile.
Code:

new timelimit = get_cvar_float("mp_timelimit")
new timelimitS[3], timelimitM[8]
split(timelimit, timelimitS, 2, timelimitM, 7, ':')


Arkshine 01-16-2011 18:36

Re: timelimit in seconds
 
You mean amx_timeleft ?

fysiks 01-16-2011 18:47

Re: timelimit in seconds
 
The timelimit is just a number of minutes.

Iulyy 01-16-2011 18:48

Re: timelimit in seconds
 
Sorry, my bad, i don't know where my mind was :|


All times are GMT -4. The time now is 02:13.

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