USAGE:
NEWS CHANNEL:
work with:
DESCRIPTION:
PERMISSIONS:Promo code system:
- Automatic generation new wipe promo code
- Ability to add new promo codes
- Personal promo codes, group promo codes
- Promo code cooldown after connect to server
- Limited uses
- The promo code is valid for a limited time.
- Anti-abuse
- Discord notifications for players and admins
- Usage statistic
- Logs
COMMANDS:promocodes.admin
promocodes.use
SCREENSHOTS:CHAT:
/promo NAME - use a promo code./addpromoSyntax: addpromo {1} {2} {3} {4} {5} {6}{1} - name{2} - points, number{3} - Number of promo code activations, (0-100 uses){4} - validity period, (HOURS / 0 - unlimit){5} - cooldown playing on the server to activate the promo code, (SEC / 0 - no cooldown)/removepromoSyntax: removepromo {1}{1} - name
CONSOLE:
addpromoSyntax: addpromo {1} {2} {3} {4} {5} {6}{1} - name{2} - points, number{3} - Number of promo code activations, (0-100 uses){4} - validity period, (HOURS / 0 - unlimit){5} - cooldown playing on the server to activate the promo code, (SEC / 0 - no cooldown)removepromoSyntax: removepromo {1}{1} - namerandomwipepromo - re-generate new wipepromo code
NEWS CHANNEL:
ADMIN LOGS:
CONFIG:
API:{
"Color theme": {
"Alert: accent color": "#e87474",
"Alert: prefix color": "#e87474",
"Alert: text color": "#ffffff",
"Notifications: accent color": "#74e897",
"Notifications: prefix color": "#74e897",
"Notifications: text color": "#ffffff",
"Server prefix": "[PROMO]:"
},
"Notifications": {
"Discord webhook - Admins (new promo codes and reports on hacking attempts)": "",
"Discord webhook - Players (messages about new promo codes)": "",
"Enable chat notification (text in language file)": true,
"Enable discord notification": true,
"Message text for players with map data": true,
"Message text for players (discord) - {NAME} - promo code name, {AMOUNT} - promo code amount": "Hey, guys!\n:money_with_wings: The new promo code {NAME} with {AMOUNT} points IS HERE!"
},
"Settings": {
"Enable logging the use of promo codes": true,
"Points Hook (ServerRewards - AddPoints, Economics - Balance": "AddPoints",
"Server name (for discord title notification": "YOUR SERVER NAME"
},
"Wipes promo codes": {
"Enable to generate promo codes every wipe": true,
"List of promo code amounts": [
10,
11,
12,
13,
14,
15
],
"Primary promo code list - true. Secondary promo code list - false": false,
"Primary promo codes names list": [],
"Promo code cooldown": 600.0,
"Secondary promo codes list (using name from list and add a random number. Example: PROMO20": [
"MONEY",
"RAID",
"FARM",
"LOOT",
"RUST",
"COSMO",
"PVP",
"EASY",
"HARD",
"BOOM",
"SCRAP",
"GO"
]
}
}
EXAMPLE:object GetPromocodeData()
Api_Create_Promo(string name, int amount, BasePlayer initiator = null)
Api_Remove_Promo(string name, BasePlayer initiator = null)
Promocode = PromoCodes?.Call("GetPromocodeData");