I want to do something like a chronometer that counts the minutes after scanning the text in the chat even if the game is in pause keep counting the time
how can I do it?
with server time
how can I do it?
with server time
Code:
0AC8: 2@ = allocate_memory_size 260
while true
wait 0
0AB1: call @getChatEntryText 1 id 99 to 2@
if
0C14: strcmp string1 2@ string2 "time 6 minutes"
then
wait 5
chatmsg "scan ok" -1
00BF: 28@ = current_time_hours, 29@ = current_time_minutes
$hours = 28@
$minutes = 29@
chatmsg "current time: %d minuto: %d" -1 $hours $minutes
repeat // loop until 6 minutes have passed
wait 0
00BF: 28@ = current_time_hours, 29@ = current_time_minutes
if
// 6 minutes passed
then break // break the loop
end
until false
chatmsg "6 minutes passed" -1
end
end