Вот смотри.Весь код сюда.
Код:
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
:Noname_2
wait 400
0AFA: is_samp_available
else_jump @Noname_2
0AF8: samp add_message_to_chat "{DD033C}вапва." color 12834622
0AF8: samp add_message_to_chat "{DD033C}вапва." color 12834622
0AF8: samp add_message_to_chat "{FFFFFF}вапвапп." color 12834622
0B34: samp register_client_command "asd" to_label @Noname_445
0B34: samp register_client_command "cxcad" to_label @Noname_1238
0B34: samp register_client_command "sovbr" to_label @Noname_1395
0B34: samp register_client_command "hvbk" to_label @Noname_1063
:kish
repeat
wait 0
0AB0: key_pressed 50
until 0B21: samp is_chat_opened // проверка если чат открыт
0B76: samp set_chat_input_text "qwe" // если чат открыт, вводим туда "text"
jump @kish
:lola
wait 0
if and
0AB0: key_pressed 17
0C89: key_just_pressed 101
then
0B79: samp set_chat_input_enabled 1
0B76: samp set_chat_input_text "/h "
end
:rekl
wait 0
if and
0AB0: key_down 17
0C89: key_just_pressed 190
else_jump @aszx
0B35: samp 0@ = get_last_command_params
wait 0
0AD4: 0@ = scan_string 0@ format "%d" 1@
else_jump @baba
if
0B23: samp is_player_connected 1@
else_jump @nana
0AF9: samp say_msg "/accept ad %d" 1@
jump @nmas
:nana
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:nmas
jump @aszx
:baba
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:aszx
jump @rekl
0BDE: pause_thread 0
:Noname_341
0B35: samp 0@ = get_last_command_params
0C1A: 1@ = atoi 0@
if and
1@ >= 0
not 1@ > 1000
else_jump @Noname_428
0AC6: 0@ = label @Noname_430 offset
0AC6: 1@ = label @Noname_3075 offset
0B3B: samp show_dialog id 45 caption 0@ text 1@ button_1 "Закрыть" button_2 "" style 0
0AC9: free_allocated_memory 0@
:Noname_428
0B43: samp cmd_ret
:Noname_430
hex
"{FFFFFF}Помощь:" 00
end
:Noname_445
0B35: samp 0@ = get_last_command_params
if
0AD4: 0@ = scan_string 0@ format "%d" 1@
else_jump @Noname_564
if
0B23: samp is_player_connected 1@
else_jump @Noname_521
0AF9: samp say_msg "/accept ad %d" 1@
jump @Noname_557
:Noname_521
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:Noname_557
jump @Noname_600
:Noname_564
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:Noname_600
0B43: samp cmd_ret
:Noname_602
0B35: samp 0@ = get_last_command_params
if
0AD4: 0@ = scan_string 0@ format "%d" 1@
else_jump @Noname_807
if
0B23: samp is_player_connected 1@
else_jump @Noname_764
0AF9: samp say_msg "/sdfswe" 1@
jump @Noname_800
:Noname_764
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:Noname_800
jump @Noname_600
:Noname_807
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
0B43: samp cmd_ret
:Noname_845
0B35: samp 0@ = get_last_command_params
if
0AD4: 0@ = scan_string 0@ format "%d" 1@
else_jump @Noname_1025
if
0B23: samp is_player_connected 1@
else_jump @Noname_982
0AF9: samp say_msg "/qweqcxcs" 1@
jump @Noname_1018
:Noname_982
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:Noname_1018
jump @Noname_1061
:Noname_1025
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:Noname_1061
0B43: samp cmd_ret
:Noname_1063
0B35: samp 0@ = get_last_command_params
if
0AD4: 0@ = scan_string 0@ format "%d" 1@
else_jump @Noname_1200
if
0B23: samp is_player_connected 1@
else_jump @Noname_1157
0AF9: samp say_msg "/werwer" 1@
jump @Noname_1193
:Noname_1157
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:Noname_1193
jump @Noname_1236
:Noname_1200
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:Noname_1236
0B43: samp cmd_ret
:hmat
0B35: samp 0@ = get_last_command_params
if
0AD4: 0@ = scan_string 0@ format "%d" 1@
else_jump @yara
if
0B23: samp is_player_connected 1@
else_jump @yero
0AF9: samp say_msg "/sdfsdf" 1@
jump @yuio
:yero
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:yuio
jump @ytre
:yara
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:ytre
0B43: samp cmd_ret
Вот этот момент...
Код:
:kish
repeat
wait 0
0AB0: key_pressed 50
until 0B21: samp is_chat_opened // проверка если чат открыт
0B76: samp set_chat_input_text "qwe" // если чат открыт, вводим туда "text"
jump @kish
:lola
wait 0
if and
0AB0: key_pressed 17
0C89: key_just_pressed 101
then
0B79: samp set_chat_input_enabled 1
0B76: samp set_chat_input_text "/h "
end
:rekl
wait 0
if and
0AB0: key_down 17
0C89: key_just_pressed 190
else_jump @aszx
0B35: samp 0@ = get_last_command_params
wait 0
0AD4: 0@ = scan_string 0@ format "%d" 1@
else_jump @baba
if
0B23: samp is_player_connected 1@
else_jump @nana
0AF9: samp say_msg "/accept ad %d" 1@
jump @nmas
:nana
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:nmas
jump @aszx
:baba
0AF8: samp add_message_to_chat "Ошибка. Введите ID игрока!" color 52479
:aszx
jump @rekl
Последнее редактирование: