Version 1.0.1
23 downloads
The promo code plugin for Rust game provides the ability to reward players for entering a code word. This plugin includes a variety of settings and functionality for easy management and configuration of promo codes in the admin panel.
Main Features
Creation and Configuration of Promo Codes:
Promo Code: The administrator can create unique promo codes.
Item Configuration: The administrator can determine which items will be given when the promo code is activated.
Item Parameters
Shortname: The code word for issuing a specific item.
SkinID: The skin identifier of the item.
DisplayName: The displayed name of the item.
Amount: The number of items given by the promo code.
Flexible Settings
Promo Code Duration: Ability to set an end date until which the promo code will be active.
Usage Limit: Setting a limit on the number of times the promo code can be used.
Command Configuration
Ability to replace item issuance with the execution of a specific server command when the promo code is activated.
Example Usage
Admin usage
Give admin permission - promocodes.admin
Open UI with command (can be changed in config, default: /p)
Creating a Promo Code:
Create the promo code "SUMMER21".
Set its expiration date to July 31.
Set a usage limit of 100 times.
Player usage
Open UI with command (can be changed in config, default: /p)
Enter promocode
Press CHECK button
Item Configuration
Add an item: shortname - "rifle.ak", skinid - "123456", displayname - "AK-47 Elite", amount - 1.
Add an item: shortname - "ammo.rifle", skinid - "0", displayname - "Rifle Ammo", amount - 100.
Command Replacement
Set the command "give %STEAMID% some_reward" to be executed when the promo code is activated instead of issuing items.
Configuration file
{
"Cooldown for promocode": 65,
"Commands to open UI": [
"promocode",
"promo",
"code",
"pc",
"p"
]
}