Admin commands - JulianR0/CLevels GitHub Wiki
Server admins can use the .xp_help
console command to display these commands at any time.
.xp_addxp
Params: [Name] [Amount]
Gives XP to a player.
.xp_removexp
Params: [Name] [Amount]
Takes XP away to a player.
This will reset the player's skills.
.xp_setlvl
Params: [Name] [Value]
Sets a player's level.
If new level is lower than old level, skills will be reset.
.xp_addmedal
Params: [Name] [Amount]
Give medals to a player.
.xp_removemedal
Params: [Name] [Amount]
Take medals away from a player.
This will reset the player's special skills.
.xp_giveamp
Params: [Name] [Level] [Duration]
Gives (or takes) an XP multiplier to a player.
A level and duration of 0
will remove the multiplier.
Level 1 means 2x XP. Level 2 means 3x XP. And so on...
A letter must be appended at the end of the duration, that means how long should the multiplier last. Use m
for minutes, h
for hours, or d
for days. Examples:
30m
for 30 minutes
4h
for 4 hours
7d
for 7 days
Full example:
.xp_giveamp Player 1 5d
Gives a 2x multiplier for 5 days to "Player".
.xp_givepi
Params: [Name] [Value] [Title] [Description]
Give an XP Modifier to a player.
Value is how much % should XP gain increase for the player. Can be negative for a penalty, or zero for an honorific mention.
Title is the name of the modifier that will be shown on the menu.
Description is the text that will be displayed when inspected on the menu. Use !n
to go to the next line. NOTE: While the description can be as long as you want, the console has a limit of 127 characters. Meaning that any extra letters that you add beyond it will be truncated. If giving XP Modifiers from the console, try to keep the descriptions as short as possible.
.xp_setadata
Params: [Name] [Achievement ID] [Unlock] [Give Reward]
Locks or unlocks an achievement to a player.
See achievements page for the IDs.
Set unlock to 1
to unlock the achievement. 0
to lock it again.
If Give Reward is 1
, the achievement's reward will be given to the player (if it has one). Otherwise, the achievement will be unlocked without giving anything.
If both Unlock and Give Reward parameters are skipped, the achievement status will be shown instead. You can use this to see if the selected ID is correct, and if the player already has said achievement or not.
.xp_force_handicap
Params: [Name] [Handicap ID] [Silent]
Forces a handicap to a player.
Handicap ID | Name |
---|---|
1 | Medical Phobia |
2 | Obsolete Technology |
3 | Nitrogen Blood |
4 | Karmic Retribution |
5 | Realism |
6 | Big Explosion |
7 | Limited Equipment |
8 | Dead Weight |
9 | Lacking Help |
10 | Dirty Mag |
11 | Lost Bullets |
12 | Weak Restart |
13 | Dangerous Waters |
14 | Bleeding View |
15 | Health Crisis |
Use a Handicap ID to turn on a specific handicap to a player. A forced handicap cannot be turned off by the player once set. A value of 0
will disable all forced handicaps.
A silent value of 1
will turn on the handicap silently, no admin messages will be publicly shown. Use 0
otherwise.
.xp_set_xpgain
Params: [Value]
Changes the map's XP gain on the fly. Decimals accepted. 0
to disable XP gain.
This command is only available for server owners (Gold admin icon).
.xp_toggle_skills
No params.
Enables or disables all basic and special SCXPM skills on the map.
This command is only available for server owners (Gold admin icon).
.xp_toggle_overpower
No params.
Enables or disables overpowered skills on the map.
Overpower allows Strength and Superior Armor skills to increase player's maximum health/armor.
This command is only available for server owners (Gold admin icon).
.xp_toggle_save
No params.
Enables or disables player data saving on the map
Players will still be able to load their levels, but whatever gain they get on the map won't be saved.
This command is only available for server owners (Gold admin icon).
.xp_start_simulation
Params: [Level]
Enables simulation mode for the map.
WARNING: Once enabled, cannot be turned off until map change.
Simulation mode makes all players "pretend" they are X
level. Where X is the level parameter. Simulated levels do not save and players will recover their original levels at map end.
This command is only available for server owners (Gold admin icon).