// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread "hnnssy"
0662: printstring "set time"
if
0@ = SAMP.Base()
else_jump @HNNSSY_40
0A93: end_custom_thread
:HNNSSY_40
not SAMP.Available
else_jump @HNNSSY_60
wait 100
jump @HNNSSY_40
:HNNSSY_60
chatmsg "[hnnssy | W&T]: {EAEAEA}Изменение времени суток и погоды. Автор: {00CCFF}hnnssy" 52479
chatmsg "[hnnssy | W&T]: {EAEAEA}Время — {00CCFF}/settime [0 — 23]{EAEAEA}. Погода — {00CCFF}/setweather [0 — 45]" 52479
0B34: samp register_client_command "settime" to_label @HNNSSY_334
0B34: samp register_client_command "setweather" to_label @HNNSSY_578
:HNNSSY_298
wait 0
if
10@ == 1
else_jump @HNNSSY_327
00C0: set_current_time_hours_to 1@ minutes_to 0
:HNNSSY_327
jump @HNNSSY_298
:HNNSSY_334
wait 0
SAMP.IsCommandTyped(0@)
0AD4: 4@ = scan_string 0@ format "%d" 1@
if and
1@ >= 0
not 1@ > 23
else_jump @HNNSSY_484
00C0: set_current_time_hours_to 1@ minutes_to 0
chatmsg "[hnnssy | W&T]: {EAEAEA}Время установлено на {00CCFF}%d{EAEAEA} ч." 52479 1@
10@ = 1
jump @HNNSSY_576
:HNNSSY_484
chatmsg "[hnnssy | W&T]: {EAEAEA}Правильный ввод: {00CCFF}/settime [0 - 23]{EAEAEA}." 52479
10@ = 0
:HNNSSY_576
SAMP.CmdRet
:HNNSSY_578
wait 0
SAMP.IsCommandTyped(3@)
0AD4: 5@ = scan_string 3@ format "%d" 2@
if and
2@ >= 0
not 2@ > 45
else_jump @HNNSSY_718
set_weather 2@
chatmsg "[hnnssy | W&T]: {EAEAEA}Погода установлена на {00CCFF}%d{EAEAEA}." 52479 2@
jump @HNNSSY_806
:HNNSSY_718
chatmsg "[hnnssy | W&T]: {EAEAEA}Правильный ввод: {00CCFF}/setweather [0 - 45]{EAEAEA}." 52479
:HNNSSY_806
SAMP.CmdRet