About this Plugin
Rewards players with XP for the time they spend playing on the server. XP is granted at configurable minute intervals with fully customizable amounts via a configuration file. Supports two save methods: immediate save and round-end save.
Features
- Awards XP based on playtime intervals
- Configurable XP amounts per minute milestone via config file
- Two save methods: immediate (1) or round-end (2)
- Configurable check interval via CVAR
- Multi-language support (English & Bulgarian)
CVARs / Settings
| CVAR | Default | Description |
|---|---|---|
rsu_tr_timeout |
300 |
How often (in seconds) the plugin checks playtime milestones |
rsu_tr_savetype |
2 |
Save type — 1: save immediately, 2: save at round end |
Configuration File
addons/amxmodx/configs/time_rewards.ini
; Time-based XP rewards configuration
; Format: minutes_played = XP_reward
; When a player reaches the specified minutes, they receive the XP
1 = 5
2 = 20
3 = 50
Language File Preview
[en]
RSU_TR_REWARDED = [Time Rewards] You have been rewarded with %dXP for playing %d minutes.
[bg]
RSU_TR_REWARDED = [Time Rewards] Вие бяхте възнаградени с %dXP за %d минути игра.
Installation Guide
-
1
Place
rsu_time_rewards.smainaddons/amxmodx/scripting/ -
2
Place
time_rewards.iniinaddons/amxmodx/configs/ -
3
Place
rsu_time_rewards.txtinaddons/amxmodx/data/lang/ -
4
Compile the
.smato.amxx -
5
Place the compiled
.amxxinaddons/amxmodx/plugins/ -
6
Add to
plugins.ini -
7
Configure time/XP values in
time_rewards.ini -
8
Optionally adjust CVARs (
rsu_tr_timeout,rsu_tr_savetype) - 9 Restart the server or change map