Advertisement
ginsane

Untitled

Jan 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local badcodes = {
  2. "while",
  3. "nil",
  4. "cam",
  5. "collectgarbage",
  6. "file"
  7. }
  8. local function check4shit(str)
  9. for k, badcode in ipairs(badcodes) do
  10. if string.Find(str, badcode) then return true end
  11. end
  12.  
  13. return false
  14.  
  15. end
  16.  
  17.  
  18. if (source == "luacmd") then
  19. if check4shit(script) then
  20. MsgC(Color(0, 255, 255), "[ScriptHook] ", Color(255, 255, 255), "Blocked shitty code from server: ", Color(255,0,0), script)
  21. return false
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement