Giter VIP home page Giter VIP logo

fire-players-stats's Introduction

Fire Players Stats - Statistics plugin for CS:GO servers

Statistics Information:

  • Support only CS:GO.
  • Statistics work based on ELO Levels Ranks formula. Its essence is that you get 1000 experience points and after calibration average rank. Depending on how well you play, your rank depends.
  • Statistics only works with MySQL and is designed to work with WEB Interface that has FPS support!
  • Ranks number of is not limited. Setup is done through the command sm_fps_create_default_ranks or manually by sending an SQL query.
  • Combined database for several servers with a normal structure.
  • Weapon statistics are stored in separate table, because of which, when new weapon is released, it is not necessary to change the plugin and database.
  • Statistics is trying to fix the superiority of new players over old ones when calculating points. This is calibration function!
  • KillStrick: Additional points are credited within 10 seconds after the kill, after which there is a reset.
  • It's possible to set limit for resetting time statistics for the user.
  • Information on gained/lost points is displayed only at the end of the round or player die.
  • Point values ​​are stored in float.
  • Plugin supports ability to make rank transfers.
  • Plugin supports bonus for killing with particular weapon taking into account map (You can specify different for different maps).

It's important to understand that statistics on functionality are very similar to LR, because it was taken as a basis, but plugin was written completely from scratch! He is deprived of possible problems of LR, but may have new ones!

List of modules for statistics

Thanks for the implementation ideas: Someone, Wend4r, M0st1ce.

Plugin Commands:

For players:

sm_pos, sm_position - Player Position on Server.
sm_stats, sm_rank, sm_fps - Statistics main menu.
sm_top - List of available tops. Using the points, kdr, time, clutch arguments opens the corresponding top.​

For admin:

sm_fps_create_default_ranks - Creating default rank preset.
⋅⋅⋅ 0 - Default CS:GO Competitive ranks (18 lvl)
⋅⋅⋅ 1 - Danger Zone Ranks (15 lvl)
⋅⋅⋅ 2 - Facet ranks (10 lvl) sm_fps_reset_all_stats - Reset all server statistics.

Requirements

Installation

  1. Download current version from repository..

  2. Place contents of archive in desired directories on server.

  3. Add a section with your database settings to addons/sourcemod/configs/databases.cfg:

    "fire_players_stats"
    {
    	"driver"			"mysql"
    	"host"				""
    	"database"			""
    	"user"				""
    	"pass"				""
    	"port"				"3306"
    }
    
  4. Start server so that plugin creates necessary tables in database..

  5. Enter the sm_fps_create_default_ranks command to use default ranks preset.
    0 - Default CS:GO Competitive ranks (18 lvl),
    1 - Danger Zone Ranks (15 lvl),
    2 - Facet ranks (10 lvl),

    Or load rank settings manually by sending an SQL query to database, having previously adjusted it to your needs:
    INSERT INTO `fps_ranks` (`rank_id`, `rank_name`, `points`) 
    VALUES 
    	('1', 'Silver I',				'0'),
    	('1', 'Silver II',				'700'), 
    	('1', 'Silver III',				'800'), 
    	('1', 'Silver IV',				'850'), 
    	('1', 'Silver Elite',				'900'), 
    	('1', 'Silver Elite Master',			'925'), 
    	('1', 'Gold Nova I',				'950'), 
    	('1', 'Gold Nova II',				'975'), 
    	('1', 'Gold Nova III',				'1000'), 
    	('1', 'Gold Nova Master',			'1100'), 
    	('1', 'Master Guardian I',			'1250'), 
    	('1', 'Master Guardian II',			'1400'), 
    	('1', 'Master Guardian Elite',			'1600'), 
    	('1', 'Distinguished Master Guardian',		'1800'), 
    	('1', 'Legendary Eagle',			'2100'), 
    	('1', 'Legendary Eagle Master',			'2400'), 
    	('1', 'Supreme Master First Class',		'3000'), 
    	('1', 'The Global Elite',			'4000');

Topic on HLMOD. Support | Discord server.

fire-players-stats's People

Contributors

domikuss avatar gsnotifications avatar okyhp avatar rcon420 avatar tibarification avatar wend4r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fire-players-stats's Issues

FPS_HINTINFO error

Any idea why it says error when i type sm_fps_hint in cosole

sm 11

sm_fps_hint
[SM] Exception reported: [FPS] Invalid client index '0'.
[SM] Blaming: FirePlayersStats/FirePlayersStats.smx
[SM] Call stack trace:
[SM] [0] ThrowNativeError
[SM] [1] Line 195, FirePlayersStats\api.sp::IsValidClient
[SM] [2] Line 217, FirePlayersStats\api.sp::Native_FPS_ClientLoad
[SM] [4] FPS_ClientLoaded
[SM] [5] Line 152, FPS_HintInfo.sp::CommandHintStatus

Сброс статистики игроком

Предлагаю:
При сбросе статистики игроком, не сбрасывать playtime
в идеале перенести playtime и lastconnect в таблицу fps_players
мне кажется, это будет наиболее логично

логика в том, что человек сбрасывает свою СТАТИСТИКУ убийств смертей и так далее
но мне, как владельцу, важно знать сколько человек играть на сервере и не совсем понимаю зачем сбрасывать этот показатель

No found file: 'addons/sourcemod/configs/FirePlayersStats/settings.ini'

L 02/12/2023 - 01:25:47: [SM] Exception reported: No found file: 'addons/sourcemod/configs/FirePlayersStats/settings.ini'.
L 02/12/2023 - 01:25:47: [SM] Blaming: FirePlayersStats.smx
L 02/12/2023 - 01:25:47: [SM] Call stack trace:
L 02/12/2023 - 01:25:47: [SM] [0] SetFailState
L 02/12/2023 - 01:25:47: [SM] [1] Line 51, FirePlayersStats/config.sp::LoadConfigKV
L 02/12/2023 - 01:25:47: [SM] [2] Line 237, FirePlayersStats/config.sp::SetCvars
L 02/12/2023 - 01:25:47: [SM] [3] Line 167, scripting/FirePlayersStats.sp::OnPluginStart
L 02/12/2023 - 01:25:47: [SM] Unable to load plugin "FirePlayersStats.smx": Error detected in plugin startup (see error logs)

Results for this round points issue

After the update, my players get incorrect messages about points gained at the round end. ( I haven't changed anything only updated to the latest no error log).

Example: Result for this round: 2205.14 ( +1205.14 ) but +1205 isn't given.

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.