1,544
edits
DrinkyBird (talk | contribs) (Created page with "int '''KickFromGame''' (int ''player'', str ''reason'') *''player'': player to be kicked to spectators *''reason'': reason given Forces the given player to spectate with the...") |
DrinkyBird (talk | contribs) (Link to BanFromGame) Tag: Source edit |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{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. | |||
=== Return value === | |||
Returns true if the player was forced to spectate; false otherwise. | |||
== Examples == | |||
{{noexamples}} | |||
== See also == | |||
* [[BanFromGame]] | |||
[[Category: ACS functions]] |