Scripts.included.gg afk punish

From GunGame5 Documentation

(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision not shown)
Line 1: Line 1:
-
== Description ==
+
{{Addons|
-
'''gg_afk_punish''' is used to punish players who are "Away from Keyboard" for a certain number of rounds.
+
 
 +
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.
*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>
+
*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|
-
== Variables ==
+
cfg_contents=<pre>// ============================================================================
-
'''gg_afk_punish''' contains the following cvars that can be found in your server's <span style="color:red">../cfg/gungame51/gg_punsihment_settings.cfg</span> file:<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
Personal tools