AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   End Of Map Music/sound (https://forums.alliedmods.net/showthread.php?t=78364)

TechKnow 10-02-2008 22:21

End Of Map Music/sound
 
2 Attachment(s)
End Map Sound
There are alot of plugins that play a join sound, such as Quake sounds and many others. But not one of them have the map end music/sound, so thats why I think this will be very usefull.

To install Just drop the smx into your plugins folder and the end.mp3 into sound/mapend/end.mp3 and your good to go. I have included a cvar so that you may choose the music/sound you wish to play on your server at the end of the map.

In the future I would like to have a txt or ini with mapend sounds the plugin may randomize and choose from a list. If any of you can do this for me Please post the update here so that I may update this plugin.

Please set your mp_chattime 20 in your server.cfg So that the music/sound may playout, OR whatever length your custom sound length is.

Description:
Plays Music/sound at the end of the map.
Has a cvar for the filename to play
Versions:
1.0
* Initial Release

1.1
* Added is client connected
If you have problems with this sites compiled smx, use the one in the zip file.

1.2 Updated May 2, 2009
* Added AutoExecConfig file, added PrecacheSound.(Thanks to smithxxl again)
If you have problems with this sites compiled smx, use the one in the zip

SAMURAI16 10-03-2008 13:40

Re: End Of Map Music/sound
 
- You could use OnMapEnd() forward istead of "round_event" event hook;
- What's the point of new Handle:cvarSoundName; You don't use it correctly. If you want to create a cvar to set playsound, you'll have to create it in OnMapStart() and precache his string

TechKnow 10-03-2008 18:13

Re: End Of Map Music/sound
 
onmapend I dont think would work quite the way I had wanted because it would only play the sound for a nano second before changeing maps, I will try it out and see because I am wanting the sound to kick in faster, and as for the cvar stuff I would like some schooling on that, I have not had any formal training on scripting and I am self teaching by others examples, but my plugins seam to work ok. If you could give me a small example and explanation of the things you are commenting on I would like that.

Thanks,

TechKnow

SAMURAI16 10-03-2008 23:44

Re: End Of Map Music/sound
 
a little snippet : http://samurai.ampaste.net/f37d4bca
I hope you understand what I made.

TechKnow 10-04-2008 00:24

Re: End Of Map Music/sound
 
Wow, you are a real programmer, Very clean. I really need to studdy this hard to compleetly understand. I have bought O'REILLY books "Practical C Programming", "Practical C++ Programming" and "C++ The Core Language". If possible if you have these books to point out the pages that are associated with this?

SAMURAI16 10-04-2008 00:32

Re: End Of Map Music/sound
 
wow you bought books ? I never read a book.
If you want to make progress on scripting, take a look at another plugins, ask at 'Scripting Help' section, take a look at another plugins.
I think you can read some tutorials on Wiki and at 'Extensions,Snippets, Tutorials' section

monkie 10-04-2008 00:40

Re: End Of Map Music/sound
 
sorry, but this is not working in SourceMod 1.1.0 Snapshots, which is caused by some reason like this:http://forums.alliedmods.net/showpos...8&postcount=49 ??

TechKnow 10-04-2008 04:30

Re: End Of Map Music/sound
 
that version of sourcemod is not done and relesed yet and the add to download is not working in it so might wanna try the 1.0.4 it will work with this plugin, And thanks to some kindly help there will be an update of this plugin soon.

monkie 10-04-2008 05:19

Re: End Of Map Music/sound
 
all right, just wait for the sourcemod dev team~

fuze_man 10-08-2008 10:14

Re: End Of Map Music/sound
 
Thanks Ill use this one


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

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