Raised This Month: $106 Target: $400
 26% 

Mapend Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Xanimos (85)
ntfs
Member
Join Date: Jun 2006
Location: Germany
Old 08-10-2006 , 18:38   Mapend Sounds
Reply With Quote #1

Another plugin that just plays sounds, but viewing the scoreboard without any music is quite boring, so i wrote this plugin....
You can add 94517436986... (and more ) sounds into the "Mapend-Sounds.cfg" the plugin will automaticly upload only the sound to the client, that will be played @ mapend.

If you specified a wrong path to a soundfile, the plugin automaticly will take another soundfile.
You also can mark sounds with ";" that you dont want to play.

Only use mp3 soundfiles wav is too big
Good files: ~20 sec. || 96kbit (64kbit) || 44kHz (22kHz) -----> 200kb

Code:
USED CVARS:
amx_mapend_sounds_advert - (0/1) Set to "0" if u want to disable advertising
If you want to compile the version on your own, u have to use the newest amxxpc compiler!

Code:
Installation:

Download mapend_sounds.amxx to amxmodx/plugins/
Add mapend_sounds.amxx to plugins.ini
Download matrix.mp3 to cstrike/sound/mapend-sounds/
Download Mapend-Sounds.cfg to amxmodx/configs/
Add mp_chattime 15 to amxmodx/configs/amxx.cfg
Change map or restart the server
Code:
Releaselist:

*** v 1.0 ***
          - First Release

*** v 1.1 ***
          - Some Bugfixes

*** v 1.2 ***
          - Added FCVAR

*** v 1.3 ***
          - use the file_size native instead of loops
          - use get_configsdir instead of using hardcoded path
          - fixed a declaration

*** v 1.31 ***
          - added info

*** v 1.32 ***
          - added Hudmessage

*** v 1.33 ***
          - fixed stupid bug :(
Attached Files
File Type: zip example_sound.zip (277.2 KB, 11886 views)
File Type: cfg Mapend-Sounds.cfg (30 Bytes, 7500 views)
File Type: sma Get Plugin or Get Source (mapend_sounds.sma - 9870 views - 1.7 KB)

Last edited by ntfs; 10-24-2006 at 12:48.
ntfs is offline
sbeex
Member
Join Date: Sep 2005
Location: switzerland
Old 08-11-2006 , 06:32   Re: Mapend Sounds
Reply With Quote #2

nice idea but all players have to download the sound and it's the end of the map so maybe you can precache the sound from an url and so players don't have to download the sound and they will have a bit more ping but it's the end so no problem !

I know there is a plugin who play songs in precache if you want i can search it for you anyway good work !
sbeex is offline
Send a message via MSN to sbeex Send a message via Skype™ to sbeex
Server Crasher
BANNED
Join Date: Jul 2006
Location: Attica State Prison
Old 08-11-2006 , 06:42   Re: Mapend Sounds
Reply With Quote #3

Sorry for the bump, I am no saint but your Avatar should be removed..

That being said, this plugin was made for 1.75a? I say this because it wont compile under lower versions, can you make it so that it will?

error
Code:
precache_generic, unknown function

Last edited by Server Crasher; 08-11-2006 at 07:13.
Server Crasher is offline
ntfs
Member
Join Date: Jun 2006
Location: Germany
Old 08-11-2006 , 07:43   Re: Mapend Sounds
Reply With Quote #4

Quote:
Originally Posted by sbeex
nice idea but all players have to download the sound and it's the end of the map so maybe you can precache the sound from an url and so players don't have to download the sound and they will have a bit more ping but it's the end so no problem !
the clients download the soundfiles when they connect not while playing.


Quote:
Originally Posted by Server Crasher
That being said, this plugin was made for 1.75a? I say this because it wont compile under lower versions, can you make it so that it will?
error
Code:
precache_generic, unknown function
Yes is was made for amx 175 but it will work with older versions now.
have fun ;-)

Code:
Welcome to the AMX Mod X 1.60-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team

Header size:            364 bytes
Code size:             1236 bytes
Data size:             1988 bytes
Stack/heap size:      16384 bytes; estimated max. usage=39 cells (156 bytes)
Total requirements:   19972 bytes
Done.

Last edited by ntfs; 08-11-2006 at 08:04.
ntfs is offline
Server Crasher
BANNED
Join Date: Jul 2006
Location: Attica State Prison
Old 08-11-2006 , 08:32   Re: Mapend Sounds
Reply With Quote #5

Cool, thanks
Server Crasher is offline
Server Crasher
BANNED
Join Date: Jul 2006
Location: Attica State Prison
Old 08-11-2006 , 10:52   Re: Mapend Sounds
Reply With Quote #6

Problem, clients cant download the mp3's. I tested it on both my listen and standalone servers with the same result.
I made sure it was the plugin by deleting some soundfiles (my comp) from other plugins and they downloaded ok (sv_downloadurl)
Server Crasher is offline
sbeex
Member
Join Date: Sep 2005
Location: switzerland
Old 08-12-2006 , 09:14   Re: Mapend Sounds
Reply With Quote #7

the clients download the soundfiles when they connect not while playing.

Yes I know but it will be better I think if you do like this because you know every time players have to download download and it's boring to always download so with this maybe you can better understand me :

http://forums.alliedmods.net/showthread.php?t=17708
sbeex is offline
Send a message via MSN to sbeex Send a message via Skype™ to sbeex
ntfs
Member
Join Date: Jun 2006
Location: Germany
Old 08-15-2006 , 05:27   Re: Mapend Sounds
Reply With Quote #8

Quote:
Originally Posted by Server Crasher View Post
Problem, clients cant download the mp3's. I tested it on both my listen and standalone servers with the same result.
I made sure it was the plugin by deleting some soundfiles (my comp) from other plugins and they downloaded ok (sv_downloadurl)
i figured out that problem. and i restored the proper version.
you have to use the neweswt amxxpc compiler. or use the precompiled version from this side.

Quote:
Originally Posted by Server Crasher View Post
Sorry for the bump, I am no saint but your Avatar should be removed..
i have been banned 4 3 days ;-)

Last edited by ntfs; 08-15-2006 at 12:11.
ntfs is offline
ntfs
Member
Join Date: Jun 2006
Location: Germany
Old 08-15-2006 , 05:30   Re: Mapend Sounds
Reply With Quote #9

Quote:
Originally Posted by sbeex View Post
the clients download the soundfiles when they connect not while playing.

Yes I know but it will be better I think if you do like this because you know every time players have to download download and it's boring to always download so with this maybe you can better understand me :

http://forums.alliedmods.net/showthread.php?t=17708
maybe ill add that feature for future versions. thanks 4 the info
ntfs is offline
Server Crasher
BANNED
Join Date: Jul 2006
Location: Attica State Prison
Old 08-17-2006 , 08:16   Re: Mapend Sounds
Reply With Quote #10

Quote:
i figured out that problem. and i restored the proper version.
you have to use the neweswt amxxpc compiler. or use the precompiled version from this side.
does that mean the pre-compiled version will work with 1.60?
Server Crasher is offline
Reply


Thread Tools
Display Modes

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 13:47.


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