Code Monkey home page Code Monkey logo

sm-server-hop's Introduction

Server Hop

Description

GFL's Server Hop plugin that allows players to view and connect to other game servers within GFL. This plugin also includes rotating advertisements for each servers from the list.

Requirements

  • GFL Core - The core of the GFL SourceMod plugins and includes useful natives for logging purposes.
  • GFL MySQL - GFL's MySQL plugin for handling database connection.

ConVars

  • sm_gflsh_advert_interval => Interval in seconds to display a server advertisement to chat (default 65).
  • sm_gflsh_gameid => The game ID used when searching for servers within the server list. Using a value of 0 will display all servers regardless of game (default 0).
  • sm_gflsh_locationid => The location ID used when searching for servers within the server list. Using a value of 0 will display all servers regardless of location (default 0).
  • sm_gflsh_refresh_interval => How often in seconds to refresh the server list (default 500).
  • sm_gflsh_tablename => The table where all servers are stored in (default "gfl_serverlist").
  • sm_gflsh_gametablename => The table where all games are stored in (default "gfl_gamelist").
  • sm_gflsh_advancedebug => Whether to enable verbose logging (default 0).
  • sm_gflsh_disableoffline => If a server has a maxplayers count of 0, do not advertise or show this server on the list (default 1).
  • sm_gflsh_disablecurrent => If enabled, the server the player is playing on will not be advertised or show on the server list (default 1).
  • sm_gflsh_db_priority => Database priority to use for queries executed by the plugin (default 1).
  • sm_gflsh_db_createtable => If enabled, the plugin will attempt to create the server and game list table automatically if it doesn't exist (default 0).
  • sm_gflsh_new_server_announce => If enabled, will announce any new servers on round start and rotate (default 0).
  • sm_gflsh_use_socket => When enabled, uses a socket to send a A2S_INFO query to the game server to collect its information instead of relying on database values (default 1).
  • sm_gflsh_abbr => If enabled, the server's game abbreviation will be prepended to the advertisement message (default 1).
  • sm_gflsh_new_server_announce_method => The method to use when displaying new servers on round start. 0 = PrintToChatAll(). 1 = Loop through each client and call PrintToChat(client, "...") (default 0).
  • sm_gflsh_server_ip => If the plugin fails to get the current server's IP address due to NAT-related issues or similar, you can set this CVar to represent the server IP (default "").

Credits

  • Christian Deacon - Creator
  • rig0r - Socket code from one of the original Server Hop plugins released on AlliedMods.
  • Blueberry - Russian translation file.

sm-server-hop's People

Contributors

1zc avatar gamemann avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  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.