Promocodes

Moved

Total Downloads: 1,347 - First Release: Nov 19, 2015 - Last Update: Jan 25, 2018

5/5, 10 likes
  1. Read above.
     
  2. Question if someone uses the promocode can they use the same code again and again? and again? or is there a way for it to remove the code after used?
     
  3. Promocodes are removed after use.
     
  4. ok is there a way to set it where they can only use 1 of the codes a day?
     
  5. If you don't want them to redeem multiple codes a day, I would just recommend giving them out carefuly.
     
  6. I added it in thanks for the answer this would be nice option in future as would stop any chance of abuse.
     
  7. LaserHydra updated Promocodes with a new update entry:

    2.1.0


    [DOUBLEPOST=1455806217][/DOUBLEPOST]
    There you go.
     
  8. Hey. Your new update (2.1.0) is causing errors. I deleted the config file, replaced the plugin and started the server, to be spat out with all of this in the console. See.PNG
     
  9. LaserHydra updated Promocodes with a new update entry:

    2.1.1

     
  10. Same thing as well.

    See.PNG
     
  11. Can you send me the configfile? no matter its the default one - lol.
     
  12. Filename - Promocode.json
    Contents;

    {
    "Promocodes": [
    {
    "availableCodes": [
    "juB17-LQtNs-i3Lb5-Apsiv-9xdYa",
    "bC5Kc-QE7vX-eUELG-s1YdE-tmcbc",
    "Yje5l-gn7Ia-6vNVS-CbjpL-iqzGu",
    "pV4Al-BClqi-c5Ht4-DJv34-FbBj8",
    "aY2nO-dhumk-dCLgo-w1QBO-OJiXb",
    "M5TFT-uPbqO-Ecfv1-ixRYk-Vzu1D",
    "ZusjF-QFsCX-33Hii-xwqS6-94shd",
    "FP3Ar-Y7dnp-yOvKH-3jyU9-h9UYi",
    "ISyw2-vt1bU-U9Ezu-5l1tE-vyVkr",
    "2A1Kr-e7QgA-9kUF6-jtzT7-GEHlF"
    ],
    "commands": [
    "oxide.usergroup add {steamid} vip"
    ]
    }
    ]
    }
    [DOUBLEPOST=1455810158][/DOUBLEPOST]And how would I go about adding additonal promocodes for things like giving out items? etc. If you could post a config with that ^ included that'd be great.
     
  13. Soo, reloading the plugin once, fixed the error for me for now. I try to fix the error for the future.
    Example:
    Code:
    {
      "Promocodes": [
        {
          "availableCodes": [
            "juB17-LQtNs-i3Lb5-Apsiv-9xdYa",
            "bC5Kc-QE7vX-eUELG-s1YdE-tmcbc",
            "Yje5l-gn7Ia-6vNVS-CbjpL-iqzGu",
            "pV4Al-BClqi-c5Ht4-DJv34-FbBj8",
            "aY2nO-dhumk-dCLgo-w1QBO-OJiXb",
            "M5TFT-uPbqO-Ecfv1-ixRYk-Vzu1D",
            "ZusjF-QFsCX-33Hii-xwqS6-94shd",
            "FP3Ar-Y7dnp-yOvKH-3jyU9-h9UYi",
            "ISyw2-vt1bU-U9Ezu-5l1tE-vyVkr",
            "2A1Kr-e7QgA-9kUF6-jtzT7-GEHlF"
          ],
          "commands": [
            "oxide.usergroup add {steamid} vip"
          ]
        },
       {
          "availableCodes": [
            "juB17-LQtNs-i3Lb5-Apsiv-9xdYa",
            "bC5Kc-QE7vX-eUELG-s1YdE-tmcbc",
            "Yje5l-gn7Ia-6vNVS-CbjpL-iqzGu",
            "pV4Al-BClqi-c5Ht4-DJv34-FbBj8",
            "aY2nO-dhumk-dCLgo-w1QBO-OJiXb",
            "M5TFT-uPbqO-Ecfv1-ixRYk-Vzu1D",
            "ZusjF-QFsCX-33Hii-xwqS6-94shd",
            "FP3Ar-Y7dnp-yOvKH-3jyU9-h9UYi",
            "ISyw2-vt1bU-U9Ezu-5l1tE-vyVkr",
            "2A1Kr-e7QgA-9kUF6-jtzT7-GEHlF"
          ],
          "commands": [
            "oxide.usergroup add {steamid} vip+"
          ]
        }
      ]
    }
    
     
  14. LaserHydra updated Promocodes with a new update entry:

    2.1.2

     
  15. Great. Thank you update
     
  16. So i didnt see anyone ask this.. But what about making it so that the promocode can only be used once by a player... In my server We plan on giving people who just start on our server some materials to start with... But i dont want people using it over and over so they can have a bunch of stuff
     
  17. Once a code is used it will be removed.
     
  18. "inv.giveplayer {steamid}ammo.pistol" works

    "inv.giveplayer {steamid}ammo.pistol bp" does not work

    how can i add this ( " )marks ?


    edit: solved with \"
     
    Last edited by a moderator: Feb 21, 2016
  19. so far soo good. but umm for the items how would you write a code for that....

    {
    "Promocodes": [
    {
    "availableCodes": [
    "bqEz2-uGKYI-cDSGU-JkiJh-nOmgl",
    "eDU3w-8xCkF-DwzX4-k5C29-I4lyH",
    "CF8jj-2pqcV-885Eg-8qJ6H-oR2L1",
    "gk18k-LB6nS-mejmj-Z9ZEl-89cCc",
    "zjKU1-hKjSg-TtBAd-k7ga4-PiC2r",
    "U85Tb-wznVI-yhvB7-Szcc1-e8FSK",
    "nt34B-Tz6Yj-E4gK3-NbB8p-alxL4",
    "D8ypT-4kG8x-VPdg4-RjR3r-c4V6Y",
    "8b5UG-hSglm-sMgQ3-XcRI1-R3Ul5"
    ],
    "commands": [
    "oxide.usergroup add {steamid} vip" <---------- What other things i can post besides this....
    ]
    }
    ]
    }
    [DOUBLEPOST=1456244535][/DOUBLEPOST]Also is there a way to Combine this Plugin with Timed Permission.. so you can add time to it... so instead of bunch of people coming to redeem the code at a random time.. and you have to monitor what time they used it... and how long they will be vip for.. lol?
     
  20. yea, need to update timed permissions for that.