Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. function main()
  2. repeat wait(0) until isSampAvailable()
  3. wait(2000)
  4. sampRegisterChatCommand('dialog4', dialog)
  5. sampAddChatMessage('Loaded', -1)
  6. while true do
  7. wait(0)
  8. end
  9. end
  10.  
  11. function dialog()
  12. sampShowDialog(666, '{FF5656}Boost Kills for Monser', '1 maps\n2 maps\n3 maps', 'Open', '', 2)
  13. lua_thread.create(checker)
  14. end
  15.  
  16. function checker()
  17. while true do wait(0)
  18. if sampIsDialogActive() then
  19. local result, button, list, input = sampHasDialogRespond(666)
  20. if result and list == 0 then
  21. setCharCoordinates(playerPed,-446.9899,2262.2036,44.1329)
  22. elseif refult and list == 1 then
  23. setCharCoordinates(playerPed,0,0,0)
  24. elseif refult and list == 2 then
  25. setCharCoordinates(playerPed,90,60,90)
  26. end
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement