local hook = require 'lib.samp.events'
function main()
wait(-1)
end
function hook.onSendCommand(SendChatCommand)
if SendChatCommand:match("^/[Bb][Aa][Nn]%s%d+") then
local id = SendChatCommand:match("^/[Bb][Aa][Nn]%s(%d+)")
if sampIsPlayerConnected(tonumber(id)) then
lua_thread.create(function() wait(700) callFunction(getModuleHandle("samp.dll") + 0x70FC0, 0, 0) end) -- делаем скрин. Делать это надо перед return
return {"/ban "..id.." 30 Cheat"}
end
end
end