:extp //for create dialog///
0AC6: 1@ = label @extext //edit this with your text hex// offset
0B3B: samp show_dialog id 1000 //you can edit this id like 900,100 etc etc// caption "EXAMPLE"//you can edit this// text 1@ button_1 "OK" //you can edit this// button_2 "CANCEL" //you can edit this// s.tyle 2 //wrote it without ., you can edit this too. if you write 1 to this it will create a dialog option with enterable value and 2 for normal dialog etc etc//
0B43: samp cmd_ret
:extext
HEX
"extext1" A ///you can put infinite text here//
"extext2" 0
END
while true
wait 0
IF //this will do action if you click ok with selected item//
0B3C: samp is_dialog_responded id 1000 //it must be same as show_dialog// button 2@ ///this is our ok button// list_item 3@ ///this will check our selected item/// input_text 0
THEN
IF AND
2@ == 1 //check for if we clicked ok button//
3@ == 0 //check for selected item id 0 is extext1//
THEN
// DO YOUR ACTION HERE
END
IF AND
2@ == 1 //as i say this is check for ok button//
3@ == 1 //check for selected item id 1 is extext2
//DO YOUR ACTION HERE
END
END //CLOSE RESPONSE
END //CLOSE WHILE TRUE