What's wrong here?
I want when i type /ca to be typed /su id, after that will be showed a dialog by the server and i want to select item 7 than pressing button 1.
Code:
:cmd_66
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
0B36: samp 1@ = get_player_nickname 21@
0AF9: samp say_msg "/su %s" 1@
else
print "~y~/ca <id>" 2000 //cop attack = 7 listitem
end
wait 30
if
SAMP.Available
else_jump @cmd_66
while true
wait 0
wait 1000
0B4E: samp 1@ = get_current_dialog_id
if
0B4C: samp is_dialog_active 1@
then
0B49: samp set_current_dialog_list_item 7
0B47: samp close_current_dialog_with_button 1
end
end
SAMP.CmdRet()
I want when i type /ca to be typed /su id, after that will be showed a dialog by the server and i want to select item 7 than pressing button 1.