Advertisement
Guest User

ok

a guest
Oct 21st, 2018
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. {$CLEO .cs}
  2.  
  3. 0662: "NAA"
  4. thread "NAA"
  5.  
  6. wait 2500
  7.  
  8.  
  9. //================================================= CMDS ==================================================
  10. 0B34: samp register_client_command "test" to_label @dialog
  11. //============================================================================================================
  12.  
  13.  
  14. chatmsg "{bfff00}Mod created by: {0080ff}NAA" -1
  15. chatmsg "{bfff00}Command: {FFFFFF}/test" -1
  16.  
  17. while true
  18. wait 0
  19.  
  20. if
  21. 0B3C: samp is_dialog_responded id 1000 button 2@ list_item 3@ input_text 0
  22. then
  23. if and
  24. 2@ == 1 // pressed
  25. 3@ == 0 // first list item
  26. then
  27. chatmsg "It`s just an test! --- first" -1
  28. end
  29.  
  30. if and
  31. 2@ == 1 // pressed
  32. 3@ == 1 // second list item
  33. then
  34. chatmsg "It`s just an testtttt! --- Second" -1
  35. end
  36. end
  37.  
  38. end
  39.  
  40. //=========================================== EXECUTING CMDS ==============================================
  41. :dialog
  42. 0AC6: 0@ = label @dialog_hex offset
  43. 0B3B: samp show_dialog id 1000 caption "Dialog Test Title " text 0@ button_1 "Select" button_2 "Exit" style 2
  44. SAMP.CmdRet()
  45. //============================================================================================================
  46.  
  47. :dialog_hex
  48. HEX
  49. "Test 1" A // "A" is an color
  50. "Test 2" A // "A" is an color
  51. "Test 3" A // "A" is an color
  52. "Test 4" 0 // "0" is end text
  53. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement