Commands ================================================== Introduction ---------------------------------------- The commands listed below can be executed by either typing it into the ingame chat. If you want to use them from your console, remove the ``!`` in front of them. Player Commands ---------------------------------------- ```` marks parameters that are required for commands +---------------+--------------+-----------------------------------------------------------------------------------+ | Command | Alias | Description | +===============+==============+===================================================================================+ | ``!ready`` | ``!r`` | Mark the player as ready | +---------------+--------------+-----------------------------------------------------------------------------------+ | ``!pause`` | | Pause the match in the next freezetime | +---------------+--------------+-----------------------------------------------------------------------------------+ | ``!unpause`` | | Unpause the match. To continue the match, both teams have to ``!unpause``. | +---------------+--------------+-----------------------------------------------------------------------------------+ | ``!kill`` | ``!suicide`` | Kill the current player if allowed by the :ref:`admin/configuration:matchconfig`. | +---------------+--------------+-----------------------------------------------------------------------------------+ | ``!`` | | Select something in the current menu. | +---------------+--------------+-----------------------------------------------------------------------------------+ | ``!stay`` | | Vote to stay at the current team. | +---------------+--------------+-----------------------------------------------------------------------------------+ | ``!switch`` | | Vote to switch the current team. | +---------------+--------------+-----------------------------------------------------------------------------------+ Admin/Rcon Commands ------------------- These commands are available through rcon or to users with the required permissions. See :ref:`admin/configuration:CounterstrikeSharp Configs` ```` marks parameters that are required for commands ``[optionalParameter]`` marks parameters that can be optionally be added to commands +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | Command | Alias | Description | +========================================+===============================+===================================================================================================================================================+ | ``!ps_loadconfig [authToken]`` | ``!ps_lc`` | Load a :ref:`admin/configuration:matchconfig` to initialize a match | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_loadconfigfile `` | ``!ps_lcf`` | Load a :ref:`admin/configuration:matchconfig` to initialize a match. The file path must be either rooted or relative to ``csgo/PugSharp/Config/`` | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_restorematch `` | | Restores match in the given round. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_creatematch`` | ``!ps_crm`` | Creates a new match without preloaded configuration. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_startmatch`` | ``!ps_sm`` | After match configuration is done with ``!ps_creatematch`` the match can be started. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_dumpmatch`` | | Dumps the current matchstate and config to console | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_cancelmatch`` | ``!ps_stopmatch``, ``!ps_cm`` | Danger! Stops the current match immediately and resets the server. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_addmap`` | | Add a map to the map pool during match creation. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_removemap`` | | Remove a map from the map pool during match creation. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_playersperteam `` | | Sets the number of players per team. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_maxrounds `` | | Sets the max number of rounds. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_maxovertimerounds `` | | Sets the max number of overtime rounds. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_teammode `` | | Sets the teammode. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_matchinfo`` | | Shows the match configuration for the current match or matchcreation. | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_matchstate`` | | Returns the current match state **TODO see config doku** | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_mapscore`` | | Returns the current match score like "Team 1 [4] vs Team 2 [5]" | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_team1_name`` | | Returns the teamname of team 1 | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_team2_name`` | | Returns the teamname of team 2 | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_team1_side`` | | Returns the side of team 1 | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_team2_side`` | | Returns the side of team 2 | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_team1_mapscore`` | | Returns the score of team 1 for the current map | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_team2_mapscore`` | | Returns the score of team 2 for the current map | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!css_team1_seriesscore`` | | Returns the seriesscore of team 1 | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!css_team2_seriesscore`` | | Returns the seriesscore of team 2 | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_mapscore_json`` | | Returns the current map score as json (:ref:`Example`) | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_seriesscore_json`` | | Returns the seriesscore as json **TODO Example** | +----------------------------------------+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ mapscore_json Example ''''''''''''''''''''' .. code-block:: json { "Team1": { "Name": "Team 1", "Score": 1, "StartingSide": 3, "CurrentSide": 3 }, "Team2": { "Name": "Team 2", "Score": 2, "StartingSide": 2, "CurrentSide": 2 } }