timer.Simple( 30, function()
DarkRP.addPhrase('en', 'do')
DarkRP.removeChatCommand("do")
local function PlayerNonRpChat(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
DarkRP.talkToRange(ply, Color(255, 178, 75) .. "[/do] " .. text, ply:Nick())
--DarkRP.talkToRange(ply, "(" .. DarkRP.getPhrase("do") .. ") " .. ply:Nick(), text, 250)
end
return args, DoSay
end
DarkRP.declareChatCommand{
command = "do",
description = "Advertise something to everyone in the server.",
delay = 1.5
}
if SERVER then
DarkRP.defineChatCommand("do", PlayerNonRpChat, 1.5)
end
end)