PHP Code:
get_time_format(Float:times, result[], 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", hour, min, sec);
}
and I use this
PHP Code:
new timeformat[8];
get_time_format((get_gametime() - g_starttime), timeformat, charsmax(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)
}