1. 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:
    Code:
    global.ConsoleNetworker.Broadcast("chat.add "..name.." "..rust.QuoteSafe(msg).."")
    to
    Code:
    global.ConsoleNetworker.Broadcast("chat.add "..rust.QuoteSafe(name).." "..rust.QuoteSafe(msg).."")
    Just adding the rust.QuoteSafe around the name portion as well as the message does the trick.
     

    Attached Files:

    Last edited by a moderator: May 17, 2015
  2. 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.
     
  3. That sounds like it would be tricky to get done. It would have to be coded very specifically--it would have to recognize when you're in GodMode, then it would have to measure damage you or your other admins take that is being mitigated or nullified and it would have to find whomever did the damage and send them a notification. It could potentially cause some lag also.
     
  4. i have oxide 2.0 wich doesnt have the option to install oxmin. what should i do to give myself permision anyway??
     
  5. oxide.grant user YOURSTEAMID admin
     
  6. Will be there an Version for RUST Experimental?
     
  7. there is no invisible gear in rust experimental ;)
    and you have personnal god mode with: god true
    in the console.
     
  8. I don't use godmode :D 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.
     
  9. 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):
    The line varies... I saw that this error was occurring on previous versions of the Oxide (under 2.0), and then got fixed:
    http://oxidemod.org/threads/attempt-to-call-method-getcomponent-a-string-value.1731/

    Can you fix it, Reneb?
     
  10. 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 
    
    Getting this error after the last Oxide update (2.0.1104).
     
  11. 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
    I m using latest version of oxide Ty
     
    Last edited by a moderator: Jul 3, 2015
  12. @Wulf @Mughisi probably changed the way some stuff are called from lua, as i can't code for the moment, you will need to ask them ^^
     
  13. Wulf

    Wulf Community Admin

    Nothing changed that would affect this that I am aware of.
     
  14. 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
  15. Wulf

    Wulf Community Admin

    It sounds like you're trying to use this plugin with Hurtworld, which it isn't made for. This plugin is for Rust Legacy as the title suggests.
     
  16. I am using it with rust legacy, Not that stupid .
     
  17. Wulf

    Wulf Community Admin

    Did you edit the plugin manually at all? It looks like an issue with the oxide/data file for the plugin.
     
    Last edited: Dec 21, 2015
  18. 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
     
  19. Wulf

    Wulf Community Admin

    Try uploading the plugin, then deleting the oxide/data file for the plugin, then load the plugin again.
     
  20. thanks for your time, must have been a loading issue.