View Single Post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-26-2014 , 19:49   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #192

Fakemeta function:
Code:
EngFunc_Time


Description:
Returns time in seconds (float) since the game started. Rather the same as tickcount(). It seems to not be used by the mod (it's useless anyway).
Usage:

PHP Code:
new Float:flElapsedTime Float:engfunc(EngFunc_Time)
server_print("%.2f seconds passed since the server started"flElapsedTime
PHP Code:
new Float:flStartTime Float:engfunc(EngFunc_Time)
MyVeryBigFunction()
AnotherHugeFunction()
SpamArkshineSteamChat()
server_print("Execution time: %f"Float:engfunc(EngFunc_Time) - flStartTime
Parameters:
no params for this function

Another not really important function, but as many others, it's unknown for many scripters.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline