-
Автор темы
- #1
C++:
local ui_get = ui.get
local console_cmd = client.exec
local ui_new_checkbox = ui.new_checkbox
local fudu = ui_new_checkbox("LUA", "A", "say")
local function on_player_chat(e)
if not ui_get(fudu) then return end
if e.teamonly == false then
if string.find(e.text, ";") then
print("Protected")
else
console_cmd("say "..e.text)
end
end
end
client.set_event_callback("player_chat", on_player_chat)
Последнее редактирование: