Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. local hook = require 'lib.samp.events'
  2.  
  3. function main()
  4. while not isSampAvailable() do wait(0) end
  5. while true do
  6. wait(0)
  7. local _, id = sampGetPlayerIdByCharHandle(playerPed)
  8. end
  9. end
  10. function hook.onShowDialog(dialogId, dialogStyle, dialogTitle, okButtonText, cancelButtonText, dialogText)
  11. if dialogText:find('Налог')then
  12. local nalog = text:match("Налог: (.+) / 40 000")
  13. sampAddChatMessage(string.format('налог %s', nalog), -1)
  14. end
  15. car = storeCarCharIsInNoSave(playerPed)
  16. _, idcara = sampGetVehicleIdByCarHandle(car)
  17. if dialogId == 162 and dialogText:find(idcara) then
  18. sampSendChat("/carpass "..id..idcara)
  19. end
  20. end
  21. function hook.onServerMessage(color, text)
  22. if text:find("{DC4747}Для управления поворотниками") then
  23. sampSendChat("/cars")
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement