Raised This Month: $ Target: $400
 0% 

Background Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
AmineKyo
فوق سريرك
Join Date: Oct 2011
Location: Morocco
Old 01-20-2012 , 14:58   Re: Background Sounds
Reply With Quote #31

Quote:
Originally Posted by nikhilgupta345 View Post
Yes, but you have to edit the source code.

PHP Code:
new const g_szDefaultSounds[ ][ ] = 
{
    
"music1.mp3",
        
"music2.mp3"
}; 
You have to change that to what you want (the stuff in quotes).

For example, if you only want the sound newsound.mp3 to play, you would do

PHP Code:
new const g_szDefaultSounds[ ][ ] = 
{
    
"newsound.mp3"
}; 
Then, for every new song you want to add, you have to add a colon to the end of the previous sound, and then put the next sound in quotes as well. Every sound should have a comma at the end of it except for the last sound.

Finally, you have to recompile it, and use the .amxx file that you get instead of the one that's on this thread.
Thanks.
__________________

Last edited by AmineKyo; 05-04-2013 at 14:56. Reason: Karma -__-?
AmineKyo is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 01-21-2012 , 21:22   Re: Background Sounds
Reply With Quote #32

Would this make a player lagg? Also do you think that one can put a say command and take them to a playlist on a site?
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 01-21-2012 , 23:22   Re: Background Sounds
Reply With Quote #33

Quote:
Originally Posted by deadman909 View Post
Would this make a player lagg? Also do you think that one can put a say command and take them to a playlist on a site?
This shouldn't make a player lag at all. And there are other plugins that do what you ask with the say command and playlist on a site. Not sure what they're called but I'm fairly sure that I've seen them here before.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
deadman909
Veteran Member
Join Date: Oct 2008
Old 01-22-2012 , 15:05   Re: Background Sounds
Reply With Quote #34

Quote:
Originally Posted by nikhilgupta345 View Post
This shouldn't make a player lag at all. And there are other plugins that do what you ask with the say command and playlist on a site. Not sure what they're called but I'm fairly sure that I've seen them here before.
Wouldn't an online playlist be easier? I mean because with this they have download song they want and put it in server and take server memory. Also wouldn't this make people have to download each of the song files?
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 01-22-2012 , 16:44   Re: Background Sounds
Reply With Quote #35

Quote:
Originally Posted by deadman909 View Post
Wouldn't an online playlist be easier? I mean because with this they have download song they want and put it in server and take server memory. Also wouldn't this make people have to download each of the song files?
This plugin is for those that want a random song to play in the background. There are other plugins that let the players themselves choose what song to play and when they want to start/stop it. There are other plugins that do what you want.

That's true that they wouldn't have to download the songs, but they would still have to open up the MOTD site through the web browser. http://forums.alliedmods.net/showthread.php?p=833130
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
AmineKyo
فوق سريرك
Join Date: Oct 2011
Location: Morocco
Old 02-10-2012 , 12:02   Re: Background Sounds
Reply With Quote #36

Quote:
//// background_sounds.sma
// XXXXXXXXXXXXXXXXXXXXX\cstrike\addons\amxmodx\ scripting\include\core.inc(13) : error 010: invalid function or declaration
//
// 1 Error.
// Could not locate output file compiled\background_sounds.amx (compile failed).
//
// Compilation Time: 0,8 sec
// ----------------------------------------
:/ WTF... ?
And I Have Core.inc In Include Folder
EDIT : I FIX IT SORRY
__________________

Last edited by AmineKyo; 02-10-2012 at 12:22.
AmineKyo is offline
GuTo
Senior Member
Join Date: Mar 2010
Location: Brazil - SP
Old 02-12-2012 , 19:29   Re: Background Sounds
Reply With Quote #37

nice
__________________
GuTo is offline
Send a message via Skype™ to GuTo
GregLecompte
New Member
Join Date: Mar 2012
Location: 3397 Desert Broom Court
Old 03-08-2012 , 06:43   Re: Background Sounds
Reply With Quote #38

I'm a newbie here. Looking forward for new comment in here.
GregLecompte is offline
tson_
Senior Member
Join Date: Sep 2011
Old 04-06-2012 , 15:13   Re: Background Sounds
Reply With Quote #39

Installed default 2 sounds + amxx and plugin dont work...
i dont understand need .ini file or not, I just want sounds on all map...
tson_ is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 04-07-2012 , 02:22   Re: Background Sounds
Reply With Quote #40

Quote:
Originally Posted by tson_ View Post
Installed default 2 sounds + amxx and plugin dont work...
i dont understand need .ini file or not, I just want sounds on all map...
Install configs/sounds/mapname.ini, and add your sound!
de_dust2.ini
de_nuke.ini


And add sound lines yout ini file!

valami.wav
nemtom.wav ..stb
__________________
kiki33hun 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 17:39.


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