Yea, I thinked about calculate the time of set_task with parameters, but I don't know, I've used a debug for these parameters, thats what I got:
Code:
get_msg_arg_int(1), get_msg_arg_int(2), get_msg_arg_int(3)
(1): 40496, (2): 8999, (3): 0 - Ahead
(1): 20989, (2): 3426, (3): 0 - Behind
And another thing, I want not make another thread about this.
I'm trying to pick the defuse time, like CSGO messages - "EFFx has defused the bomb with 0.3 seconds remaining"
Thats what I have:
PHP Code:
new Float:fC4Time, Float:fC4Defuse, Float:fTimeResult
public bomb_planted(id)
{
fC4Time = get_gametime()
}
public bomb_defused(id)
{
fC4Defuse = get_gametime()
fTimeResult = fC4Defuse - fC4Time
console_print(id,"Defuse Time: %0.1f",fTimeResult)
}
input:
Code:
Defuse Time: 41.1 - mp_c4time is 45
__________________