[Crime Street] Смена цвета ника при логине и смерти + бонус.

Статус
В этой теме нельзя размещать новые ответы.

gcode

нестандартное звание звание звание звание звани...
Автор темы
Друг
789
357
Меняет цвет ника на указанный в конфиге прямо при входе в игру и после каждой смерти.
Также есть режим радуги, который постоянно и поочерёдно меняет ваш цвет ника на все 7 цветов радуги.

/clist - выключить/включить скрипт (при загрузке автоматически включен)
/rainbow - режим радуги

PHP:
{$CLEO .cs}
0662: NOP "======= .:. ================ .:. ======"
0662: NOP "= gcode .:. Crime Nick Color .:. 2013 ="
0662: NOP "======= .:. ================ .:. ======"
thread "crnickcol"
if
    8AF7: get_samp_base_to 33@
then
    0A93: end_custom_thread
end
repeat
    wait 400
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "clist" to_label @onoff
0B34: samp register_client_command "rainbow" to_label @rainbow
wait 3000
repeat
    wait 750
    0AF9: samp say_msg "/mn"
    wait 750
    0B4E: samp 28@ = get_current_dialog_id
until 28@ == 195
0B47: samp close_current_dialog_with_button 0
0ACD: show_text_highpriority "~W~Auto Color ~G~ON" time 1500
0AF8: samp add_message_to_chat "{EAEAEA}Для {e86c7c}acheats.ru {EAEAEA}и {e86c7c}blasthack.net" 0xe86c7c
 
while true
    wait 0
    if
        30@ == 0
    then
        0AC8: 29@ = allocate_memory_size 128
        0AF4: 29@ = read_string_from_ini_file "cleo\crnickcol.ini" section "Settings" key "Color"
        0AF9: samp say_msg "/%s" 29@
        0AC9: 29@
        while 30@ == 0
            wait 0
            repeat
                wait 0
                if
                    8039: not 30@ == 0
                then
                    Break
                end
            until 0118:  actor $PLAYER_ACTOR dead
            repeat
                wait 0
                if
                    8039: not 30@ == 0
                then
                    Break
                end
            until 8118:  not actor $PLAYER_ACTOR dead
            0AC8: 29@ = allocate_memory_size 128
            0AF4: 29@ = read_string_from_ini_file "cleo\crnickcol.ini" section "Settings" key "Color"
            0AF9: samp say_msg "/%s" 29@
            0AC9: 29@ 
        end 
    end
    while 30@ == 2
        wait 0
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        0AF9: samp say_msg "/tomato"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/orange"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/yellow"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/green"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/lightblue"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/navy"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/indigo"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
    end
end
 
:onoff
if or
    30@ == 0
    30@ == 2
then
    30@ = 1
    0ACD: show_text_highpriority "~W~Auto Color ~R~OFF" time 1500
else
    30@ = 0
    0ACD: show_text_highpriority "~W~Auto Color ~G~ON" time 1500
end
0B43: samp cmd_ret
 
:rainbow
if or
    30@ == 0
    30@ == 1
then
    30@ = 2
    0ACD: show_text_highpriority "~W~Auto Color ~Y~RAINBOW" time 1500
else
    30@ = 1
    0ACD: show_text_highpriority "~W~Auto Color ~R~OFF" time 1500
end
0B43: samp cmd_ret
 

Вложения

  • crnickcol.zip
    7.1 KB · Просмотры: 196
  • Нравится
Реакции: MAHEKEH

ruslan4ik1996

Новичок
2
0
Меняет цвет ника на указанный в конфиге прямо при входе в игру и после каждой смерти.
Также есть режим радуги, который постоянно и поочерёдно меняет ваш цвет ника на все 7 цветов радуги.

/clist - выключить/включить скрипт (при загрузке автоматически включен)
/rainbow - режим радуги

PHP:
{$CLEO .cs}
0662: NOP "======= .:. ================ .:. ======"
0662: NOP "= gcode .:. Crime Nick Color .:. 2013 ="
0662: NOP "======= .:. ================ .:. ======"
thread "crnickcol"
if
    8AF7: get_samp_base_to 33@
then
    0A93: end_custom_thread
end
repeat
    wait 400
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "clist" to_label @onoff
0B34: samp register_client_command "rainbow" to_label @rainbow
wait 3000
repeat
    wait 750
    0AF9: samp say_msg "/mn"
    wait 750
    0B4E: samp 28@ = get_current_dialog_id
until 28@ == 195
0B47: samp close_current_dialog_with_button 0
0ACD: show_text_highpriority "~W~Auto Color ~G~ON" time 1500
0AF8: samp add_message_to_chat "{EAEAEA}Для {e86c7c}acheats.ru {EAEAEA}и {e86c7c}blasthack.net" 0xe86c7c

while true
    wait 0
    if
        30@ == 0
    then
        0AC8: 29@ = allocate_memory_size 128
        0AF4: 29@ = read_string_from_ini_file "cleo\crnickcol.ini" section "Settings" key "Color"
        0AF9: samp say_msg "/%s" 29@
        0AC9: 29@
        while 30@ == 0
            wait 0
            repeat
                wait 0
                if
                    8039: not 30@ == 0
                then
                    Break
                end
            until 0118:  actor $PLAYER_ACTOR dead
            repeat
                wait 0
                if
                    8039: not 30@ == 0
                then
                    Break
                end
            until 8118:  not actor $PLAYER_ACTOR dead
            0AC8: 29@ = allocate_memory_size 128
            0AF4: 29@ = read_string_from_ini_file "cleo\crnickcol.ini" section "Settings" key "Color"
            0AF9: samp say_msg "/%s" 29@
            0AC9: 29@
        end
    end
    while 30@ == 2
        wait 0
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        0AF9: samp say_msg "/tomato"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/orange"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/yellow"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/green"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/lightblue"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/navy"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
        0AF9: samp say_msg "/indigo"
        if or
            8039: not 30@ == 2
            0B21:  samp is_chat_opened
        then
            Break
        end
        wait 2000
    end
end

:onoff
if or
    30@ == 0
    30@ == 2
then
    30@ = 1
    0ACD: show_text_highpriority "~W~Auto Color ~R~OFF" time 1500
else
    30@ = 0
    0ACD: show_text_highpriority "~W~Auto Color ~G~ON" time 1500
end
0B43: samp cmd_ret

:rainbow
if or
    30@ == 0
    30@ == 1
then
    30@ = 2
    0ACD: show_text_highpriority "~W~Auto Color ~Y~RAINBOW" time 1500
else
    30@ = 1
    0ACD: show_text_highpriority "~W~Auto Color ~R~OFF" time 1500
end
0B43: samp cmd_ret
помоги как настроить ?
 
Статус
В этой теме нельзя размещать новые ответы.