LaserHydra submitted a new resource:
Better Say Command - Customize the Say console command output as you want
Read more about this resource...
BetterSay
Moved
Total Downloads: 5,081 - First Release: Apr 30, 2015 - Last Update: May 13, 2018
- 5/5, 14 likes
-
Wulf Community Admin
Plugin approved with a conditional: http://oxidemod.org/threads/catching-console-commands-lua.8077/page-2#post-83781
Also make sure to make the Title match your resource's title here. -
LaserHydra updated Better Say Command with a new update entry:
cleanup, fixes and stuff
-
LaserHydra updated Better Say Command with a new update entry:
again fixes!
-
Wulf Community Admin
You should actually add a few more checks in as well to prevent errors on server startup.
Code:function PLUGIN:OnRunCommand(arg) if not arg then return end if not arg.cmd then return end if not arg.cmd.namefull then return end if arg.cmd.namefull == "global.say" then local prefix = "<size=" .. self.Config.PrefixSize .. ">" .. "<color=" .. self.Config.PrefixColor .. ">" .. self.Config.Prefix .. "</color>" .. "</size>" local oldMessage = arg:GetString(0, "text") local newMessage = "<size=" .. self.Config.TextSize .. ">" .."<color=" .. self.Config.TextColor .. ">" .. oldMessage .. "</color>" .. "</size>" rust.BroadcastChat(prefix, newMessage) print(self.Config.Prefix .. ": " .. oldMessage) return false end end
-
Don´t work for me, when i write some text it only shows the first word.
-
Wulf Community Admin
-
i get this error :
Code:[5/2/2015 1:34:45 PM] [Oxide] 1:34 PM [Error] Failed to call hook 'OnRunCommand' on plugin 'Better Say' File: bettersay.lua Line: 20 attempt to index field 'cmd' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
Guys, is it possible to implement the announcement from the administrator on the center of the screen as it could have been done in old rust legacy?
-
-
LaserHydra updated Better Say Command with a new update entry:
fixed error
-
Wulf Community Admin
-
Any player can use this command in console. Please fix
-
@Wulf I got a question. Could you open a Conversation with me please? Thanks. Its just a small thing.
-
LaserHydra updated Better Say Command with a new update entry:
fix
-
I think theres a issue somewhere in this, using rusty for console chat (will test the regular console on my box) I have to either TypeLikeThis or Type_like_this for it to be sent through, any spaces only the first word gets sent, I'll test console in am inute
-
or use the website version of rusty, that one does it automaticly.
http://tools.bbtracker.net/ -
-
LaserHydra updated Better Say Command with a new update entry:
blocks empty messages now