local findtext = 'Benjamin_Shtorm'
state = true
local ev = require "lib.samp.events"
function main()
sampRegisterChatCommand('textscreen', function()
if state then
state = false
printStringNow('~r~TextScreen OFF', 1500)
elseif not state then
state = true
printStringNow('~g~TextScreen ON', 1500)
end
end)
wait(-1)
end
function ev.onServerMessage(color, text)
if text:find(findtext) and state then
lua_thread.create(function()
setVirtualKeyDown(119, true)
wait(10)
setVirtualKeyDown(119, false)
end)
else return
end
end