- 411
- 268
Не понял ничего...
CLEO:
{$CLEO}
0000:
repeat
wait 40
until Samp.Available()
0B34: samp register_client_command "timer" to_label @cmd
while true
wait 0
if and
84A4: 0@ != 0
0B61: samp is_local_player_spawned
then
33@ = 0
chatmsg "Wait 5 seconds!" -1
const
TIMER_DURATION = 1000
end
while 33@ < TIMER_DURATION
0A8F: 1@ = 33@ - TIMER_DURATION
0012: 1@ *= -1
0016: 1@ /= 100
0AD1: show_formatted_text_highpriority "Time is running out: %d.%d" time 100 4 1@
wait 100
end
0ACD: show_text_highpriority "Try again" time 400
chatmsg "%d" -1 2@
0@ = false
end
end
:cmd
0B35: samp 2@ = get_last_command_params
0C17: 1@ = strlen 2@
0C1A: 2@ = atoi 2@
if and
1@ > 0
2@ > 0
then
0@ = true
end
0B43: samp cmdret