Lua:
local function Me(ply, args)
if args == "" then
DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "argument", ""))
return ""
end
local DoSay = function(text)
if text == "" then
DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "argument", ""))
return ""
end
if GAMEMODE.Config.alltalk then
local col = team.GetColor(ply:Team())
local name = ply:Nick()
for _, target in ipairs(player.GetAll(N)) do
DarkRP.talkToPerson(target, col, name .. " " .. text)
end
else
DarkRP.talkToRange(" " .. text, "" .. ply:Nick(), GAMEMODE.Config.meDistance, ply)
end
end
return args, DoSay
end
DarkRP.defineChatCommand("me", Me, 1.5)о
/me three hundred bucks
three hundred bucks Данжен Мастер
А получается:
/me three hundred bucks
three hundred bucks: Данжен Мастер
Я в lua новичок, помогите