Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
local samp = require 'samp.events'
function main()
sampRegisterChatCommand('cmd', function() active = not active end)
wait(-1)
end
function samp.onServerMessage(color, text)
if active then
--code
--Допустим, print(text)
end
end
local samp = require 'samp.events'
function main()
sampRegisterChatCommand('cmd', function() active = not active end)
wait(-1)
end
function samp.onServerMessage(color, text)
if active then
--code
--Допустим, print(text)
end
end