BanFromGame: Difference between revisions
Replaced sv_allowacsbanfunction with sv_maxacsbanduration.
DrinkyBird (talk | contribs) m (Copy-paste error) Tag: Source edit |
(Replaced sv_allowacsbanfunction with sv_maxacsbanduration.) Tag: Source edit |
||
Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
Bans a player from the server. This function requires that the [[Server variables# | Bans a player from the server. This function requires that the [[Server variables#sv_maxacsbanduration|sv_maxacsbanduration]] server variable be greater than zero. | ||
=== Parameters === | === Parameters === | ||
* ''player'': The number of the player to ban. | * ''player'': The number of the player to ban. | ||
* ''duration'': The duration the player will be banned for, in minutes. Will be clamped in the range | * ''duration'': The duration the player will be banned for, in minutes. Will be clamped in the range of 1 to <code>sv_allowacsbanfunction</code>. | ||
* ''reason'': The reason for the ban. | * ''reason'': The reason for the ban. | ||