Promocodes

Moved

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

5/5, 10 likes
  1. Punctuation a... |? does not work…

    Code:
          "commands": [
            "give {steamid} hazmat.gloves|give {steamid} hazmat.helmet|give {steamid} hazmat.boots|give {steamid} hazmat.boots|give {steamid} hazmat.pants"
          ]
        }
     
  2. Code:
    "commands": [
            "give {steamid} hazmat.gloves",
    "give {steamid} hazmat.pants",
    "give {steamid} hazmat.helmet"
          ]
        }
          
     
  3. Worked! changed to give -> inv.giveplayer.
    Thanks!!
    [DOUBLEPOST=1457259322][/DOUBLEPOST]REQUEST
    • Player: times limit
    • Player: Restrictions which may be used in a day
    • Notification to all players
     
    Last edited by a moderator: Mar 6, 2016
  4. What i need to change, if i want promocodesvip.json/css and promocodesvippremium.json/css
     
  5. You can put multiple promocode permissions in the config file
    [DOUBLEPOST=1457921034][/DOUBLEPOST]Example:

    {
    "Promocodes": [
    {
    "availableCodes": [
    "v7SXo-I54IR-Vce3v-o8zqp-nlQZw",
    "RHo47-NwxJU-TVhJd-TRMf2-TcQ1X",
    "awF2Z-KL6RP-AoGm1-e7LXv-lK5aV",
    "ICJ76-E22PU-8So4I-3NiJX-z883U",
    "uHl6s-PHgkg-99dlG-Rjsac-aPb33",
    "fs11j-PQPwK-EBLse-lAJcm-l6YnO",
    "htrmF-LHx1T-BIPVx-56XOh-iv7Gu",
    "DbNe9-4NLqJ-xZwcN-Nab9A-gQeZK",
    "D8B1b-vibZ9-8sdyR-Ak3fv-vlqKQ",
    "rMnEA-VZTdb-tYUhp-eYDfy-PwhcH"
    ],
    "commands": [
    "oxide.usergroup add {steamid} donator"
    ]
    },
    {
    "availableCodes": [
    "awF2Z-KL6RP-AoGm1-e7LXv-aK5aV",
    "ICJ76-E22PU-8So4I-3NiJX-6883U",
    "uHl6s-PHgkg-99dlG-Rjsac-2Pb33",
    "fs11j-PQPwK-EBLse-lAJcm-w6YnO",
    "htrmF-LHx1T-BIPVx-56XOh-hv7Gu",
    "DbNe9-4NLqJ-xZwcN-Nab9A-eQeZK",
    "D8B1b-vibZ9-8sdyR-Ak3fv-alqKQ"
    ],
    "commands": [
    "oxide.usergroup add {steamid} zombie"
    ]
    }
    ]
    }
    [DOUBLEPOST=1457921075][/DOUBLEPOST]Ignore the bad formatting
    [DOUBLEPOST=1457921205][/DOUBLEPOST]Here is the json file so you can just modify it
    [DOUBLEPOST=1457921252][/DOUBLEPOST]I did change all my codes, that was an example in case someone tries it on my server. LOL
    [DOUBLEPOST=1457921344][/DOUBLEPOST]Make sure you use unique codes
     

    Attached Files:

  6. Thanks!
    [DOUBLEPOST=1457960216,1457921636][/DOUBLEPOST]This only generate codes to first part, but what i need do change?
     
  7. you can put in custom codes.
     
  8. I did a quick search on Google and found a random code generator that can give the same style codes for free.
    You can do 1,000 at a time if you want.
    Go to: Generate Random Codes - Try for free - Random Code Generator
    Choose the amount of codes you want.
    Then choose Generate using a pattern
    Then enter this string or a different combination of the same style, eg. change upper and lowercase aA
    aAAaA-aAaaA-aaAaa-AaAaa-AAaaA
    Click Generate my codes and you will have as many new unique codes as you want.
    Example of codes below:
    4F8m5-eW6m5-dyD55-GyGwj-MTfnJ
    5SM9X-4Wz22-46Eds-NyVt7-BE9fT
    jMDr6-sZ72A-dvSsc-QrBu5-KJst2
    8RF9X-rZibV-487oo-Ma4om-ALm9S
    2GQq7-e8t2Q-jmZsr-NgXyv-UWczY
    rK4kS-eMfvN-627yc-Gk9q8-MYq8D
    gUNdQ-kDo8L-2jK4k-E7Svi-X5cjB
    dDV5M-j58g9-6wEc8-C28ix-3LetQ
    xFC33-aFfwW-fbYmr-Pe9aq-ANapE
    bNZhQ-3W4sX-5hX23-NyS3c-8T29X
     
  9. How to connect Promocodes with database? I need this, because, then i can do PayPal connection.
     
  10. make many codes here, then manually add them to your database regularly.

    Eg. make 100 codes, copy those codes to your external database every month to keep it in sync.
     
  11. Thanks! Nice plan!
     
  12. and can add codes for various permissions as well as "vip"? for example codes to be added in groups, "vip", "adm", "mod". How can I do this? it's possible?
     
  13. Sure, copy the default promocode part from the config file and change the ran commands to adding players to groups.
     
  14. Yeah, I got here, I was doing something wrong :)
    [DOUBLEPOST=1458850473][/DOUBLEPOST]How to make a code for the player to win all bluerprints through the BlueprintManager plugin?
     
  15. Cai

    Cai

    can promo codes be set up to one time use and be change the promocodes but not the commands
    [DOUBLEPOST=1460604571][/DOUBLEPOST]i wanna set up my codes to automate my giving server tags such as oxide groups. better chat. how can i set it up with multiple commands with different codes for each section that are one time use
     
  16. All codes are one time use. Yes you can have groups with different permissions, etc.
    Look up for an example config file
    [DOUBLEPOST=1460607681][/DOUBLEPOST]i also have a way to get random promocodes up there as well
    Eg. 100 donator codes
     
  17. Is there a way i can make this in to more than 1 so, 1 code would be for 1 command and another 1 another ?
    Something like this
    {
    "VIP": {
    "Codes": [
    // 10 random codes here
    ],
    "Permission": "oxide.usergroup add {steamid} Donator1"
    }
    }
    {
    "VIP": {
    "Codes": [
    // 10 random codes here
    ],
    "Permission": "oxide.usergroup add {steamid} Donator1"
    }
    }
    {
    "VIP": {
    "Codes": [
    // 10 random codes here
    ],
    "Permission": "oxide.usergroup add {steamid} Donator3"
    }
    }
     
  18. Read my post up higher. It explains how to do multiple promos for different permissions.
     
  19. Thanks helped a lot :)
     
  20. I will maybe update Promocodes to be able to save it to a database if wanted.