1. Reneb submitted a new resource:

    Spawns Database - Spawns database plugin for external plugins

    Read more about this resource...
     
  2. Do you know why I am getting this error when i try to use this pluggin on my server?


    [Oxide] 6:51 AM [Error] Spawns plugin failed to compile!
    [Oxide] 6:51 AM [Error] Spawns.cs(243,28): error CS0246: The type or namespace name `NetUser' could not be found. Are you missing an assembly reference?
     
  3. This is for legacy
     
  4. Code:
    function PLUGIN:Init()
    command.AddChatCommand("dj",  self.Plugin, "join")
        self:LoadDefaultConfig()
    local pluginList = plugins.GetAll()
        for i = 0, pluginList.Length - 1 do
            local pluginTitle = pluginList.Object.Title
            if pluginTitle == "Spawns Database" then
                spawnsplugin = pluginList.Object
                print ("Spawns load")
                break
            end
        end
    end
    Code:
    function PLUGIN:join(netuser)
    local spawnpoint, err = spawnsplugin:GetRandomSpawn(dm)
    if(not spawnpoint) then print(err) return end
    player.lastKnownPosition.x = spawnpoint.x
    player.lastKnownPosition.y = spawnpoint.y
    player.lastKnownPosition.z = spawnpoint.z
    end
    Code:
    [Oxide] 5:36 PM [Error] Failed to call hook 'join' on plugin 'RANDMM DM Arena'
    File: dm_arena.lua Line: 56 attempt to call method 'GetRandomSpawn' (a string va
    lue):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unkn
    own>: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 (ob
    ject,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke
    Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
    ization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Jun 1, 2015
  5. what program to open this plugin?