Raised This Month: $ Target: $400
 0% 

csgo musickit


Post New Thread Reply   
 
Thread Tools Display Modes
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 05-25-2017 , 15:19   Re: csgo musickit
Reply With Quote #11

Quote:
Originally Posted by yas17sin View Post
just add this part to the current code :

PHP Code:
public plugin_precache()
{
    for( new 
i=0sizeof(MUSIC); i++)
    {
        
precache_sound(MUSIC[i]);
    }

downloading sound/wonround.mp3 etc. not media/musickits/1-5/wonround.mp3 etc.
__________________
Ayman Khaled is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 05-25-2017 , 15:28   Re: csgo musickit
Reply With Quote #12

i gived you only how to precache it, if you want to put them in diffrent floder you should edit the sounds into the floder you want in your game/server then write it into the MUSIC array like this :

PHP Code:
new const MUSIC[][] =
{
    
"sound/your_floder/startround_01.mp3",    //0
    
"sound/your_floder/startround_02.mp3",    //1
    
"sound/your_floder/startround_03.mp3",    //2
    
"sound/your_floder/startaction_01.mp3",    //3
    
"sound/your_floder/startaction_02.mp3",    //4
    
"sound/your_floder/startaction_03.mp3",    //5
    
"sound/your_floder/deathcam.mp3",        //6
    
"sound/your_floder/bombplanted.mp3",            //7
    
"sound/your_floder/bombtenseccount.mp3",    //8
    
"sound/your_floder/roundtenseccount.mp3",    //9
    
"sound/your_floder/wonround.mp3",        //10
    
"sound/your_floder/lostround.mp3"        //11

__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 05-25-2017 at 15:29.
yas17sin is offline
Send a message via ICQ to yas17sin
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-25-2017 , 16:33   Re: csgo musickit
Reply With Quote #13

Quote:
Originally Posted by Ayman Khaled View Post
downloading sound/wonround.mp3 etc. not media/musickits/1-5/wonround.mp3 etc.
Why media? Put them in the sounds folder.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 05-25-2017 , 16:52   Re: csgo musickit
Reply With Quote #14

Quote:
Originally Posted by OciXCrom View Post
Why media? Put them in the sounds folder.
i did and i got error like 'Miss RIF/wave ...' many times in console.
__________________
Ayman Khaled is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 05-25-2017 , 19:35   Re: csgo musickit
Reply With Quote #15

Quote:
Originally Posted by Ayman Khaled View Post
i did and i got error like 'Miss RIF/wave ...' many times in console.
everytime i use precache_sound to play mp3 format i see that error

its better to use precache_generic so
tarsisd2 is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 05-27-2017 , 00:06   Re: csgo musickit
Reply With Quote #16

guys i added precache code to version 1.7.7

PHP Code:
public plugin_precache()
{
    for( new 
i=0sizeof(MUSIC); i++)
    {
        
precache_generic(MUSIC[i]);
    }

generic since its mp3

the problem is, this plugin its coded to play 1 sound diferent to CT and another to TR, so i would have to make a diferent precache, plus it has some another sounds to precache, could anyone fix the precache code to match the plugin, i only know to make simple precache, since the author didnt bother to do it!
tarsisd2 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:57.


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