Running Man

Plugin Runnung Man

Total Downloads: 3,845 - First Release: Jan 16, 2015 - Last Update: Mar 4, 2018

4.9/5, 20 likes
  1. at the moment, I haven't test server to test plugins.
     
  2. added you to steam you can use my server as a test server. i can also spawn in another 1 just for testing. i have active users to. Smokedatmarijuana is me.

    -pookie
     
  3. hm i can not get the timer to start the event over 30 no matter what i add to the config it just stays 30
     
  4. Can i add more Rewards ?
    And is it work if i am set the Timer to 0 ?
    Code:
    [5/9/2015 10:25:53 PM] [Oxide] 10:25 PM [Error] Failed to call hook 'cmdRun' on plugin 'Running'
    File: event.lua Line: 250 attempt to index upvalue 'eventpause' (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
    [5/9/2015 10:25:55 PM] [Oxide] 10:25 PM [Error] Failed to call hook 'cmdRun' on plugin 'Running'
     
  5. Code:
    [Oxide] 2:22 PM [Error] Failed to call hook 'cmdRun' on plugin 'Running' File: event.lua Line: 265 attempt to index upvalue 'eventpause' (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
    [Oxide] 2:22 PM [Error] Failed to call hook 'cmdRun' on plugin 'Running' File: event.lua Line: 265 attempt to index upvalue 'eventpause' (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
    [DOUBLEPOST=1431450966,1431429615][/DOUBLEPOST]RU
    -------------------------
    У меня вопрос.
    Ивент запускается сам практически каждые 5 минут, хотя стоят настройки по умолчанию 30/30
    Более того, бегущий человек может быть не один в одно и то же время. Т.е. плагин уже выбрал цель, но через некоторое время, он выбирает очередную цель.

    EN
    -------------------------
    I have a question.
    Event runs itself almost every 5 minutes, but the default settings are 30/30
    Moreover, the running person may not be one in the same time. Ie plug already chosen target, but after a while, he chooses another target.
    [DOUBLEPOST=1431452864][/DOUBLEPOST]Running man may be the same for 6 times in a row
     
  6. Yes :/ before i was not enough problem now it seem like you say for me too
     
  7. Calytic

    Calytic Community Admin Community Mod

    Code:
    Failed to call hook 'OnEntityDeath' on plugin 'Running'
    File: event.lua Line: 312 attempt to index field 'Initiator' (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
    After patch
     
  8. Hi solved for me idk why. Just a suggest author can you make it option true/false no tp/home when runman?
    Regard
     
  9. Code:
    [Oxide] 10:24 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Running'
    File: event.lua Line: 272 attempt to index field 'Initiator' (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 
    Getting this error
     
  10. Calytic

    Calytic Community Admin Community Mod

    Code:
            if hitinfo.Initiator == nil then
                return
            end
    Add that at the first line inside the PlayerKilled(victim,hitinfo) function
     
  11. i can't because i rent server from multiplay it has to be in an official update from the plugin developer:(
     
  12. is there a way to make it so admins don't get picked for running man?
     
  13. Calytic

    Calytic Community Admin Community Mod

    Yes, it is possible but Running Man does not currently have this feature
     
  14. ok just tired of players complaining about it not being fair because they cant kill a admin lol
     
  15. Code:
    {
      "Default": {
        "PauseeventTime": 30, // The time interval between the start(minutes)
        "On": "true", // Autostart
        "StarteventTime": 30, // How long Runners must run away(minutes)
        "authLevel": 1, // The authorization level
        "Count": 5, // Count players for autostart
        "ChatName": "EVENT" // Chat name
      },
      "Reward": { rewards
        "Reward3Amount": 15000,
        "RewardFixingAmount": 10000, //fixed reward amount
        "RewardMoney": 50000,
        "Reward1": "wood",
        "Reward2Amount": 50000,
        "Reward1Amount": 50000,
        "RewardFixing": "wood", // fixed reward
        "Reward4Amount": 15000,
        "Random": "true", // Enable / disable random awards
        "Reward3": "metal_ore",
        "Reward6": "wood",
        "Reward2": "stones",
        "Reward6Amount": 50000,
        "Reward5": "smg_2",
        "Reward5Amount": 1,
        "Reward5_2Amount": 150,
        "Reward5_2": "ammo_pistol_hv",
        "Reward4": "sulfur_ore",
        "Reward7": "rocket_launcher",
        "Reward7Amount": 1,
        "Reward7_2": "ammo_rocket_hv",
        "Reward7_2Amount": 3,
        "Reward8": "rifle_bolt",
        "Reward8Amount": 1,
        "Reward8_2": "ammo_rifle_hv",
        "Reward8_2Amount": 50,
        "Reward9": "rifle_ak",
        "Reward9Amount": 1,
        "Reward9_2": "ammo_rifle_hv",
        "Reward9_2Amount": 100,
        "Reward10": "shotgun_pump",
        "Reward10Amount": 1,
        "Reward10_2": "ammo_shotgun",
        "Reward10_2Amount": 50,
        "Reward11": "supply_signal",
        "Reward11Amount": 3,
        "Reward12": "explosive.timed",
        "Reward12Amount": 1
      }
    }
    Is anything wrong with this config because none of the rewards i added are registering but the plugin is still running after a reload?

    EDIT: It's giving out the thompson and i took it out of the config
     
    Last edited by a moderator: Jun 2, 2015
  16. Calytic

    Calytic Community Admin Community Mod

    You may configure a maximum of 5 item rewards and 1 money reward (provided Economy API). If you want to change the configuration of rewards beyond this initial template, you or the author will have to modify the LUA code below:

    Code:
    if (self.Config.Reward.Random == "true") then
                        Runlog("random")
                        local rand = math.random(1,6)
                        Runlog(rand)
                        if (rand == 1) then
                            Runlog("wood")
                            inv:GiveItem(global.ItemManager.CreateByName(self.Config.Reward.Reward1, self.Config.Reward.Reward1Amount), inv.containerMain)
                        end
                        if (rand == 2) then
                            Runlog("stones")
                            inv:GiveItem(global.ItemManager.CreateByName(self.Config.Reward.Reward2, self.Config.Reward.Reward2Amount), inv.containerMain)
                        end
                        if (rand == 3) then
                            Runlog("metal_ore")
                            inv:GiveItem(global.ItemManager.CreateByName(self.Config.Reward.Reward3, self.Config.Reward.Reward3Amount), inv.containerMain)
                        end
                        if (rand == 4) then
                            Runlog("sulfur_ore")
                            inv:GiveItem(global.ItemManager.CreateByName(self.Config.Reward.Reward4, self.Config.Reward.Reward4Amount), inv.containerMain)
                        end
                        if (rand == 5) then
                            Runlog("smg_thompson")
                            inv:GiveItem(global.ItemManager.CreateByName(self.Config.Reward.Reward5, self.Config.Reward.Reward5Amount), inv.containerMain)
                            inv:GiveItem(global.ItemManager.CreateByName(self.Config.Reward.Reward5_2, self.Config.Reward.Reward5_2Amount), inv.containerMain)
                        end
                        if (rand == 6) then
                            if (API ~= nil) then
                                Runlog("money")
                                local userdata = API:GetUserDataFromPlayer(attacker)
                                userdata:Deposit(self.Config.Reward.RewardMoney)
                                Runlog(userdata[1])
                                API.SaveData()
                            else
                                Runlog("Economics not found!")
                                inv:GiveItem(global.ItemManager.CreateByName(self.Config.Reward.Reward6, self.Config.Reward.Reward6Amount), inv.containerMain)
                            end
                        end
    
     
  17. :( that just made me wanna uninstall the plugin or i would modify the code if i knew how, Could i possibly copy and paste the lines and just change the rewards past the 5 limit?
    [DOUBLEPOST=1433216466][/DOUBLEPOST]Ill try to modify the code and post it here to see if to see if its correct
    [DOUBLEPOST=1433221672][/DOUBLEPOST]Is this correct? and also i added the line
    if hitinfo.Initiator == nil then
    return
    end
     

    Attached Files:

  18. Delete event.json file and reload event (oxide.reload event). It should regen a new config file with your rewards.
     
  19. Well Multiplay won't add this for me unless i publish it as my own plugin and change the version number, im so sick of this hosting company i pay all this money but i don't have control over my server im done with them.
    [DOUBLEPOST=1433270926][/DOUBLEPOST]Could someone message me i need to know how to publish a plugin plz

    edit: figured it out sorry ignore this post
     
    Last edited by a moderator: Jun 2, 2015
  20. Calytic

    Calytic Community Admin Community Mod

    Make sure you pick a provider that gives you FTP access. Oxide + RCON can handle the rest.