Giter Club home page Giter Club logo

cs2-ranks's Introduction

Player Ranking

Each player is assigned a rank based on their accumulated experience points. Ranks range from "None" to the prestigious "The Global Elite."

Experience Points

Players earn experience points for various in-game achievements, such as kills, assists, and MVP awards. Experience contributes to both their rank and overall score.

Level Progression

Players progress through levels based on their experience points. Level achievements are announced in the chat, providing recognition for their dedication and skill.

Events and Rewards

The plugin tracks events like round victories, defeats, and MVP awards, awarding or deducting experience points accordingly.

Database Integration

Player statistics are stored in a MySQL database, allowing for persistent tracking of player progress even after disconnecting.

Top Players List

Players can check the top-ranking players on the server, including their rank, experience points, and kill/death ratio.

Command for Configuration Reload

Server administrators can reload the plugin configuration on-the-fly using the css_lr_reload console command.

Customizable Configuration

Server administrators can fine-tune the plugin's behavior, including experience point rewards for specific events, minimum player count for XP gain, and more.

Installation

  1. Install CounterStrike Sharp and Metamod:Source
  2. Download Ranks
  3. Unzip the archive and upload it to the game server

Commands

Command Description
css_lr_reload reloads the configuration (server console only)
css_lvl or !lvl opens a menu where you can view all ranks
css_top or !top or top displaying the top 10 players in chat
css_rank or !rank or rank chat statistics display
css_lr_giveexp <username or #userid> [exp (def. 0)] (@css/root) allows you to give the player experience
css_lr_takeexp <username or #userid> [exp (def. 0)] (@css/root) allows you to take away a player experience
css_lr_enabled 1/0 allows you to disable ranks (useful for minigame servers) (ONLY SERVER CONSOLE) you can put it in the cfg

Config

Other

  • TableName: "lvl_base",         ; // Database table name
  • Prefix: "[ {BLUE}Ranks {DEFAULT}]"        // Chat prefix
  • UseCommandWithoutPrefix: true         // Is it possible to write top and rank without the prefix? true - yes | false - no
  • ShowExperienceMessages: true         // Do I show the player chat messages how much experience he has gained? true - yes | false - no.
  • MinPlayers: 4           // Minimum number of players to gain experience
  • InitialExperiencePoints: 1000        // How much experience a player will have when they first log into the server

Events

  • EventRoundMvp: 12       // Amount of experience for MVP
  • EventPlayerDeath:
    • Kills: 13                   // Amount of experience gained per kill
    • Deaths: 20                  // The amount of experience you lose per death
    • Assists: 5                  // The amount of experience you get for assisting in a kill
    • KillingAnAlly: 6              // The amount of experience you lose for killing an ally
  • EventPlayerBomb:
    • DroppedBomb: 5              // The amount of experience lost for losing a bomb
    • PlantedBomb: 3              // The amount of experience you get for planting a bomb
    • DefusedBomb: 3              // The amount of experience you get for defusing a bomb
    • PickUpBomb: 3                     // The amount of experience you get for picking up a bomb
  • EventRoundEnd:
    • Winner: 5                      // The amount of experience gained per round won
    • Loser: 8                  // The amount of experience lost for losing a round

Weapons

You get extra experience for killing with this weapon (you can add your own weapons without weapon_)

  • knife: 5
  • awp: 2

Database connection

  • Host: "HOST"
  • Database: "DATABASE"
  • User: "USER"
  • Password: "PASSWORD"

Color Tags

{DEFAULT}, {WHITE}, {DARKRED}, {GREEN}, {LIGHTYELLOW}, {LIGHTBLUE}, {OLIVE}, {LIME}, {RED}, {LIGHTPURPLE}, {PURPLE}, {GREY}, {YELLOW}, {GOLD}, {SILVER}, {BLUE}, {DARKBLUE}, {BLUEGREY}, {MAGENTA}, {LIGHTRED}, {ORANGE}

cs2-ranks's People

Contributors

celicat avatar killerroi avatar panikajoreserv avatar partiusfabaa avatar phantomyopta avatar rcon420 avatar st1ng2 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.