ServerRewards

Moved

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

5/5, 61 likes
  1. there is no command like that now only loadimages see my post above yours
     
  2. I add an item to the store and it is accepted, but it does not appear visually. What I can do?
     
  3. Why do not you tell me the rp's on my server?

    I already have the items
     
  4. [12/24/2016 05:26:17] [Oxide] 05:26 [Debug] at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
    at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
    at System.IO.File.AppendAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0
    at ConVar.Server.Log (System.String strFilename, System.String strMessage) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.TakePoints (System.Object userID, Int32 amount, System.String item) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.cmdBuyItem (.Arg arg) [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

    It takes the RP but doesn't give the item or the kit, and every time I try to buy something this message whos up
     
  5. How would players go about getting more RP in game? Thanks!
     
  6. NVM my server didnt update oxide even tho I told it to... all fixed now XD
     
    Last edited by a moderator: Dec 25, 2016
  7. I am curious about the same thing TheGamerTrixx asked.
     
  8. is there a way to grant a player certain permissions through this? For example I want to give users the ability to gain the autopurge.exclude permission so they can buy purge protection.
     
  9. Dont know what a problem. Early was no Ico image, and after restart its jost a white. I dont have image in thats plugin. I use 4 sites for icons, and only have error - Web request callback raised an exception (KeyNotFoundException: The given key was not present in the dictionary.)

    But this error i have early restarting. After him, i have just white ico. And dont know what to do :(

    Code:
    {
      "RewardKits": {},
      "RewardItems": {
        "0": {
          "DisplayName": "Калаш",
          "URL": "http://vignette2.wikia.nocookie.net/play-rust/images/3/38/Muzzle_Brake_icon.png",
          "ID": -1461508848,
          "Amount": 1,
          "Skin": 1902690746,
          "Cost": 300,
          "TargetID": 0
        },
        "1": {
          "DisplayName": "Болтовка",
          "URL": "http://gamestores.ru/img/games/rust/-55660037.png",
          "ID": -55660037,
          "Amount": 1,
          "Skin": 0,
          "Cost": 200,
          "TargetID": 0
        },
        "2": {
          "DisplayName": "Валера",
          "URL": "https://cdn.rusting.ru/icons/256/pistol.revolver.png",
          "ID": -930579334,
          "Amount": 1,
          "Skin": 0,
          "Cost": 50,
          "TargetID": 0
        },
     

    Attached Files:

  10. How can I add the items so that the players can sell them in the shop?
     
  11. [Oxide] 02:21 [Error] Failed to call hook 'cmdBuyItem' on plugin 'ServerRewards v0.3.9' (DirectoryNotFoundException: Could not find a part of the path "/home/zap63163/g1942/rust-oxide/server/Nemesis/oxide/logs/ServerRewards-SpentRP_2016-12-29.txt".)
    [Oxide] 02:21 [Debug] at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
    at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
    at System.IO.File.AppendAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0
    at ConVar.Server.Log (System.String strFilename, System.String strMessage) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.TakePoints (System.Object userID, Int32 amount, System.String item) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.cmdBuyItem (.Arg arg) [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


    Can anyone help me?
     
    Last edited by a moderator: Dec 29, 2016
  12. currently... /rewards check dont show the total play time... right?
     
  13. It shows only the points you got.


    I have the problem that my icons at the Kit section aren't squaric, even if the original is.
    Further, only every 2nd picture is shown. (I used the same link for all to test it, so either none or all should have been loading)
     

  14. But needs to show the Playtime too... I have Playtime Tracker installed with SR
    Check overview:

    Code:
    Chat Commands
    /rewards check - Display current reward points and total time played on server
     
  15. yeah...
    but it doesnt matter.... just open the shop and you see both xD
     
  16. Matter for me,
    otherwise I would not be asking.
     
  17. Well, should be worked over.

    You may know the source or a solution for my problem?
     
  18. All my images are a black and white questionmark. I tried the "loadimages" and "reload ServerRewards" commands but it doesnt work
     
  19. I solved my problem :D
    [DOUBLEPOST=1483100234][/DOUBLEPOST]I got a problem.. I got two items with a skin i put the skin id into "Skin" but if i buy it it goes into my inventar but it has a white picture on it and the skin is gone...
    i got 2 pictures and my serrverrewards_rewards.json
     

    Attached Files:

  20. post your serverrewards_rewards.json pls