Useful commands and includes for server owners & plugin developers alike.
| Include | Description |
|---|---|
chat.inc |
Chat utilities |
steam.inc |
Steam utilities |
tf2.inc |
Team Fortress 2 utilities ℹ️ Compatible with mods too! |
shared.inc |
Source Engine utilities |
| ConVar | Default | Description |
|---|---|---|
sm_convert_mobster_vip |
1 |
Convert Mobster VIP to TF2C VIP. |
sm_truce_active |
0 |
Toggle truce mode. |
| Command | Usage | Description |
|---|---|---|
| sm_setteam / sm_team | [target] <team> |
Set player's team |
| sm_setclass / sm_class | [target] <class> |
Set player's class |
| sm_respawn | [target] |
Force respawn player(s) |
| sm_health | [target] <amount> |
Set player's health |
| sm_maxhealth | [target] <amount> |
Set player's max health |
| sm_currency | [target] <amount> |
Set player's currency |
| sm_scale | [target] <amount> |
Set player's scale |
| sm_addattr / sm_addattribute | [target] <attribute> [value] [duration] |
Add attribute to player |
| sm_removeattr / sm_removeattribute | [target] <attribute> |
Remove attribute from player |
| sm_getattr / sm_getattribute | [target] <attribute> |
Get attribute value from player |
| sm_fireinput | <target> <input> <value> |
Fire entity input on player |
| sm_hint | <target> <message> <duration> [icon] |
Show instructor hint to player |
| sm_addcond | [target] <condition> [duration] |
Add condition to player |
| sm_removecond | [target] <condition> |
Remove condition from player |
| Command | Description |
|---|---|
| sm_fp / sm_firstperson | Switch to first-person view |
| sm_tp / sm_thirdperson | Switch to third-person view |
| Filter | Description |
|---|---|
| @red | Target red players |
| @blue | Target blue players |
| @green | Target green players |
| @yellow | Target yellow players |
| @vips | Target civilian players (VIPs) |
| Command | Description |
|---|---|
| sm_reloadmap | Reloads the current map |
Removed FCVAR_CHEATS flags off the following commands:
| Command |
|---|
| nav_generate |
| nav_generate_incremental |
| sm_nav_generate |
| sm_nav_generate_incremental |
| bot_kick |
Automatically reconnects clients on server restart.
Automatically toggles friendly-fire between rounds for supported games.