Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local badcodes = {
- "while",
- "nil",
- "cam",
- "collectgarbage",
- "file"
- }
- local function check4shit(str)
- for k, badcode in ipairs(badcodes) do
- if string.Find(str, badcode) then return true end
- end
- return false
- end
- if (source == "luacmd") then
- if check4shit(script) then
- MsgC(Color(0, 255, 255), "[ScriptHook] ", Color(255, 255, 255), "Blocked shitty code from server: ", Color(255,0,0), script)
- return false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement