Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. local vkeys = require('vkeys')
  2. local sampev = require('lib.samp.events')
  3.  
  4. function main()
  5. repeat wait(0) until isSampAvailable()
  6.  
  7. sampRegisterChatCommand("rn", function(param)
  8. local id, text = param:match('(%d+) (.+)')
  9. if id and text then
  10. sampSendChat('/an '..id..' '..text)
  11. sampSendChat('/com '..id)
  12. end
  13. end)
  14.  
  15. while true do wait(0)
  16. if testCheat("1") then sampSendChat("/usedrugs4") end
  17. if testCheat("3") then sampSendChat("/obisk") end
  18. if testCheat("4") then sampSendChat("/usemed") end
  19. if testCheat("M") and isKeyDown(18) then sampProcessChatInput("/q") end
  20. end
  21. end
  22.  
  23. function sampev.onServerMessage(color, text)
  24. if text:find("уворачивается от удара") then return false end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement