onPlayerQuit() | Действие при выходе игрока(ов)

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

Fomikus

Известный
Автор темы
Проверенный
472
341
Вообщем в самп ивентах есть onPlayerQuit()
Как чекать определенный диапазон ID на выход? (Задается командой в чат например)
и как выполнить что-либо если один из этих ID вышел
CLEO:
{$CLEO .cs}
0000: NOP
:Label000002
0001: wait 0 ms
0AFA:  is_samp_available
004D: jump_if_false @Label000002
0AF8: samp add_message_to_chat "{FFA07A}[GIVEID] Автор скрипта {32CD32}Cheat$ {FF00FF}FOR {00FFFF}BlastHack and Prime-Hack" color -1
0B34: samp register_client_command "giveid" to_label @Label0001CD
0B34: samp register_client_command "giveidp" to_label @Label0001F6

:Label00008F
0001: wait 0 ms
00D6: if
0039:   0@ == 1
004D: jump_if_false @Label0001C6
0B35: samp 1@ = get_last_command_params
00D6: if
0AD4: 2@ = scan_string 1@ format "%d %d" 5@ 6@
004D: jump_if_false @Label0001A4

:Label0000CB
0001: wait 0 ms
0085: 7@ = 5@ // (int)

:Label0000D7
00D6: if
0B23:  samp is_player_connected 7@
004D: jump_if_false @Label000105
0001: wait 0 ms
0ACD: show_text_highpriority "~g~Working..." time 100
0002: jump @Label000179

:Label000105
0B28: samp disconnect_with_reason 0
0001: wait 100 ms
0B27: samp set_gamestate 1
0ACD: show_text_highpriority "~g~Reconnect..." time 3000

:Label000127
0001: wait 0 ms
0006: 12@ = 0

:Label000132
00D6: if
0B4C:  samp is_dialog_active 12@
004D: jump_if_false @Label000155
0BC9: samp send_dialog_response dialog 12@ button 1 listitem 0 input 11@
0006: 0@ = 0

:Label000155
000A: 12@ += 1
0019:   12@ > 30000
004D: jump_if_false @Label000132
0039:   0@ == 0
004D: jump_if_false @Label000127

:Label000179
000A: 7@ += 1
001D:   7@ > 6@ // (int)
004D: jump_if_false @Label0000D7
0039:   0@ == 0
004D: jump_if_false @Label0000CB
0002: jump @Label0001C6

:Label0001A4
0006: 0@ = 0
0AF8: samp add_message_to_chat "/giveid [от] [до]" color 13553358

:Label0001C6
0002: jump @Label00008F

:Label0001CD
00D6: if
0039:   0@ == 1
004D: jump_if_false @Label0001ED
0006: 0@ = 0
0002: jump @Label0001F4

:Label0001ED
0006: 0@ = 1

:Label0001F4
0B43: samp cmd_ret

:Label0001F6
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 256
0AD3: 11@ = format "%s" 10@
0AD1: show_formatted_text_highpriority "~g~%s" time 2000 11@
0B43: samp cmd_ret
 
Статус
В этой теме нельзя размещать новые ответы.