Scripts.included.gg afk punish

From GunGame5 Documentation

(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
== Variables ==
== Variables ==
-
'''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>// ============================================================================
+
'''gg_afk_punish''' contains the following cvars that can be found in your server's <span style="color:red">../cfg/gungame51/gg_punishment_settings.cfg</span> file:<pre>// ============================================================================
// >> AFK ROUNDS
// >> AFK ROUNDS
// ============================================================================
// ============================================================================

Revision as of 15:35, 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 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