// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
thread "NTIMER"
if
$707 == 0
else_jump {Lab}-00001E
0A93: end_custom_thread
//Lab-00001E
wait 0
SAMP.Available
else_jump {Lab}-00001E
if
filedef "cleo\narko_timer.ini"
else_jump {Lab}-000066
filedel "cleo\narko_timer.ini"
//Lab-000066
log "[timeUsedrugs] Loaded! by Alllss"
if
filedef "cleo\save_settings\settings.ini"
else_jump {Lab}-0000C0
jump {Lab}-0000F4
//Lab-0000C0
msg "{919191}[Error] Файл настроек не найден!" 9539985
0A93: end_custom_thread
//Lab-0000F4
cmd "nhelp" {Lab}-00053A
cmd "nkey" {Lab}-00056C
cmd "npos" {Lab}-000648
cmd "nsbiv" {Lab}-000786
cmd "nautolomka" {Lab}-000878
cmd "ntime" {Lab}-00098C
//Lab-00014B
wait 0
if
SAMP.IsLocalPlayerSpawned
else_jump {Lab}-000533
alloc 9@ 64
alloc 8@ 64
alloc 1@ 64
alloc 2@ 64
alloc 17@ 64
alloc 18@ 64
rint 8@ "cleo\save_settings\settings.ini" "SelectKey" "Key"
rfloat 1@ "cleo\save_settings\settings.ini" "Position" "X"
rfloat 2@ "cleo\save_settings\settings.ini" "Position" "Y"
rint 17@ "cleo\save_settings\settings.ini" "AutoUsedrugs" "Active"
rint 18@ "cleo\save_settings\settings.ini" "SelectTime" "Time"
rint 18@ "cleo\save_settings\settings.ini" "SelectTime" "Time"
16@ = 3
0@ = Render.CreateFont("Arial", 11, 5)
//Lab-0002E5
wait 0
alloc 3@ 64
format 3@ "Можно юзать!"
Render.DrawText(0@, 3@, 10@, 12@, -16724992)
free 3@
0B60: convert_game_screen_coords 1@ 2@ to_window_screen_coords 10@ 12@
if and
17@ == 1
Actor.Animation($PLAYER_ACTOR) == "crckdeth1"
else_jump {Lab}-00035A
16@ = 0
jump {Lab}-0003A8
//Lab-00035A
if
Actor.Animation($PLAYER_ACTOR) == "M_smk_drag"
else_jump {Lab}-000384
16@ = 1
jump {Lab}-0003A8
//Lab-000384
if
key 8@
else_jump {Lab}-0003A8
if
not SAMP.ChatInputOpened
else_jump {Lab}-0003A8
16@ = 2
//Lab-0003A8
not 16@ >= 3
else_jump {Lab}-0002E5
0C74: 4@ = create_timer_interval 1000 on_label {Lab}-000BBD
if or
16@ == 2
17@ == 1
else_jump {Lab}-000498
6@ = Actor.Health($PLAYER_ACTOR)
7@ = 160
0062: 7@ -= 6@ // (int)
7@ /= 10
if
7@ >= 16
else_jump {Lab}-000414
7@ = 15
//Lab-000414
say "/usedrugs %d" 7@
rint 9@ "cleo\save_settings\settings.ini" "Sbiv" "Active"
if
9@ == 1
else_jump {Lab}-000498
if
not Actor.Driving($PLAYER_ACTOR)
else_jump {Lab}-000491
0792: disembark_instantly_actor $PLAYER_ACTOR
9@ = 0
jump {Lab}-000491
//Lab-000491
jump {Lab}-000498
//Lab-000498
wait 0
alloc 3@ 64
0C7C: 5@ = get_timer 4@ time_left
5@ /= 100
format 3@ "Осталось %d.%dсек." 18@ 5@
Render.DrawText(0@, 3@, 10@, 12@, -1)
free 3@
not 18@ > -1
else_jump {Lab}-000498
0C78: set_timer 4@ active 0
018C: play_sound 1057 at 0.0 0.0 0.0
Render.ReleaseFont(0@)
free 9@
free 8@
free 1@
free 2@
free 17@
free 18@
//Lab-000533
jump {Lab}-00014B
//Lab-00053A
0AC6: 13@ = label {Lab}-000A79 offset
SAMP.ShowDialog(15, "{ffa500}Информация", 13@, "Выход", "", DIALOG_STYLE_MSGBOX)
SAMP.CmdRet
//Lab-00056C
SAMP.IsCommandTyped(20@)
if
param 21@ 20@ "%d" 8@
else_jump {Lab}-000611
msg "{ffa500}[timer]: Клавиша активации была изменена на [id:%d]" 16753920 8@
wint 8@ "cleo\save_settings\settings.ini" "SelectKey" "Key"
jump {Lab}-000646
//Lab-000611
msg "{ffa500}[timer]: Используйте /nkey [id key]" 16753920
//Lab-000646
SAMP.CmdRet
//Lab-000648
SAMP.IsCommandTyped(22@)
if
param 23@ 22@ "%d %d" 1@ 2@
else_jump {Lab}-000748
0093: 1@ = integer 1@ to_float
0093: 2@ = integer 2@ to_float
msg "{ffa500}[timer]: Кординаты были изменены на %f %f (original X - 555 | Y - 40)" 16753920 1@ 2@
wfloat 1@ "cleo\save_settings\settings.ini" "Position" "X"
wfloat 2@ "cleo\save_settings\settings.ini" "Position" "Y"
jump {Lab}-000784
//Lab-000748
msg "{ffa500}[timer]: Используйте /npos [X pos] [Y pos]" 16753920
//Lab-000784
SAMP.CmdRet
//Lab-000786
SAMP.IsCommandTyped(24@)
if
param 25@ 24@ "%d" 9@
else_jump {Lab}-000832
msg "{ffa500}[timer]: Cбив анимации изменено на %d [1-Включен|0-Отключен]" 16753920 9@
wint 9@ "cleo\save_settings\settings.ini" "Sbiv" "Active"
jump {Lab}-000876
//Lab-000832
msg "{ffa500}[timer]: Используйте /nsbiv [1-Включен|0-Отключен]" 16753920
//Lab-000876
SAMP.CmdRet
//Lab-000878
SAMP.IsCommandTyped(26@)
if
param 27@ 26@ "%d" 17@
else_jump {Lab}-00093F
msg "{ffa500}[timer]: Автоупотребление нарко при ломке изменено на %d [1-Включен|0-Отключен]" 16753920 17@
wint 17@ "cleo\save_settings\settings.ini" "AutoUsedrugs" "Active"
jump {Lab}-00098A
//Lab-00093F
msg "{ffa500}[timer]: Используйте /nautolomka [1-Включена|0-Отключена]" 16753920
//Lab-00098A
SAMP.CmdRet
//Lab-00098C
SAMP.IsCommandTyped(28@)
if
param 29@ 28@ "%d" 18@
else_jump {Lab}-000A3E
18@ -= 1
0085: 19@ = 18@ // (int)
19@ += 1
msg "{ffa500}[timer]: Вы изменили время таймера на %d" 16753920 19@
wint 18@ "cleo\save_settings\settings.ini" "SelectTime" "Time"
jump {Lab}-000A77
//Lab-000A3E
msg "{ffa500}[timer]: Используйте /ntime [timer sec]" 16753920
//Lab-000A77
SAMP.CmdRet
//Lab-000A79
{FFFFFF}/nkey - Установить клавишу активации скрипта.
{FFFFFF}/npos - Установить позицию текста на экране.
{FFFFFF}/nsbiv - Отключить/Включить сбив анимации. [1-Включен|0-Отключен]
{FFFFFF}/nautolomka - Отключить/Включить авто употребление нарко при ломке. [1-Включен|0-Отключен]
{FFFFFF}/ntime - Установить время таймера.
end
//Lab-000BBD
18@ -= 1
SAMP.CmdRet