AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] - ⊲ Songs while mapchange | 100% translatable (https://forums.alliedmods.net/showthread.php?t=264189)

Dr. Api 06-11-2015 06:23

[CS:GO] - ⊲ Songs while mapchange | 100% translatable
 
4 Attachment(s)
I - Description

I made this plugin for my community Zombie4Ever.eu and was allowed to share it.
Will play a song(Youtube or others) while the map change. Player can enable/disable this by typing !ms. The preference will be saved.

Force a map change will not work.

II - Cvars

"drapi_mapchange_sound_timer" set on panel will play the sound 1 seoncde before the map change otherwise you can set a time after the win panel popup. This number should be less than the "mp_match_restart_delay" CSGO cvar.

III - Configs

"addons/sourcemod/configs/drapi/mapchange_sounds.cfg"
PHP Code:

"Sounds"
{
    
"Sounds"
    
{
            
"Mapchange"
        
{
            
"1"                 "https://soundcloud.com/spinnin-deep/martin-solveig-1-feat-sam-whiteclub-mix#t=0:47 | Martin Solveig - +1 (feat. Sam White)(Club Mix)"
            "2"                 "https://soundcloud.com/doornrecords/tony-junior-dropgun-cobra-sander-van-doorn-identity-premiere-available-june-22#t=0:53 | Tony Junior & Dropgun - Cobra"
            "3"                 "https://soundcloud.com/skinkofficial/showtek-satisfied-feat-vassy-preview#t=0:53 | Showtek - Satisfied (feat. VASSY)"
            "4"                 "https://soundcloud.com/thero-official/ill-be-good#t=0:00 | Jaymes Young - I'll Be Good (Thero Remix)"
        
}
    }


The correct way: <URL>space | space <TITLE>. Between the url don't forget space and add the symbol |
Put you url song like the example. The song will be chosen randomly.
Note youtube have sometimes adverts.


IV - Videos

How it looks

V - Bugs
FIX - I didn't try but I think it will be a mess with plugin who play song at round end like AbNeR Round End Sounds

VI - Credits

Credits to hannes96 for the idea.

VII - Services

Youtube: OK. Note sometimes you have commercials ads.
Soundcloud: OK. Note you need to put #t=0:00 at the end of url to play the song automatically.

VIII - Changelogs

Code:

V1.0.3
-You can set the Title of the song in the "addons/sourcemod/configs/drapi/mapchange_sounds.cfg"
-Added one translation sentence

V1.0.2
-Added cvar "drapi_mapchange_sound_timer" set on panel will play the sound 1 seconde before the map change otherwise you can set a time after the win panel popup. This number should be less than the "mp_match_restart_delay" CSGO cvar.

V1.0.1
-Will turn off all sounds possible(game sounds, map sounds, plugins sounds) before playing the mapchange song.


GIT

secondtimesold 06-11-2015 06:27

Re: [CS:GO] - Songs while mapchange | 100% translatable
 
Doesn't work. Installs successfully but doesn't play anything when map changes.

The code in the file is different than the code example here.. let me try that....

edit. Still na

Dr. Api 06-11-2015 06:46

Re: [CS:GO] - Songs while mapchange | 100% translatable
 
Quote:

Originally Posted by secondtimesold (Post 2306790)
Doesn't work. Installs successfully but doesn't play anything when map changes.

The code in the file is different than the code example here.. let me try that....

edit. Still na

Did you do with RTV? RTV will not work cause it force map change.

Dr. Api 06-11-2015 08:17

Re: [CS:GO] - Songs while mapchange | 100% translatable
 
V1.0.1
-Will turn off all sounds possible(game sounds, map sounds, plugins sounds) before playing the mapchange song.

full1993 06-11-2015 08:40

Re: [CS:GO] - Songs while mapchange | 100% translatable
 
What else can I use besides Youtube? Soundcloud? Im trying to avoid the comercials at the begining of the videos.

Dr. Api 06-11-2015 08:42

Re: [CS:GO] - Songs while mapchange | 100% translatable
 
Quote:

Originally Posted by full1993 (Post 2306810)
What else can I use besides Youtube? Soundcloud? Im trying to avoid the comercials at the begining of the videos.

You can use everything is playing a music... normally
Soundcloud: OK. Note you need to put #t=0:00 at the end of url to play the song automatically.

Hallucinogenic Troll 06-11-2015 09:12

Re: [CS:GO] - Songs while mapchange | 100% translatable
 
About the v1.0.1 update, the "Game Sounds" have the music kits included? Maybe some ppl want that feature if is not included yet.

Btw, great plugin, keep up the good work, my servers are currently enjoying your plugins a lot.

Dr. Api 06-11-2015 09:20

Re: [CS:GO] - Songs while mapchange | 100% translatable
 
Quote:

Originally Posted by Hallucinogenic Troll (Post 2306814)
About the v1.0.1 update, the "Game Sounds" have the music kits included? Maybe some ppl want that feature if is not included yet.

Btw, great plugin, keep up the good work, my servers are currently enjoying your plugins a lot.

I never thought about this feature. But normally Game sounds it's including music kit. Neet to be test anyway.

Hallucinogenic Troll 06-11-2015 09:25

Re: [CS:GO] - Songs while mapchange | 100% translatable
 
Quote:

Originally Posted by Dr. Api (Post 2306815)
I never thought about this feature. But normally Game sounds it's including music kit. Neet to be test anyway.

Im not sure, but this is the plugin you need to test, since I use that one (remove if you think its publicity).

Anyway, if you succeed, congrats, you make my server happy :p

Dr. Api 06-11-2015 09:33

Re: [CS:GO] - Songs while mapchange | 100% translatable
 
Quote:

Originally Posted by Hallucinogenic Troll (Post 2306816)
Im not sure, but this is the plugin you need to test, since I use that one (remove if you think its publicity).

Anyway, if you succeed, congrats, you make my server happy :p

I remove nothing, I'm here to share and fix the problem :) Anyway I saw the code now and will test that now.


All times are GMT -4. The time now is 14:35.

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