Pisex / cs2-rank

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rank Plugin for Metamod with MySQL Integration

This project is not yet ready to be tested on a real server, it is still in development. There's not a lot of work left before releasing a BETA :)

Overview

Developed in partnership with VeryGames.

This is a rank plugin designed to work with Metamod, incorporating a MySQL database for data storage. The plugin provides a point system that tracks player performance in a Counter-Strike 2. It includes various features to manage and update player ranks based on their in-game actions.

Thank to CS2Fixe project (Poggy & Xen) for providing a solid code base.

Want to contribute ?

  • If you want to contribute, you can check the todo list and make a pull request once you have made a feature.

  • If a feature is not on the todo list, you can create an issue to discuss and check if we implement your idea :)

  • If you don't have the required skills in C++, you can just test the plugin and create issues if needed :)

TODO List

Security

  • For hibernation to false
  • Unload plugin if there is no mysql connection

Configuration

  • Mysql
  • Core
  • Phrases
  • Points

Core

  • Rank stats
  • Sessions stats
  • Translation system
  • Colors

Commands

  • Antiflood system
  • !rankh
  • !rankannouce
  • !rank
  • !stats
  • !top
  • !restrank
  • !topsession
  • !ranksession
  • !statsession

Event triggers

  • Player death by weapon
    • Attacker
    • Victim
    • Assist
  • Player death by headshot
    • Attacker
    • Victim
    • Assist
  • Player death by knife
    • Attacker
    • Victim
    • Assist
  • Bomb planted
    • Team
    • Planter (Need to fix the phrases that are not sent)
  • Bomb Exploded
    • Team
    • Planter (Need to fix the phrases that are not sent)
    • Need to fix the phrases that are not sent
  • Bomb Defused
    • Team
    • Defuser (Need to fix the phrases that are not sent)

Stats triggers

  • Register last connection on connect and disconnect
  • Stats per weapons
  • Headshot
  • Knife
  • Kill T
  • Kill CT
  • Death T
  • Death CT
  • Death Suicide
  • Bomb planted
  • Bomb exploded
  • Bomb defused
  • Teamkill T
  • Teamkill CT

Web page

  • Global rank system
  • Stats page per user

Require

Features

Provider rank and stats system, as well a web interface

Commands

The plugin includes the following commands:

  • !rankh - Display available commands.
  • !rankannouce - Allows players to disable/enable points annoucement.
  • !rank - Allows players to check their current rank and points.
  • !stats - Displays players statistics.
  • !top - Display the top-ranked players.
  • !resetrank - Resets a player's rank and points.
  • !ranksession - Displays rank for the current map.
  • !topsessions - Displays players statistics for the current map;
  • !statssessions - Displays players statistics from for current map.

Configuration

The plugin offers a configuration file that allows you to customize its behavior according to your server's requirements. You can modify settings such as points gained or deducted for different actions and other gameplay-related parameters.

Moreover, support translation and colors !

  • Points file: addons/vgrank/configs/points.cfg
  • Translations file : addons/vgrank/configs/phrases.cfg
  • Core file : addons/vgrank/configs/core.cfg

About


Languages

Language:C++ 81.2%Language:Python 17.5%Language:C 0.9%Language:Shell 0.2%Language:Batchfile 0.2%