Scripts.included.gg afk punish
From GunGame5 Documentation
(Difference between revisions)
(Created page with '== Description == '''gg_afk_punish''' is used to punish players who are "Away from Keyboard" for a certain number of rounds. The number of rounds can be set to the desired amoun...') |
|||
(2 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | + | {{Addons| | |
- | + | ||
- | + | name=gg_afk_punish| | |
- | + | description=is used to punish players who are "Away from Keyboard" for a certain number of rounds. | |
+ | *The number of rounds can be set to the desired amount for your server. | ||
- | + | *There are 2 ways in which afk players can be punished: <span style="color:red">Moved to spectator</span> or <span style="color:red">Kicked from server</span>| | |
- | + | ||
+ | cfg_file=gg_punishment_settings.cfg| | ||
+ | |||
+ | cfg_contents=<pre>// ============================================================================ | ||
// >> AFK ROUNDS | // >> AFK ROUNDS | ||
// ============================================================================ | // ============================================================================ | ||
Line 32: | Line 35: | ||
// The punishment for players who are AFK longer than "gg_afk_rounds". | // The punishment for players who are AFK longer than "gg_afk_rounds". | ||
- | gg_afk_punish 0</pre> | + | gg_afk_punish 0</pre>}} |
Current revision as of 20:14, 22 March 2011
Description
gg_afk_punish is used to punish players who are "Away from Keyboard" for a certain number of rounds.
- The number of rounds can be set to the desired amount for your server.
- There are 2 ways in which afk players can be punished: Moved to spectator or Kicked from server
Variables
gg_afk_punish contains the following cvars that can be found in your server's ../cfg/gungame51/gg_punishment_settings.cfg.cfg file:// ============================================================================ // >> AFK ROUNDS // ============================================================================ // Options: // 0 = Disabled // # = The number of rounds the player can be AFK before punishment // occurs. // Default Value: 0 // The number of rounds a player can be AFK before punishment occurs. gg_afk_rounds 0 // ============================================================================ // >> AFK PUNISHMENT // ============================================================================ // Notes: // * Requires "gg_afk_rounds 1" or higher // Options: // 0 = No punishment. // 1 = Kick the player. // 2 = Move the player to spectator. // Default Value: 0 // The punishment for players who are AFK longer than "gg_afk_rounds". gg_afk_punish 0