Опубліковано П'ятниця в 06:002 дн Адміністратор Ranks Points Плагін був розроблений, надихаючись плагіном [Levels Ranks], і запозичує більшу частину своїх функцій, а також базу даних. Це означає, що плагін RanksPoints може бути інтегрований з LrWeb або GameCMS аналогічно [Levels Ranks]. У процесі розробки було можливості повністю перевірити плагін, у його роботі можуть виявлятися помилки. Якщо ви виявите проблеми, повідомте про це для їх виправлення.RanksPoints система базується на простому принципі: гравці роблять різноманітні дії у грі, в результаті яких вони або набувають, або втрачають очки досвіду. Досягнення чи втрата певного обсягу цих окулярів веде до отримання відповідного рангу. Кількість доступних рангів може бути налаштована та відредагована на розсуд.Модулі:Module - GeoIPОсновний конфіг (Config.yml)# Configuration file for RankPoints # Number of awarded points # Points for Kill - the number of points added to a player for killing an opponent. PointsForKill: 5 # Points for Death - the number of points subtracted from a player for dying. PointsForDeath: -5 # Points for Assist - the number of points added to a player for assisting in a kill. PointsForAssist: 1 # Points for Suicide - the number of points subtracted from a player for committing suicide. PointsForSuicide: -6 # Points for Headshot - additional points for a headshot kill. PointsForHeadshot: 1 # Points per Round Win - the number of points added to a player for their team winning a round. PointsPerRoundWin: 2 # Points per Round Loss - the number of points subtracted from a player for their team losing a round. PointsPerRoundLoss: -2 # Points for MVP - the number of points added to a player for earning the MVP title of a round. PointsPerMVP: 3 # Points for NoScope AWP Kill - additional points for killing without using the AWP scope. PointsForNoScopeAWP: 1 # Points for Bomb Defusal PointsForBombDefusal: 2 # Points for Bomb Exploded PointsForBombExploded: 2 # Points for Bomb Planting - the number of points added to a player for successfully planting the bomb. PointsForBombPlanting: 2 # Points for Bomb Dropping - the number of points subtracted from a player for dropping the bomb. PointsForBombDropping: -2 # Points for Bomb Pickup - the number of points added to a player for picking up the bomb. PointsForBombPickup: 1 # Points for Wallbang - the number of points added to a player for getting a kill through a wall. PointsForWallbang: 3 # Points for Hostage Follows PointsForHostageFollows: 2 # Points for Hostage Stops Following PointsForHostageStopsFollowing: -2 # Points for Hostage Rescued PointsForHostageRescued: 4 # Points for Kill Through Smoke - the number of points added to a player for killing an enemy through a smoke screen. PointsForKillThroughSmoke: 3 # Points for Blind Kill - the number of points added to a player for getting a kill while blinded. PointsForBlindKill: 5 # RanksPoints Parameters # Displaying clan tags for ranks of players. true - enabled, false - disabled. EnableClanTags: True # Minimum number of players for experience gain - players only earn experience if this number of players is on the server. GetActivePlayerCountMsg: "[ {Yellow}RanksPoints {White}] A minimum of {Red}{MIN_PLAYERS} {White}players is required for experience gain." MinPlayersForExperience: 4 # Enabling or disabling bonus experience for special nicknames. EnableSpecialNicknameBonus: true # Experience multiplier for special nicknames. BonusMultiplierForSpecialNickname: 1.5 # String to search for in the nickname to apply the multiplier. SpecialNicknameContains: "example.com" # Enabling or disabling awarding points for bot kills. true - enabled, false - disabled. GivePointsForBotKills: False # All RanksPoints Messages # Messages for experience gain PointsChangeMessage: "[ {Yellow}RanksPoints{White} ] Your experience: {COLOR} {POINTS} [{SIGN}{CHANGE_POINTS} for {REASON}]" # Events SuicideMessage: "suicide" SuicideMessageColor: "{Red}" DeathMessage: "death" DeathMessageColor: "{Red}" KillMessage: "kill" KillMessageColor: "{Green}" NoScopeAWPMessage: "AWP kill without scope" NoScopeAWPMessageColor: "{Blue}" HeadshotMessage: "headshot" HeadshotMessageColor: "{Yellow}" AssistMessage: "assist" AssistMessageColor: "{Blue}" RoundWinMessage: "round win" RoundWinMessageColor: "{Green}" RoundLossMessage: "round loss" RoundLossMessageColor: "{Red}" MVPMessage: "MVP" MVPMessageColor: "{Gold}" BombDefusalMessage: "bomb defusal" BombDefusalMessageColor: "{Green}" BombExplodedMessage: "bomb exploded" BombExplodedMessageColor: "{Green}" BombPlantingMessage: "bomb planting" BombPlantingMessageColor: "{Green}" BombDroppingMessage: "bomb dropping" BombDroppingMessageColor: "{Red}" BombPickupMessage: "bomb pickup" BombPickupMessageColor: "{Green}" WallbangMessage: "wallbang" WallbangMessageColor: "{Purple}" HostageFollowsMessage: "hostage follows" HostageFollowsMessageColor: "{Green}" HostageStopsFollowingMessage: "hostage stops following" HostageStopsFollowingMessageColor: "{Red}" HostageRescuedMessage: "hostage rescued" HostageRescuedMessageColor: "{Blue}" KillThroughSmokeMessage: "убийство через дым" KillThroughSmokeMessageColor: "{Green}" BlindKillMessage: "убийство в состоянии ослепления" BlindKillMessageColor: "{Yellow}" # Rank Up Message. RankUpMessage: Your rank has been upgraded to {RANK_NAME}! # Rank Down Message. RankDownMessage: Your rank has been downgraded to {RANK_NAME}. # !rank RankCommandMessage : "[ {Yellow}RanksPoints {White}] Rank: {Green}{RANK_NAME} {White}| Position: {Blue}{PLACE}/{TOTAL_PLAYERS} {White}| Experience: {Gold}{POINTS} {White}| Kills: {Green}{KILLS} {White}| Deaths: {Red}{DEATHS} {White}| KDR: {Yellow}{KDR} {White}| Server Time: {Gold}{PLAY_TIME}" TimeFormat: "{0}d {1}h {2}min" # Enabling or disabling the !rank command IsRankCommandEnabled: true # !top TopCommandIntroMessage : "[ {Blue}Top Players{White} ]" TopCommandPlayerMessage: "{INDEX}. {Grey}{NAME} - {White}{RANK} {Grey}- {Blue}{POINTS} points" TopCommandNoDataMessage: "[ {Red}Error{White} ] No data available for top players." TopCommandErrorMessage: "[ {Red}Error{White} ] An error occurred while executing the command." # Enabling or disabling the !top command IsTopCommandEnabled: true # !topkills TopKillsCommandIntroMessage: "[ {Green}Top Killers{White} ]" TopKillsCommandPlayerMessage: "{INDEX}. {Grey}{NAME} - {Green}{KILLS} kills{White}" TopKillsCommandNoDataMessage: "[ {Red}Error{White} ] No data available for top killers." TopKillsCommandErrorMessage: "[ {Red}Error{White} ] An error occurred while executing the command." # Enabling or disabling the !topkills command IsTopkillsCommandEnabled: true # !topdeaths TopDeathsCommandIntroMessage: "[ {Red}Top Deaths{White} ]" TopDeathsCommandPlayerMessage: "{INDEX}. {Grey}{NAME}{White} - {Red}{DEATHS} deaths{White}" TopDeathsCommandNoDataMessage: "[ {Red}Error{White} ] No data available for top deaths." TopDeathsCommandErrorMessage: "[ {Red}Error{White} ] An error occurred while executing the command." # Enabling or disabling the !topdeaths command IsTopdeathsCommandEnabled: true # !topkdr TopKDRCommandIntroMessage: "[ {Yellow}Top KDR{White} ]" TopKDRCommandPlayerMessage: "{INDEX}. {Grey}{NAME}{White} - {Yellow}KDR: {KDR}" TopKDRCommandNoDataMessage: "[ {Red}Error{White} ] No data available for top KDR." TopKDRCommandErrorMessage: "[ {Red}Error{White} ] An error occurred while executing the command." # Enabling or disabling the !topkdr command IsTopkdrCommandEnabled: true # !toptime TopTimeCommandIntroMessage: "[ {Gold}Top Playtime{White} ]" TopTimeCommandPlayerMessage: "{INDEX}. {Grey}{NAME} - {Gold}{TIME}{White}" TopTimeCommandNoDataMessage : "[ {Red}Error{White} ] No data available for top playtime." TopTimeCommandErrorMessage: "[ {Red}Error{White} ] An error occurred while executing the command." TopTimeFormat: "{0}d {1}h {2}min" # Enabling or disabling the !toptime command IsToptimeCommandEnabled: true # !resetstats ResetStatsCooldownMessage: "[ {Red}RanksPoints {White}] You can only reset your stats once every 3 hours." ResetStatsSuccessMessage: "[ {Yellow}RanksPoints {White}] Your stats have been reset." ResetStatsCooldownHours: "3" # Enabling or disabling the !resetstats command IsResetstatsCommandEnabled: true # !ranks RanksCommandIntroMessage: "[ {Gold}Rank List{White} ]" RanksCommandRankMessage: "{NAME} - {Green}{EXPERIENCE} experience{White}" RanksCommandNoDataMessage: "[ {Red}Error{White} ] No data available for ranks." RanksCommandErrorMessage: "[ {Red}Error{White} ] An error occurred while executing the command." # Enabling or disabling the !ranks command IsRanksCommandEnabled: true # !lvl LvlCommandIntroMessage: "[ {Gold}Available Commands{White} ]" RankCommandDescription: "- {Green}!rank {White}- Shows your current rank and stats" TopCommandDescription: "- {Green}!top {White}- Shows the top 10 players by points" TopKillsCommandDescription: "- {Green}!topkills {White}- Shows the top 10 players by kills" TopDeathsCommandDescription: "- {Green}!topdeaths {White}- Shows the top 10 players by deaths" TopKDRCommandDescription: "- {Green}!topkdr {White}- Shows the top 10 players by KDR" TopTimeCommandDescription: "- {Green}!toptime {White}- Shows the top 10 players by playtime" ResetStatsCommandDescription: "- {Green}!resetstats {White}- Reset your stats (can be used once every 3 hours)" RanksCommandDescription: "- {Green}!ranks {White}- Shows a list of all ranks and the required experience to achieve them" TagRankCommandDescription: "- {Green}!tagrank {White}- Enables or disables displaying your clan tag" # Enabling or disabling the !lvl command IsLvlCommandEnabled: true # !tagrank TagRankEnabledMessage: "[ {Yellow}RanksPoints {White}] Your clan tag will be displayed again starting from the next round." TagRankDisabledMessage: "[ {Yellow}RanksPoints {White}] Your clan tag will no longer be displayed starting from the next round." # Enabling or disabling the !tagrank command IsTagRankCommandEnabled: true(settings_ranks.yml)- id: 0 name: Silver - I minExperience: 0 clanTag: '[Silver - I]' - id: 1 name: Silver - II minExperience: 10 clanTag: '[Silver - II]' - id: 2 name: Silver - III minExperience: 25 clanTag: '[Silver - III]' - id: 3 name: Silver - IV minExperience: 50 clanTag: '[Silver - IV]' - id: 4 name: Silver Elite minExperience: 75 clanTag: '[Silver Elite]' - id: 5 name: Silver - Master Guardian minExperience: 100 clanTag: '[Silver - MG]' - id: 6 name: Gold Star - I minExperience: 150 clanTag: '[Gold Star - I]' - id: 7 name: Gold Star - II minExperience: 200 clanTag: '[Gold Star - II]' - id: 8 name: Gold Star - III minExperience: 300 clanTag: '[Gold Star - III]' - id: 9 name: Gold Star - Master minExperience: 500 clanTag: '[Gold Star - M]' - id: 10 name: Master Guardian - I minExperience: 750 clanTag: '[Master Guardian - I]' - id: 11 name: Master Guardian - II minExperience: 1000 clanTag: '[Master Guardian - II]' - id: 12 name: Master Guardian Elite minExperience: 1500 clanTag: '[Master Guardian Elite]' - id: 13 name: Distinguished Master Guardian minExperience: 2000 clanTag: '[Distinguished MG]' - id: 14 name: Legendary Eagle minExperience: 3000 clanTag: '[Legendary Eagle]' - id: 15 name: Legendary Eagle Master minExperience: 5000 clanTag: '[Legendary Eagle M]' - id: 16 name: Supreme Master First Class minExperience: 7500 clanTag: '[Supreme M-FC]' - id: 17 name: Global Elite minExperience: 10000 clanTag: '[Global Elite]'Weapons.yml- WeaponName: knife Points: 10 MessageColor: '{LightYellow}' KillMessage: knife kill - WeaponName: awp Points: 5 MessageColor: '{Blue}' KillMessage: precise AWP shotdbconfig.json{ "DbHost": "YourHost", "DbUser": "YourUser", "DbPassword": "YourPassword", "DbName": "YourDatabase", "DbPort": "3306" "Name": "lvl_base" }Config.yml!top TopCommandIntroMessage : "[ {Blue}Топ гравців{White} ]" TopCommandPlayerMessage: "{INDEX}. {Grey}{NAME} - {White}{RANK} {Grey}- {Blue}{POINTS} очок" TopCommandNoDataMessage: "[ {Red}Помилка{White} ] Немає даних про топ-гравців." TopCommandErrorMessage: "[ {Red}Помилка{White} ] Виникла помилка під час виконання команди." # Увімкнення або вимкнення команди !top IsTopCommandEnabled: true # !topkills TopKillsCommandIntroMessage: "[ {Green}Топ гравців з вбивств{White} ]" TopKillsCommandPlayerMessage: "{INDEX}. {Grey}{NAME} - {Green}{KILLS} вбивств{White}" TopKillsCommandNoDataMessage: "[ {Red}Помилка{White} ] Немає даних про топ-гравців із вбивств." TopKillsCommandErrorMessage: "[ {Red}Помилка{White} ] Виникла помилка під час виконання команди." # Увімкнення або вимкнення команди !topkills IsTopkillsCommandEnabled: true # !topdeaths TopDeathsCommandIntroMessage: "[ {Red}Топ гравців по смертях{White} ]" TopDeathsCommandPlayerMessage: "{INDEX}. {Grey}{NAME}{White} - {Red}{DEATHS} смертей{White}" TopDeathsCommandNoDataMessage: "[ {Red}Помилка{White} ] Немає даних про топ-гравців зі смертей." TopDeathsCommandErrorMessage: "[ {Red}Помилка{White} ] Виникла помилка під час виконання команди." # Увімкнення або вимкнення команди !topdeaths IsTopdeathsCommandEnabled: true # !topkdr TopKDRCommandIntroMessage: "[ {Yellow}Топ гравців по KDR{White} ]" TopKDRCommandPlayerMessage: "{INDEX}. {Grey}{NAME}{White} - {Yellow}KDR: {KDR}" TopKDRCommandNoDataMessage: "[ {Red}Помилка{White} ] Немає даних про топ-гравців по KDR." TopKDRCommandErrorMessage: "[ {Red}Помилка{White} ] Виникла помилка під час виконання команди." # Увімкнення або вимкнення команди !topkdr IsTopkdrCommandEnabled: true # !toptime TopTimeCommandIntroMessage: "[ {Gold}Топ гравців за часом на сервері{White} ]" TopTimeCommandPlayerMessage: "{INDEX}. {Grey}{NAME} - {Gold}{TIME}{White}" TopTimeCommandNoDataMessage : "[ {Red}Помилка{White} ] Немає даних про топ-гравців за часом на сервері." TopTimeCommandErrorMessage: "[ {Red}Помилка{White} ] Виникла помилка під час виконання команди." TopTimeFormat: "{0}д {1}год {2}хв" # Увімкнення або вимкнення команди !toptime IsToptimeCommandEnabled: true # !resetstats ResetStatsCooldownMessage: "[ {Red}RanksPoints {White}] Скинути статистику можна лише раз на 3 години." ResetStatsSuccessMessage: "[ {Yellow} RanksPoints {White}] Ваша статистика скинута." ResetStatsCooldownHours: "3" # Увімкнення або вимкнення команди !resetstats IsResetstatsCommandEnabled: true # !ranks RanksCommandIntroMessage: "[ {Gold}Список звань{White} ]" RanksCommandRankMessage: "{NAME} - {Green}{EXPERIENCE} досвіду{White}" RanksCommandNoDataMessage: "[ {Red}Помилка{White} ] Немає даних про звання." RanksCommandErrorMessage: "[ {Red}Помилка{White} ] Виникла помилка під час виконання команди." # Увімкнення або вимкнення команди !ranks IsRanksCommandEnabled: true # !lvl LvlCommandIntroMessage: "[ {Gold}Список доступних команд{White} ]" RankCommandDescription: "- {Green}!rank {White}- Показує ваше поточне звання та статистику" TopCommandDescription: "- {Green}!top {White}- Показує топ-10 гравців за очками" TopKillsCommandDescription: "- {Green}!topkills {White}- Показує топ-10 гравців із вбивств" TopDeathsCommandDescription: "- {Green}!topdeaths {White}- Показує топ-10 гравців по смертях" TopKDRCommandDescription: "- {Green}!topkdr {White}- Показує топ-10 гравців з KDR" TopTimeCommandDescription: "- {Green}!toptime {White}- Показує топ-10 гравців за часом на сервері" ResetStatsCommandDescription: "- {Green}!resetstats {White}- Скинути свою статистику (можна використовувати раз на 3 години)" RanksCommandDescription: "- {Green}!ranks {White}- Показує список усіх звань та досвіду, необхідного для їх отримання" TagRankCommandDescription: "- {Green}!tagrank {White}- Включає або вимикає відображення вашого клан-тегу" # Увімкнення або вимкнення команди !lvl IsLvlCommandEnabled: true # !tagrank TagRankEnabledMessage: "[ {Yellow}RanksPoints {White}] Клан-тег буде знову відображатися, починаючи з наступного раунду." TagRankDisabledMessage: "[ {Yellow}RanksPoints {White}] Клан-тег більше не буде відображатися, починаючи з наступного раунду." # Увімкнення або вимкнення команди !tagrank IsTagRankCommandEnabled: truesettings_ranks.yml- id: 1 name: Срібло - I minExperience: 0 - id: 2 name: Срібло - II minExperience: 10 - id: 3 name: Срібло - III minExperience: 25 - id: 4 name: Срібло - IV minExperience: 50 - id: 5 name: Срібло Еліта minExperience: 75 - id: 6 name: Срібло - Великий магістр minExperience: 100 - id: 7 name: Золота Зірка - I minExperience: 150 - id: 8 name: Золота Зірка - II minExperience: 200 - id: 9 name: Золота Зірка - III minExperience: 300 - id: 10 name: Золота Зірка - Магістр minExperience: 500 - id: 11 name: Магістр-охоронець - I minExperience: 750 - id: 12 name: Магістр-охоронець - II minExperience: 1000 - id: 13 name: Магістр-охоронець - Еліта minExperience: 1500 - id: 14 name: Заслужений магістр-охоронець minExperience: 2000 - id: 15 name: Легендарний Беркут minExperience: 3000 - id: 16 name: Легендарний Беркут-магістр minExperience: 5000 - id: 17 name: Великий Магістр - Вищий Ранг minExperience: 7500 - id: 18 name: Світова Еліта minExperience: 10000Weapons.yml- WeaponName: knife Points: 10 MessageColor: '{Red}' KillMessage: вбивство ножем - WeaponName: awp Points: 5 MessageColor: '{Blue}' KillMessage: точний постріл з AWPdbconfig.json{ "DbHost": "YourHost", "DbUser": "YourUser", "DbPassword": "YourPassword", "DbName": "YourDatabase" "Name": "lvl_base" }Команди для чату!rankпоказує статистику: поточне звання, необхідна кількість очок до наступного звання, ваш досвід, кількість вбивств, смертей та коефіцієнт вбивств до смертей (KDR).!topвиводить список десяти найкращих гравців за очками досвіду.!topkillsвиводить список десяти найкращих гравців із вбивств.!topdeathsвиводить список десяти найкращих гравців по смертях.!topkdrвиводить список десяти найкращих гравців з KDR.toptimeпоказує топ-10 гравців за часом на сервері!resetstatsСкинути свою статистику (можна використовувати раз на 3 години)!ranksпоказує список усіх звань та досвіду, необхідного для їх отримання!lvlпоказує список усіх доступних команд та їх функцій!tagrankвключає або вимикає відображення клан-тегуКоманди для консоліrp_reloadconfigперезавантажує конфігураційний файл Config.ymlrp_reloadranksперезавантажує файл конфігурації settings_ranks.yamlrp_reloadweaponsперезавантажує конфігураційний файл Weapons.yamlrp_resetranksочищує статистику гравця. Використання: rp_resetranks ( data-type: expочищення values, rank; statsочищення kills, deaths, shoots, hits, headshots, assists, round_win, round_lose; timeочищення playtime) Інформація Додав Ciko Додано 05.09.25 Категорія Плагіна Перегляд файла
Приєднуйтесь до обговорення
Ви можете написати зараз та зареєструватися пізніше. Якщо у вас є обліковий запис, авторизуйтесь, щоб опублікувати від імені свого облікового запису.