GithubHelp home page GithubHelp logo

stormfusions / storm-afk-system Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 41 KB

The AFK System is a Lua-based solution designed to enhance player engagement on Garry's Mod servers. It prompts players with a question after a period of inactivity. Failing to answer correctly within a given timeframe results in the player being considered AFK and subject to being kicked, thus ensuring active server participation.

License: MIT License

Lua 100.00%
afk afk-checks garrys-mod garrysmod gmod gmod-addon gmod-lua gmod-server

storm-afk-system's Introduction

Storm AFK System for Garry's Mod

About

The AFK System is a Lua-based solution designed to enhance player engagement on Garry's Mod servers. It prompts players with a question after a period of inactivity. Failing to answer correctly within a given timeframe results in the player being considered AFK and subject to being kicked, thus ensuring active server participation.

Features

  • Configurable AFK Timer: Customize the duration of inactivity before the AFK check is initiated.
  • Question-Based AFK Check: Engage players with simple math questions to determine their presence.
  • Client-Side UI: Presents players with an intuitive interface for answering the AFK question.
  • Server-Side Validation: Responses are validated server-side to maintain security.
  • Customizable Messages and UI: Tailor the AFK system's messages and UI colors to fit your server's theme.
  • Rewards for Response: Incentivize players to respond to the AFK check with customizable rewards.

Installation

  • Copy Lua Files: Place the folder into your server's garrysmod/addons

  • Configure the System: Adjust settings in StormAFK.Config.lua to set your AFK timer, questions, UI colors, and messages.

  • Restart Your Server: Apply the changes by restarting your Garry's Mod server.

Configuration

Edit afk_config.lua to customize the AFK system:

  • AFKTimerDisplay: Time in seconds before showing the AFK check.
  • AFKTimertoKick: Time allowed for the player to answer the AFK question.
  • questions: List of questions and their answers for the AFK check.
  • bannerColor, afkTagColor, afkTagName, afkMessageColor: Customize the appearance of the AFK check UI and messages.
  • kickMessage: The message shown to players who fail the AFK check.
  • reward: Function defining the reward given to players who successfully respond to the AFK check.

Usage

The system is designed to automatically trigger an AFK prompt after a predetermined period of time. Players must respond correctly to this prompt within a specified timeframe to avoid being kicked from the server.

Images

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Support

For support, open an issue on GitHub

storm-afk-system's People

Contributors

stormfusions avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.