- 36
- 2
- Версия SA-MP
-
- Другая
Lua:
-- Flood setmark
sampRegisterChatCommand('msm', msm)
msm = false
local thread = lua_thread.create(sampmsm)
-- Flood setmark
function msm()
msm = not msm
if msm then
sampAddChatMessage("вкл", -1)
else
sampAddChatMessage("выкл", -1)
end
end
function sampmsm()
while true do
wait(2000)
if msm then
sampSendChat("/setmark")
end
end
end