- 48
- 2
Умирает сразу же x) , помогите пожалуйста (скорее всего как то не правильно создаю/описываю команды)! ;(
CLEO:
{$CLEO .cs}
{$INCLUDE SF}
//SAMP CLASSIC
0000: NOP
repeat
wait 100
until 0AFA: is_samp_available
//VARS
1@ = 1
3@ = 0
5@ = 0
6@ = 0
alloc 2@ 180
alloc 4@ 180
if
0AAB: file_exists "cleo\autored-config.ini"
then
0AF0: 0@ = get_int_from_ini_file "cleo\autored-config.ini" section "main" key "enable"
0AF4: 2@ = read_string_from_ini_file "cleo\autored-config.ini" section "main" key "ad-text"
else
0AD3: 2@ = format "Ваше cообщение"
0AF1: write_int 1@ to_ini_file "cleo\autored-config.ini" section "main" key "enable"
0AF5: write_string 2@ to_ini_file "cleo\autored-config.ini" section "main" key "ad-text"
end
if 1@ == 1
then
0AF8: samp add_message_to_chat "{FFC04C}[autored] {FFFFFF}Запущен успешно! (v0.1 {9B00D2}by Ningaro{FFFFFF})" color 0xFFFFFF
//команды
0B34: samp register_client_command "redstart" to_label @send_ad_0
0B34: samp register_client_command "redstop" to_label @stop_ad
0B34: samp register_client_command "redreload" to_label @reload_ad
//отправка сообщений
0AD3: 4@ = format "/red %s" 2@
jump @send_ad_1
:send_ad_2
wait 90000
:send_ad_1
if 6@ == 1
jf @send_ad_1
0AF9: samp say_msg "%s" 4@
wait 200
if
0B4C: samp is_dialog_active 520
jf @send_ad_1
0B47: samp close_current_dialog_with_button 1
5@++
jump @send_ad_2
:reload_ad
0AF4: 2@ = read_string_from_ini_file "cleo\autored-config.ini" section "main" key "ad-text"
0AD3: 4@ = format "/ad %s" 2@
0AF8: samp add_message_to_chat "{FFC04C}[autored] {FFFFFF}Были загружены обновленные параметры конфиг файла" color 0xFFFFFF
jump @send_ad_1
:send_ad_0
6@ = 1
jump @send_ad_1
:stop_ad
6@ = 0
5@ = 0
jump @send_ad_1
else
end_thread
end
Последнее редактирование: