ServerRewards

Moved

Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018

5/5, 61 likes
  1. Okay...for the first one, there must be a different escape character to allow the space to parse correctly. for the second, I see my mistake.
    Instead of "callheli pos $player.x, $player.y, $player.z 1" or "callheli pos '$player.x, $player.y, $player.z' 1" we should probably use "callheli pos $player.x $player.y $player.z 1" without the quotes or the commas since the numbers will be substituted and there should be no commas, and we don't want to combine all three values of xyz into one argument.
     
  2. yeah that works, thanks.
     
  3. Is there an automatic way to give VIP players RP? example if they redeem a kit, they get the items + RP? or do you have to do /sr add (name) (amount) every time

    please help, think this would be a cool feature
     
  4. k1lly0u updated ServerRewards with a new update entry:

    0.3.25

     
  5. cooldown add plz!!!
     
  6. What is it. How to earn RP ?
     
    Last edited by a moderator: Sep 27, 2016
  7. @k1lly0u Still getting this with latest version

    Code:
    (17:50:30) | [Oxide] 09:50 [Error] Failed to call hook 'GetKitContents' on plugin 'Kits v3.1.10' (NullReferenceException: Object reference not set to an instance of an object)
    (17:50:30) | [Oxide] 09:50 [Debug]   at Oxide.Plugins.Kits.GetKitContents (System.String kitname) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  8. Hey man, thanks for the update, I've reinstated my shop npc's however there's still this error of buttons greying out when you switch between kits and items. It's improved in that they're actually responsive still, and you dont get stuck in the GUI, but yeh, just a lil something that still needs fixing. thanks

    Clipboard01.jpg
     
  9. Pm me all your data files, also your humannpc and kits datafiles
     
  10. Done :)
     
  11. I'll load yours in when I get home and see what happens
     
  12. Having an issue with the plugin. Here's my error log from RCON

    [Oxide] 16:11 [Info] Unloaded plugin ServerRewards v0.3.25 by k1lly0u
    [Oxide] 16:11 [Info] Loaded plugin ServerRewards v0.3.25 by k1lly0u
    [Oxide] 16:11 [Warning] [ServerRewards] Playtime Tracker could not be found! Unable to monitor user playtime
    [Oxide] 16:11 [Warning] [ServerRewards] Creating and storing all UI elements to cache
    [Oxide] 16:11 [Warning] [ServerRewards] All UI elements created successfully!
    [Oxide] 16:11 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.25' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 16:11 [Debug] at Oxide.Plugins.ServerRewards.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 16:11 [Info] [MagicDescription] Server description updated!
    [Oxide] 16:11 [Info] [ServerRewards] Saved reward data
     
  13. Weird, doesnt seem to be doing it now :/
     
  14. loadimages dont work whit new version
     
  15. Im sorry if its asked before, but how do I make a kit / item reward only for the winner of the game?
     
  16. k1lly0u updated ServerRewards with a new update entry:

    0.3.27

     
  17. Hello, I have set up a few items and they're printing in console of what they are, but they do not show up on the page, am I doing something weird that would cause that or do i have to restart the server?
     
  18. You need to reload the plugin after adding/changing store objects because the UI is generated when the plugin loads.
    [DOUBLEPOST=1475104776][/DOUBLEPOST]
    Probably a null data file. If your serverrewards_players.json file only contains the word "null" then thats your problem. Unload and delete the file
     
  19. Seems like kits won't load images at all and can't reload image on single items anymore. I can load images once on a single item but if I try to change the pic it goes to a white box and won't load anything anymore.