- 2,696
- 1,468
:( смотрел пример в папке? там работает все на ура
Как-то криво получается, создать таймер... ай да ладно
Хоть и так.
Код:
{$CLEO}
{$O inc/mgf_opcodes.ini}
const
TIME_FLOOD = 2250
end
thread 'legend2360'
0662: "by legend2360"
0662: "BlastHack - cheating is art"
if 8AF7: get_samp_base_to 33@
then 0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available
0D96: 1@ = timer_every TIME_FLOOD ms callback_to_label @timer_callback active true
0D97: timer 1@ set_active 0
reg_cmd "fedit" @cmd
while true
wait 0
end
:cmd
0@++
if 0@ > 1
then 0@ = 0
end
if 0@ <> 0
then
0B35: samp 2@ = get_last_command_params
chat "Тэг: {FFFF00}%s" 0xFFFFFF 2@
end
0D97: timer 1@ set_active 0@
SAMP.CmdRet()
:timer_callback
if and
not SAMP.ChatInputOpened()
not SAMP.IsDialogActive(-1)
then
say "/edit"
wait 300
if SAMP.IsDialogActive(224)
then 0B4B: samp set_current_dialog_editbox_text 2@
end
end
0D98: callback_retn
Код:
{$CLEO}
{$O inc/mgf_opcodes.ini}
const
TIME_FLOOD = 2250
end
thread 'legend2360'
0662: "by legend2360"
0662: "BlastHack - cheating is art"
if 8AF7: get_samp_base_to 33@
then 0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available
0D96: 1@ = timer_every TIME_FLOOD ms callback_to_label @timer_callback active false
reg_cmd "fedit" @cmd
while true
wait 0
end
:cmd
0@++
if 0@ > 1
then 0@ = 0
end
if 0@ <> 0
then
0B35: samp 2@ = get_last_command_params
chat "Тэг: {FFFF00}%s" 0xFFFFFF 2@
end
0D97: timer 1@ set_active 0@
SAMP.CmdRet()
:timer_callback
if and
not SAMP.ChatInputOpened()
not SAMP.IsDialogActive(-1)
then
say "/edit"
wait 300
if SAMP.IsDialogActive(224)
then 0B4B: samp set_current_dialog_editbox_text 2@
end
end
0D98: callback_retn