Raised This Month: $ Target: $400
 0% 

Count time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tepegoz
Senior Member
Join Date: Apr 2019
Old 06-15-2020 , 12:06   Count time
Reply With Quote #1

PHP Code:
get_time_format(Float:timesresult[], len)
{

new 
hour floatround(times) / 60 /60;
new 
min  =(floatround(times) / 60) % 60;
new 
sec  floatround(times) % 60;
formatex(result[0], len"%i:%i:%i"hourminsec); 
}
and I use this
PHP Code:
new timeformat[8];
get_time_format((get_gametime() - g_starttime), timeformatcharsmax(timeformat));
len += format(awards[len], 512-len"          Time : %s"timeformat
I can see time on timeformat as 0:2:41 but I want detect only minutes(2). How to detect minutes? I want to make if(cvar_time> min) ......

Can you help me this public?
PHP Code:
public asa(id){

    new 
min  =(floatround(times) / 60) % 60;
    
client_print(0,print_chat,"Minute: %i",min)

tepegoz is offline
 



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 17:08.


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