AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (v1.5 | May 17, 2023) (https://forums.alliedmods.net/showthread.php?t=339472)

born for gaming 09-12-2022 03:46

[CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (v1.5 | May 17, 2023)
 
7 Attachment(s)
[CSS/CSGO/ANY?]
SLAYER Custom MVP Anthem (v1.5 | May 17, 2023)


Description:
Allow player to set Custom MVP Anthem. I ported this CSGO MVP Plugin to CSS. And also added new features to it. I hope you Like it :)

New Features:
  1. Announcement of playing MVP Anthem both in Chat and Hint Messages. (Configured from CFG)
  2. Allows the Player to Preview MVP before Selecting it if he wants. You can also configure the preview time of the MVP or Disallow players to preview MVP from CFG File.
  3. Allows the player to Choose the same MVP that another player has.
  4. Players can make MVP Playlists of their favorite MVPs.[/B]
  5. You can Allow/Disallow players to make MVP Playlists from the CFG file.
  6. You can also set how many MVP Playlists a player can make from the CFG file.
  7. The Data of MVP Playlists will be saved in Sqlite Database.
  8. You can Allow/Disallow players to Choose the same MVP as another player had from the CFG file.
  9. Players can also choose Random MVP every time option. Which plays MVP randomly when the player becomes MVP. (Plugin Choose MVP randomly from those MVPs to which the player has access)
  10. New Category of Premium MVPs in MVP menu. Only those players can use Premium MVPs if they have certain Admin Flags/Steam IDs which are set in the MVP Songs Configuration File.
  11. In Premium MVP Menu only those Premium MVPs will show to the player to which he has access. OR Show all Premium MVPs but disable those Premium MVPs to which clients don't have access. (Can be config from the CFG file).
  12. you can allow a Premium MVP to the player by his Steam ID (You can allow many players as you want)
  13. You can add more MVPs or Change the admin Flags of MVPs without changing the Map or Restarting the Server. Just paste this command "sm_mvp_refresh" in Server Console after adding MVPs.
  14. A Random MVP Anthem will be played if BOT becomes an MVP player. (Can be config from the config file)
  15. You Can Preview MVP Anthem which you have access to use.
  16. You can add MVP Anthem Song Link (Music Video link) if you want.
  17. Don't play the specific number of Recent Random MVPs Anthem which are already Played. (Can be config from CFG file)
  18. You can add MVPs in the config file through the command: sm_mvp_load "mvp_folder_path" "number_of_mvp_to_load" "mvp_name_prefix" "mvp_sound_flag"
  19. If the MVP already exists in the config file then it will not be added again.
  20. You can also add the specific number of MVPs through the command.
  21. You can also add MVPs with any Prefix.
  22. You can also add Premium MVPs with any admin flags.
  23. You can see in Server Console which MVP is added in the CFG file and which already exists in the CFG file after using "sm_mvp_load" command.
  24. You can also see in Server Console that how many MVPs are now added in the CFG file and how many already exist in the CFG file after using "sm_mvp_load" command.
  25. You can change the Chat Messages or Menu Items Name from the translation File.
  26. Support morecolors.inc for CSS and Support multicolor.inc for CSGO

Requirements:
Sourcemod 1.8+
morecolors.inc - For CSS
multicolor.inc - For CSGO
FixHintColorMessages - For CSGO

Installation:
For CSS:
1. Upload files to your server.
2. Edit addons/sourcemod/configs/SLAYER_Mvp.cfg if you want to add more MVP anthems, and don't forget to upload your file to both server and Fastdl.
3. Change the Map or Restart Server.

For CSGO:
1. Install this https://github.com/Franc1sco/FixHintColorMessages
2. Upload files to your server.
3. Edit addons/sourcemod/configs/SLAYER_Mvp.cfg if you want to add more MVP anthems, and don't forget to upload your file to both server and fastdl.
4. Change Map or Restart Server.

Commands:
PHP Code:

!mvp // To open MVP Main Menu.
!mvpvol "volume" // To change the Listening volume of MVP from 0.0-1.0
// Commands for Admins with RCON Access
sm_mvp_refresh // To Reload MVP Configuration File.
sm_mvp_load "mvp_folder_path" "number_of_mvp_to_load" "mvp_name_prefix" "mvp_sound_flag" // To add MVPs in the CFG file. 

How to add MVPs through Command:
You can add MVP through this Command: sm_mvp_load "mvp_folder_path" "number_of_mvp_to_load" "mvp_name_prefix" "mvp_sound_flag"

"mvp_folder_path" - (Required) Enter the Path of the Folder in which MVPs Sounds are.
"number_of_mvp_to_load" - (Optional) Enter the Specific Number of MVPs you want to add to the CFG file from the Folder. "0" or less than "0" means adding all sound files in the CFG file from the given folder path.
"mvp_name_prefix" - (Optional) Enter the Prefix you want to add at the start of the name of every Sound in the CFG file. For Example, You can add a "[VIP]" Prefix at the start of the Premium MVPs Name. "" means no Prefix.
"mvp_sound_flag" - (Optional) Enter the Admin Flags you want to add to the Premium MVPs. For Example, You can add a "a" Flag to the Premium MVPs. "" means no Admin Flag (Normal MVP).

Screenshots


Games:
Counter-Strike: Source (Personally Tested ON)
Counter-Strike: Global Offensive (Personally Tested ON)
Team Fortress 2 (Maybe! Not tested) if you want to test on tf2 or any other source game then Download [CSS] SLAYER MVP.zip from below. According to Code, it should work.

ConVars:
PHP Code:

// This file was auto-generated by SourceMod (v1.11.0.6917)
// ConVars for plugin "SLAYER_Mvp.smx"


// How many recent Random MVPs can't play which are already played? (0 = Play any Random Mvp)
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "100.000000"
mvp_already_played "5"

// Announcement of playing MVP Anthem in (1 = Chat, 2 = Hint, 3 = Both)
// -
// Default: "3"
mvp_announce_type "3"

// Play Random MVP Anthem if bot becomes MVP? (0 = No, 1 = Yes)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mvp_bot "1"

// Allow Bots to use Premium MVPs? (0 = No, 1 = Yes)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mvp_bot_allow "1"

// Default MVP anthem volume.
// -
// Default: "1.0"
// Minimum: "0.000000"
// Maximum: "1.000000"
mvp_defaultvol "1.0"

// Enable/Disable SLAYER MVP plugin. (0 = Disabled, 1 = Enabled)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mvp_enabled "1"

// Allow players to Choose other players MVP? (0 = No, 1 = Yes)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mvp_player_enable "1"

// Allow players to Create MVP Playlist? (0 = No, 1 = Yes)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mvp_playlist_enable "1"

// How many Playlist a Player Can Make?
// -
// Default: "5"
// Minimum: "1.000000"
// Maximum: "20.000000"
mvp_playlist_max "5"

// Allow player to Preview MVP? (0 = No, 1 = Yes)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mvp_preview "1"

// MVP Anthem Preview Time in Seconds
// -
// Default: "10.0"
// Minimum: "1.000000"
mvp_preview_time "10.0"

// Show MVPs name in server console which are founded in given directory by using 'sm_mvp_load' cmd? (0 = No, 1 = Yes)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mvp_show_found "1"

// Show Premium MVPs (as Disabled) to which Client don't have Access? (0 = No, 1 = Yes)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mvp_show_premium "1" 

Configuration File:
PHP Code:

**********************************************************************************************************
  
Note: if you add any 'flag' or 'steam id' in MVP then the MVP will be shown in 'Premium MVPs' in MVP Menu
**********************************************************************************************************
"[VIP] BLACKPINK LISA - MONEY (XZEEZ & YONCE Remix)" // (Required) Name of the MVP show in Menu
{
    
"file"        "slayer/mvp/premium/BLACKPINK LISA - MONEY (XZEEZ & YONCE Remix).mp3" // (Required) Path of the MVP Song file
    
"link"        "{crimson}https://www.youtube.com/{lime}watch?v=l6as2uRma0k" // (Optional) Music Link of the MVP | leave it empty to not show link option in menu | You can use supported colors to make colorful link
    
"flag"        "a" // (Optional) Players with these admin flags can only use this MVP 
    
"steamid" // (Optional) And Players with these Steam IDs can also use this MVP
    
{
        
"1"     "STEAM_0:0:1502300338"
        "2"     "STEAM_0:1:867393630"
    
}



Screenshots:

Screenshots


Need More MVPs?
There are already 25 MVPs in the file.
Do you need more MVPs? No problem, I have 100 more awesome MVPs for you. Download them from here.

Changelog:

September 12, 2022 (v1.1):
  • Initial Release
    Total Downloads: CSS:8 | CSGO:23

September 14, 2022 (v1.2):
  • Important Note: Before installing and loading this plugin (if you are updating) then please remove all the previous files or Replace all these files with them
  • Now you can allow a Premium MVP to the player by his Steam ID (You can allow many players as you want)
  • Now when you Preview MVP then if any MVP is playing that time (It may be the MVP you preview before it) will STOP. So, you can easily and clearly listen to it.

January 05, 2023 (v1.3):
Total Downloads: CSS:71 | CSGO:178
  • Important Note: Before installing and loading this plugin (if you are updating) then please remove all the previous files or Replace all these files with them
  • Bug Fix: Premium MVPs with only Steam ID access show in the Normal MVP menu instead of the Premium MVP menu.
  • Now a Random MVP will be Played if BOT becomes an MVP player. (Can be turned off from CFG file)
  • Allow BOTs to play Premium MVP or NOT.
  • You can add MVP Anthem Song Link (Music Video link) if you want.
  • Don't play a specific number of Recent Random MVPs Anthem which are already Played. (Can be config from CFG file)
  • Optimize Code

March 17, 2023 (v1.4):
  • Important Note: Before installing and loading this plugin (if you are updating) then please remove all the previous files or Replace all these files with them
  • Now you can add MVPs in the config file through the command: sm_mvp_load "mvp_folder_path" "number_of_mvp_to_load" "mvp_name_prefix" "mvp_sound_flag"
  • If the MVP already exists in the config file then it will not be added again.
  • You can also add the specific number of MVPs through the command.
  • You can also add MVPs with any Prefix.
  • You can also add Premium MVPs with any admin flags.
  • You can see in Server Console which MVP is added in the CFG file and which already exists in the CFG file after using "sm_mvp_load" command.
  • You can also see in Server Console that how many MVPs are now added in the CFG file and how many already exist in the CFG file after using "sm_mvp_load" command.

May 17, 2023 (v1.5):
  • Important Note: Before installing and loading this plugin (if you are updating) then please remove all the previous files or Replace all these files with them
  • New Category Added in MVP Main Menu called 'Choose MVP Playlist'.
  • Now Players can make MVP Playlists of their Favorite MVPs.
  • You can Allow/Disallow players to make MVP playlists from the CFG file.
  • You can also set how many MVP Playlists a player can make from the CFG file.
  • The Data of MVP Playlists will be saved in Sqlite Database.
  • Those MVPs will be removed from the Player's Playlist Database automatically if Server Owner removes those MVPs from the Config file. This means if MVP in the Player's Playlist is not found in the CFG file then that MVP will be automatically removed from the player's playlist database when the player joins the server or when the SLAYER_Mvp will be loaded/reload.
  • Now you can Allow/Disallow players to Choose the same MVP as another player had from the CFG file.
  • Updated the Format of MVP Main Menu. Now Normal/Common Mvps will be shown in their own category called 'Common MVPs'.
  • Fix some minor bugs.

Donate:
If you like my work, you can donate to me via Steam Trade Offer

Credits:
Kento [Discord:Kento#2118]

Note:
If "[CSS] SLAYER MVP v1.5.zip" is not working properly in your server. Then download and install the "CSS_SLAYER_Mvp.smx" (Compiled with Sourcemod 1.10.0.6460) file.


.

born for gaming 09-14-2022 23:51

Re: [CSS/CSGO/ANY?] SLAYER MVP (Kento_MVP)
 
Update

September 14, 2022 (v1.2):
  • Important Note: Before installing and loading this plugin (if you are updating) then please remove all the previous files or Replace all these files with them
  • Now you can allow a Premium MVP to the player by his Steam ID (You can allow many players as you want)
  • Now when you Preview MVP then if any MVP is playing that time (It may be the MVP you preview before it) will STOP. So, you can easily and clearly listen to it.

paulo_crash 09-18-2022 17:25

Re: [CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (Kento_MVP)
 
Interesting, I'll be testing this version for CSGO and come back with some feedback.

Thanks for sharing for now. :bacon!::bacon!::bacon!:

born for gaming 09-18-2022 23:47

Re: [CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (Kento_MVP)
 
Quote:

Originally Posted by paulo_crash (Post 2789130)
Interesting, I'll be testing this version for CSGO and come back with some feedback.

I will be waiting.

Quote:

Originally Posted by paulo_crash (Post 2789130)
Thanks for sharing for now. :bacon!::bacon!::bacon!:

Welcome :)

born for gaming 01-05-2023 03:36

Re: [CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (Kento_MVP)
 
January 05, 2023 (v1.3):
  • Important Note: Before installing and loading this plugin (if you are updating) then please remove all the previous files or Replace all these files with them
  • Bug Fix: Premium MVP with only Steam ID access show in Normal MVP menu instead of Premium MVP menu.
  • Now a Random MVP will be Played if BOT becomes an MVP player. (Can be turn off from CFG file)
  • Allow BOTs to play Premium MVP or NOT.
  • You can add MVP Anthem Song Link (Music Video link) if you want.
  • Don't play a specific number of Recent Random MVPs Anthem which are already Played. (Can be config from CFG file)
  • Optimize Code

paulo_crash 01-07-2023 15:28

Re: [CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (Kento_MVP)
 
Quote:

Originally Posted by born for gaming (Post 2796550)
January 05, 2023 (v1.3):
  • You can add MVP Anthem Song Link (Music Video link) if you want.

Interesting idea, with that came a feature request I thought.

Would it be possible to implement a command where the user types the link of the youtube song and it automatically plays this song as MVP?

Example, !mvplink https://www.youtube.com/watch?v=YVkU...nel=EminemVEVO

Then he keeps using this mvp, that is, I don't need to send the file/music to the server and he downloads it.

paulo_crash 01-11-2023 17:30

Re: [CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (Kento_MVP)
 
I am getting the following server errors:
Code:

L 01/11/2023 - 19:25:51: [SM] Exception reported: Script execution timed out
L 01/11/2023 - 19:25:51: [SM] Blaming: SLAYER_Mvp.smx
L 01/11/2023 - 19:25:51: [SM] Call stack trace:
L 01/11/2023 - 19:25:51: [SM]  [1] Line 768, C:\Users\HTICS\Desktop\[CSGO] SLAYER MVP v1.2\[CSGO] SLAYER MVP v1.3\addons\sourcemod\scripting\SLAYER_Mvp.sp::CheckIsMvpAlreadyUsed
L 01/11/2023 - 19:25:51: [SM]  [2] Line 180, C:\Users\HTICS\Desktop\[CSGO] SLAYER MVP v1.2\[CSGO] SLAYER MVP v1.3\addons\sourcemod\scripting\SLAYER_Mvp.sp::Event_RoundMVP
L 01/11/2023 - 19:25:51: [SM]  [4] AcceptEntityInput
L 01/11/2023 - 19:25:51: [SM]  [5] Line 303, D:\Google Drive\ZK Servidores\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\retakes_instadefuse.sp::Frame_EndRound
L 01/11/2023 - 19:26:23: [SM] Exception reported: Script execution timed out
L 01/11/2023 - 19:26:23: [SM] Blaming: SLAYER_Mvp.smx
L 01/11/2023 - 19:26:23: [SM] Call stack trace:
L 01/11/2023 - 19:26:23: [SM]  [1] Line 180, C:\Users\HTICS\Desktop\[CSGO] SLAYER MVP v1.2\[CSGO] SLAYER MVP v1.3\addons\sourcemod\scripting\SLAYER_Mvp.sp::Event_RoundMVP
L 01/11/2023 - 19:26:23: [SM]  [3] AcceptEntityInput
L 01/11/2023 - 19:26:23: [SM]  [4] Line 303, D:\Google Drive\ZK Servidores\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\retakes_instadefuse.sp::Frame_EndRound
L 01/11/2023 - 19:26:59: [SM] Exception reported: Script execution timed out
L 01/11/2023 - 19:26:59: [SM] Blaming: SLAYER_Mvp.smx
L 01/11/2023 - 19:26:59: [SM] Call stack trace:
L 01/11/2023 - 19:26:59: [SM]  [1] Line 180, C:\Users\HTICS\Desktop\[CSGO] SLAYER MVP v1.2\[CSGO] SLAYER MVP v1.3\addons\sourcemod\scripting\SLAYER_Mvp.sp::Event_RoundMVP
L 01/11/2023 - 19:26:59: [SM]  [3] AcceptEntityInput
L 01/11/2023 - 19:26:59: [SM]  [4] Line 303, D:\Google Drive\ZK Servidores\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\retakes_instadefuse.sp::Frame_EndRound
L 01/11/2023 - 19:27:27: [SM] Exception reported: Script execution timed out
L 01/11/2023 - 19:27:27: [SM] Blaming: SLAYER_Mvp.smx
L 01/11/2023 - 19:27:27: [SM] Call stack trace:
L 01/11/2023 - 19:27:27: [SM]  [1] Line 180, C:\Users\HTICS\Desktop\[CSGO] SLAYER MVP v1.2\[CSGO] SLAYER MVP v1.3\addons\sourcemod\scripting\SLAYER_Mvp.sp::Event_RoundMVP

This error causes the server to lose connection at the end of the round for a few seconds and then come back. I believe that some error between it and the Retake Insta Defuse plugin.

rory 02-19-2023 06:22

Re: [CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (Kento_MVP)
 
Works perfectly great job

born for gaming 03-17-2023 13:13

Re: [CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (Kento_MVP)
 
Update

March 17, 2023 (v1.4):
  • Important Note: Before installing and loading this plugin (if you are updating) then please remove all the previous files or Replace all these files with them
  • Now you can add MVPs in the config file through the command: sm_mvp_load "mvp_folder_path" "number_of_mvp_to_load" "mvp_name_prefix" "mvp_sound_flag"
  • If the MVP already exists in the config file then it will not be added again.
  • You can also add the specific number of MVPs through the command.
  • You can also add MVPs with any Prefix.
  • You can also add Premium MVPs with any admin flags.
  • You can see in Server Console which MVP is added in CFG file and which is already exists in the CFG file after using "sm_mv_load" command.
  • You can also see in Server Console that how many MVPs are now added in the CFG file and how many already exist in the CFG file after using "sm_mv_load" command.

How to add MVPs through Command:
You can add MVP through this Command: sm_mvp_load "mvp_folder_path" "number_of_mvp_to_load" "mvp_name_prefix" "mvp_sound_flag"
"mvp_folder_path" - (Required) Enter the Path of the Folder in which MVPs Sounds are.
"number_of_mvp_to_load" - (Optional) Enter the Specific Number of MVPs you want to add to the CFG file from the Folder. "0" or less than "0" means add all sound files in the CFG file from the given folder path.
"mvp_name_prefix" - (Optional) Enter the Prefix you want to add at the start of the name of every Sound in the CFG file. For Example, You can add a "[VIP]" Prefix at the start of the Premium MVPs Name. "" means no Prefix.
"mvp_sound_flag" - (Optional) Enter the Admin Flags you want to add to the Premium MVPs. For Example, You can add a "a" Flag to the Premium MVPs. "" means no Admin Flag (Normal MVP).

Screenshots

born for gaming 03-17-2023 13:14

Re: [CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (Kento_MVP)
 
Quote:

Originally Posted by rory (Post 2799826)
Works perfectly great job

Thanks Bro :)

Check Out the new Version.


All times are GMT -4. The time now is 19:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.