Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local vkeys = require('vkeys')
- local sampev = require('lib.samp.events')
- function main()
- repeat wait(0) until isSampAvailable()
- sampRegisterChatCommand("rn", function(param)
- local id, text = param:match('(%d+) (.+)')
- if id and text then
- sampSendChat('/an '..id..' '..text)
- sampSendChat('/com '..id)
- end
- end)
- while true do wait(0)
- if testCheat("1") then sampSendChat("/usedrugs4") end
- if testCheat("3") then sampSendChat("/obisk") end
- if testCheat("4") then sampSendChat("/usemed") end
- if testCheat("M") and isKeyDown(18) then sampProcessChatInput("/q") end
- end
- end
- function sampev.onServerMessage(color, text)
- if text:find("уворачивается от удара") then return false end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement