❓Tebex Script Integration
Last updated
Last updated
Some of our scripts allow you to set up your own tebex store and automatically sell extra features like coupon codes, credits, etc. to your players. You can start using this feature of the scripts by making the integration.
Go to Tebex's website and sign up.
Open your dashboard after sign up.
Click on 'Game Server' from Dashboard menus.
Click on the 'Connect a game server' button and then select the 'PLUGIN' option from the page that opens and continue.
Fill in the name of your game server and select the all packages option. Save and close.
Copy the secret key given to you by tebex from the screen that appears after installation.
From your server files, open server.cfg and paste the secret key you copied in step 1 where your license keys are located as in the example below. (Don't forget to put the 'sv_tebexSecret' tag at the beginning of the secret key)
Open the Tebex dashboard, and click on 'packages' on the left menu.
Click on 'add new' at the top right and select 'packages' from the drop-down menu just below it.
In this section; after setting the properties such as name, price, description, image as you wish, click on the 'Game Server Command' button in the 'Configure what your customers should receive upon purchasing this package' section at the bottom
In the section that opens, select your game server that is connected to the tebex you want to sell from the field under the 'Game Server' heading.
Click on the 'add command' button at the bottom right.
In the 'Enter the command' section, paste the code in the tebexInfo file in the script you purchased from us and edit it according to your own wishes.
Select the option just to the left of the code section as 'When the package is purchased'.
In the section that opens, change 'Require Player To Be Online' to 'Execute the command even if the player is offline' and save.
Your Tebex sales integration is complete! Now, when the package you have created is purchased by a player, the transaction id given after the purchase can be used by your player in the redeem code field!
Click on the small settings icon on the right side.