Hey Reneb, when using this plugin, everything works really well except when I use a hidden name with a space in it. For instance, like someone mentioned above, if you use the default name "SERVER CONSOLE," when you try to type as "SERVER CONSOLE," your chat shows up as "SERVER:CONSOLE" and none of the content of your message actually shows up. It cuts it off at the space in the name.
EDIT: I fooled around with it a bit and the only thing needed to fix this bug is to change line 51 from:
toCode:global.ConsoleNetworker.Broadcast("chat.add "..name.." "..rust.QuoteSafe(msg).."")
Just adding the rust.QuoteSafe around the name portion as well as the message does the trick.Code:global.ConsoleNetworker.Broadcast("chat.add "..rust.QuoteSafe(name).." "..rust.QuoteSafe(msg).."")
Admin <-> Player (God Mode) [Unmaintained]
Discussion in 'Plugin Support' started by Reneb, May 20, 2014.
-
Attached Files:
Last edited by a moderator: May 17, 2015 -
-
One quick question...
How do I enable messages to the other players when they shoot me....i.e. "Stop shooting at me, I'm in Godmode!!" Right now, the admins only see when someone does dmg to them. -
-
i have oxide 2.0 wich doesnt have the option to install oxmin. what should i do to give myself permision anyway??
-
oxide.grant user YOURSTEAMID admin
-
Will be there an Version for RUST Experimental?
-
there is no invisible gear in rust experimental
and you have personnal god mode with: god true
in the console. -
I don't use godmode
I ask for an version for Rust Exp., regarding another plugin (AdminReports). I'll work with the reports, but other Players should not see, who the admin is.
-
Whenever I get hurt and then after I try to use /admin, I get this error on the inventory functions (ClearInventory, SaveInventory, RestoreInventory, AdminGear):
Code:attempt to call method 'GetComponent' (a string value):
http://oxidemod.org/threads/attempt-to-call-method-getcomponent-a-string-value.1731/
Can you fix it, Reneb? -
Code:
Line: 15 attempt to index field 'Inventory+Slot+Kind' (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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPlugin.Load () [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPluginLoader.Load (System.String directory, System.String name) [0x00000] in <filename unknown>:0 at Oxide.Core.OxideMod.LoadPlugin (System.String name) [0x00000] in <filename unknown>:0
-
Hey,
Can you help me About this
Code:10:12 PM [Error] Failed to load plugin admin-player File: admin-player.lua Line: 17 attempt to index field 'Inventory+Slot+Kind' (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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPlugin.Load () [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPluginLoader.Load (System.String directory, System.String name) [0x00000] in <filename unknown>:0 at Oxide.Core.OxideMod.LoadPlugin (System.String name) [0x00000] in <filename unknown>:0
Last edited by a moderator: Jul 3, 2015 -
Wulf Community Admin
-
hi i am having this error every time a player send a global message please help.
Code:9:44 PM [Error] Failed to call hook 'OnPlayerChat' on plugin 'admin-player v2.0.1' File: admin-player.lua Line: 49 attempt to index field 'Admin' (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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
Last edited by a moderator: Dec 21, 2015 -
Wulf Community Admin
-
-
Wulf Community Admin
Last edited: Dec 21, 2015 -
negative, have tried re-downloading again and deleting files to try again and still the same error.
line 49 that i assume error refers to is ,
function PLUGIN:OnPlayerChat(netuser,msg)
if (msg:sub( 1, 1 ) ~= "/") then
local userID = rust.UserIDFromPlayer(netuser)
if(self.Admin[userID] and self.Admin[userID].hideName) then
name = self.Admin[userID].AdminName
global.ConsoleNetworker.Broadcast("chat.add "..name.." "..rust.QuoteSafe(msg).."")
return true
end
end
end -
Wulf Community Admin
-
thanks for your time, must have been a loading issue.