Ar fi mai rapid daca ai pune ca pe tastele 1-6 sa poti selecta linia din dialog si astfel nu e voie sa apesi click pe linie. Aici un mic snippet
if SAMP.IsDialogActive(2305)
then
for 0@ = 49 to 54 //number row
if 0C89: key_just_pressed 0@
then
0085: 1@ = 0@
1@ -= 49
0B49: samp set_current_dialog_list_item 1@
wait 150
0B47: samp close_current_dialog_with_button 1
end
end
for 0@ = 97 to 102 //numpad numbers
if 0C89: key_just_pressed 0@
then
0085: 1@ = 0@
1@ -= 97
0B49: samp set_current_dialog_list_item 1@
wait 150
0B47: samp close_current_dialog_with_button 1
end
end
end
P.S.
Si nu e nevoie de ret 0 intr-un label offset!
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.