Introduces a new documentation site for CS2-SimpleAdmin using Docusaurus, including developer API references, tutorials, user guides, and module documentation. Removes the CleanModule example and updates FunCommands and ExampleModule. Also updates main plugin and API files to support new documentation and module structure.
12 KiB
sidebar_position
| sidebar_position |
|---|
| 2 |
Fun Commands Module
Add entertaining and powerful player manipulation commands to your server.
Overview
The Fun Commands module extends CS2-SimpleAdmin with commands for god mode, noclip, freeze, respawn, weapon management, and player attribute modification.
Module Name: CS2-SimpleAdmin_FunCommands
Features
- ⭐ God Mode - Make players invincible
- 👻 No Clip - Allow players to fly through walls
- 🧊 Freeze/Unfreeze - Freeze players in place
- 🔄 Respawn - Bring dead players back
- 🔫 Give Weapons - Provide any weapon to players
- 🗑️ Strip Weapons - Remove all weapons
- ❤️ Set HP - Modify player health
- ⚡ Set Speed - Change movement speed
- 🌙 Set Gravity - Modify gravity
- 💰 Set Money - Adjust player money
- 📏 Resize Player - Change player model size
Installation
Prerequisites
- CS2-SimpleAdmin installed and working
- CS2-SimpleAdminApi.dll in shared folder
Install Steps
-
Download the module from releases
-
Extract to your server:
game/csgo/addons/counterstrikesharp/plugins/CS2-SimpleAdmin_FunCommands/ -
Restart your server or reload plugins:
css_plugins reload -
Verify the module loaded:
- Check server console for load message
- Try
css_adminand look for "Fun Commands" menu
Commands
God Mode
Toggle god mode (invincibility) for a player.
css_god <#userid or name>
css_godmode <#userid or name>
Permission: @css/cheats
Examples:
css_god #123
css_god PlayerName
css_god @all # Toggle god mode for everyone
Effects:
- Player takes no damage
- Toggles on/off with each use
No Clip
Enable noclip mode (fly through walls).
css_noclip <#userid or name>
Permission: @css/cheats
Examples:
css_noclip #123
css_noclip PlayerName
Effects:
- Player can fly
- Can pass through walls
- Gravity disabled
- Toggles on/off with each use
Freeze
Freeze a player in place.
css_freeze <#userid or name> [duration]
Permission: @css/slay
Parameters:
duration- Freeze duration in seconds (optional, default: permanent until unfreeze)
Examples:
css_freeze #123 # Freeze permanently
css_freeze PlayerName 30 # Freeze for 30 seconds
css_freeze @t 10 # Freeze all terrorists for 10 seconds
Effects:
- Player cannot move
- Player cannot shoot
- Auto-unfreezes after duration (if specified)
Unfreeze
Unfreeze a frozen player.
css_unfreeze <#userid or name>
Permission: @css/slay
Examples:
css_unfreeze #123
css_unfreeze PlayerName
css_unfreeze @all # Unfreeze everyone
Respawn
Respawn a dead player at last death position.
css_respawn <#userid or name>
Permission: @css/cheats
Examples:
css_respawn #123
css_respawn PlayerName
css_respawn @dead # Respawn all dead players
Effects:
- Player spawns at death point
- Gets default weapons
- Joins their team
Give Weapon
Give a weapon to a player.
css_give <#userid or name> <weapon>
Permission: @css/cheats
Weapon names:
Rifles:
weapon_ak47orak47weapon_m4a1orm4a1weapon_m4a1_silencerorm4a1_silencerweapon_awporawpweapon_augoraugweapon_sg556orsg556weapon_ssg08orssg08(Scout)weapon_g3sg1org3sg1weapon_scar20orscar20
SMGs:
weapon_mp5sdormp5sdweapon_mp7ormp7weapon_mp9ormp9weapon_mac10ormac10weapon_p90orp90weapon_ump45orump45weapon_bizonorbizon
Heavy:
weapon_novaornovaweapon_xm1014orxm1014weapon_mag7ormag7weapon_sawedofforsawedoffweapon_m249orm249weapon_negevornegev
Pistols:
weapon_deagleordeagleweapon_eliteorelite(Dual Berettas)weapon_fivesevenorfivesevenweapon_glockorglockweapon_hkp2000orhkp2000weapon_p250orp250weapon_usp_silencerorusp_silencerweapon_tec9ortec9weapon_cz75aorcz75aweapon_revolverorrevolver
Grenades:
weapon_flashbangorflashbangweapon_hegrenadeorhegrenadeweapon_smokegrenadeorsmokegrenadeweapon_molotovormolotovweapon_incgrenadeorincgrenadeweapon_decoyordecoy
Equipment:
weapon_knifeorknifeweapon_taserortaseritem_defuserordefuseritem_kevlarorkevlaritem_assaultsuitorassaultsuit
Examples:
css_give #123 awp
css_give PlayerName ak47
css_give @ct m4a1
css_give @all deagle
Strip Weapons
Remove all weapons from a player.
css_strip <#userid or name>
Permission: @css/slay
Examples:
css_strip #123
css_strip PlayerName
css_strip @t # Disarm all terrorists
Set HP
Set a player's health.
css_hp <#userid or name> <health>
Permission: @css/slay
Parameters:
health- Health amount (1-999+)
Examples:
css_hp #123 100 # Full health
css_hp PlayerName 200 # 200 HP
css_hp @all 1 # 1 HP everyone
Common values:
1- 1 HP (one-shot mode)100- Normal health200- Double health500- Tank mode
Set Speed
Modify a player's movement speed.
css_speed <#userid or name> <speed>
Permission: @css/slay
Parameters:
speed- Speed multiplier (0.1 - 10.0)1.0= Normal speed2.0= Double speed0.5= Half speed
Examples:
css_speed #123 1.5 # 50% faster
css_speed PlayerName 0.5 # Slow motion
css_speed @all 2.0 # Everyone fast
css_speed #123 1.0 # Reset to normal
Common values:
0.5- Slow motion mode1.0- Normal (reset)1.5- Fast mode2.0- Super fast3.0- Extremely fast
Set Gravity
Modify a player's gravity.
css_gravity <#userid or name> <gravity>
Permission: @css/slay
Parameters:
gravity- Gravity multiplier (0.1 - 10.0)1.0= Normal gravity0.5= Moon jump2.0= Heavy
Examples:
css_gravity #123 0.5 # Moon jump
css_gravity PlayerName 0.1 # Super jump
css_gravity @all 2.0 # Heavy gravity
css_gravity #123 1.0 # Reset to normal
Common values:
0.1- Super high jumps0.5- Moon gravity1.0- Normal (reset)2.0- Heavy/fast falling
Set Money
Set a player's money amount.
css_money <#userid or name> <amount>
Permission: @css/slay
Parameters:
amount- Money amount (0-65535)
Examples:
css_money #123 16000 # Max money
css_money PlayerName 0 # Remove all money
css_money @ct 10000 # Give all CTs $10,000
Resize Player
Change a player's model size.
css_resize <#userid or name> <scale>
Permission: @css/slay
Parameters:
scale- Size scale (0.1 - 10.0)1.0= Normal size0.5= Half size2.0= Double size
Examples:
css_resize #123 0.5 # Tiny player
css_resize PlayerName 2.0 # Giant player
css_resize #123 1.0 # Reset to normal
Common values:
0.5- Tiny mode1.0- Normal (reset)1.5- Big2.0- Giant
Configuration
Configuration file location:
addons/counterstrikesharp/configs/plugins/CS2-SimpleAdmin_FunCommands/CS2-SimpleAdmin_FunCommands.json
Default Configuration
{
"Version": 1,
"GodCommands": ["css_god", "css_godmode"],
"NoclipCommands": ["css_noclip"],
"FreezeCommands": ["css_freeze"],
"UnfreezeCommands": ["css_unfreeze"],
"RespawnCommands": ["css_respawn"],
"GiveCommands": ["css_give"],
"StripCommands": ["css_strip"],
"HpCommands": ["css_hp"],
"SpeedCommands": ["css_speed"],
"GravityCommands": ["css_gravity"],
"MoneyCommands": ["css_money"],
"ResizeCommands": ["css_resize"]
}
Customizing Commands
Add aliases:
"GodCommands": ["css_god", "css_godmode", "css_immortal"]
Disable feature:
"GodCommands": []
Rename command:
"NoclipCommands": ["css_fly"]
Admin Menu Integration
The module automatically adds a "Fun Commands" category to the admin menu with these options:
- God Mode
- No Clip
- Freeze
- Respawn
- Give Weapon
- Strip Weapons
- Set HP
- Set Speed
- Set Gravity
- Set Money
- Resize Player
Access menu:
css_admin # Navigate to "Fun Commands"
Permission System
Permission Override
Admins can override command permissions using CounterStrikeSharp's admin system.
Example: If you want VIPs to use god mode:
-
In admin config, add permission override for
css_god:{ "css_god": ["@css/vip"] } -
VIPs will now see God Mode in the menu
Permissions Required
| Command | Default Permission | Description |
|---|---|---|
css_god |
@css/cheats |
God mode |
css_noclip |
@css/cheats |
No clip |
css_freeze |
@css/slay |
Freeze players |
css_unfreeze |
@css/slay |
Unfreeze players |
css_respawn |
@css/cheats |
Respawn players |
css_give |
@css/cheats |
Give weapons |
css_strip |
@css/slay |
Strip weapons |
css_hp |
@css/slay |
Set health |
css_speed |
@css/slay |
Set speed |
css_gravity |
@css/slay |
Set gravity |
css_money |
@css/slay |
Set money |
css_resize |
@css/slay |
Resize player |
Use Cases
Fun Rounds
# Low gravity, high speed round
css_gravity @all 0.3
css_speed @all 1.5
# One-shot mode
css_hp @all 1
css_give @all deagle
# Tiny players
css_resize @all 0.5
Admin Events
# Hide and seek (seekers)
css_speed @ct 1.5
css_hp @ct 200
# Hide and seek (hiders)
css_resize @t 0.5
css_speed @t 0.8
Testing & Debug
# Test map navigation
css_noclip @me
css_god @me
# Test weapon balance
css_give @me awp
css_hp @me 100
Best Practices
Competitive Balance
- Don't use during serious matches - Breaks game balance
- Announce fun rounds - Let players know it's for fun
- Reset after use - Return to normal settings
- Save for appropriate times - End of night, special events
Reset Commands
Always reset modifications after fun rounds:
css_speed @all 1.0
css_gravity @all 1.0
css_resize @all 1.0
Permission Management
- Limit @css/cheats - Only trusted admins
- @css/slay is safer - For HP/speed/gravity
- Monitor usage - Check logs for abuse
Troubleshooting
Speed/Gravity not persisting
Solution:
- These are maintained by a repeating timer
- If they reset, reapply them
- Check server console for timer errors
God mode not working
Check:
- Is player alive?
- Check console for errors
- Try toggling off and on
Can't give weapons
Check:
- Correct weapon name
- Player is alive
- Player has inventory space
Noclip doesn't work
Check:
- Player must be alive
- sv_cheats doesn't need to be enabled
- Check console for errors
Module Development
This module serves as a reference implementation for creating CS2-SimpleAdmin modules.
Key concepts demonstrated:
- Command registration from configuration
- Menu creation with SimpleAdmin API
- Per-player translation support
- Proper cleanup on module unload
- Code organization using partial classes
View source code for implementation details.
Translations
The module includes translations for 13 languages:
- English (en)
- Polish (pl)
- Russian (ru)
- Portuguese (pt)
- And 9 more...
Translation files location:
plugins/CS2-SimpleAdmin_FunCommands/lang/
Related Documentation
- Player Commands - Core player commands
- Module Development - Create your own modules
- API Reference - CS2-SimpleAdmin API
Version History
v1.0.0 - Initial release
- God mode
- Noclip
- Freeze/Unfreeze
- Respawn
- Give/Strip weapons
- HP/Speed/Gravity/Money
- Resize player
- Admin menu integration
- 13 language support
Support
Issues: GitHub Issues
Questions: GitHub Discussions