1,584
edits
DrinkyBird (talk | contribs) No edit summary |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
Line 1: | Line 1: | ||
{{ACSWarning}} | {{ACSWarning}} | ||
bool '''KickFromGame''' (int ''player'', str ''reason'') | |||
== Usage == | |||
Forces the given player to spectate with the given reason. This is equivalent to the <tt>kickfromgame</tt> and <tt>kickfromgame_idx</tt> [[Console Commands|console commands]]. | |||
=== Parameters === | |||
* ''player'': The player to be kicked to spectator. | |||
* ''reason'': The reason that will be displayed. | |||
[[Category: ACS | === Return value === | ||
Returns true if the player was forced to spectate; false otherwise. | |||
== Examples == | |||
{{noexamples}} | |||
[[Category: ACS functions]] |