HowEnCokkien
Well-known member
- Joined
- Jul 9, 2017
- Messages
- 307
- Reaction score
- 11
Code:
WHILE TRUE
:RANDOM_DIALOG
wait 0
0AC6: 1@ = label @DIALOG_TEXT offset
0B3B: samp show_dialog id 2 caption "{A3E900}RANDOM_DIALOG" text 1@ button_1 "OK" button_2 "CANCEL" style 2
SAMP.CmdRet()
:DIALOG_TEXT
HEX
"RANDOM" A
"RANDOM2 0
END
:RANDOM1
wait 0
IF
0B3C: samp is_dialog_responded id 2 button 1@ list_item 3@ input_text 0
THEN
CALL @RANDOM_ACTION1
END
:RANDOM2
wait 0
IF
0B3C: samp is_dialog_responded id 2 button 2@ list_item 3@ input_text 0
THEN
CALL @RANDOM_ACTION2
END