Raised This Month: $51 Target: $400
 12% 

End Round Sounds with Musical Genre v1.0.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 01-11-2013 , 17:53   End Round Sounds with Musical Genre v1.0.1
Reply With Quote #1

End Round Sounds with Musical Genre v1.0.1


Introduction


First, I know there are at least two plugins related to end round sounds.
The original https://forums.alliedmods.net/showthread.php?t=6784
And the Arkshine version https://forums.alliedmods.net/showthread.php?p=499872
This plugin is different because the players can choose their own musical genre.


Commands

  • /roundsound – Enable / Disable the end round sounds. It also allow to change your musical genre.

CVARS

Code:
ers_ads 1 // Turn on/off the commands announcements in the chat
ers_time_between_ads 300 // Time between adds (in seconds)
ers_colored_messages 1 // Turn on/off the colored messages


Requirements

PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < celltravtrie > 


Defines

PHP Code:
#define MAX_GENRES 8
#define MAX_LENGHT_SOUND 64
#define MAX_LENGHT_GENRE 24
#define MAX_PLAYERS 32

static FILE_NAME[ ] = "ers_genre.ini"
static DICTIONARY[ ] = "ers_genre.txt" 

Some considerations


- This plugin uses this include http://forums.alliedmods.net/showthread.php?t=74753
- It allows .mp3 or .wav files
- The menu is displayed when the round starts, only one time per map
- It plays a random sound when the round ends, independently of the owner
- Make sure that your compiler / amxx instalation is updated
- The ers_genre.ini is something like this,



And the result is,



Instalation


1. Download the .zip attached
2. Compile locally http://forums.alliedmods.net/showthread.php?t=130511
3. Install the plugin normally
4. Copy the cvars to your server.cfg and customize at your own way
5. Configure the ers_genre.ini
6. Change map or restart your server

Bugs

- None (yet)


Changelog

Code:
v1.0.1 (12/01/2013)
     - Useless code removed from plugin_precache

v1.0.0 (11/01/2013)
     - Initial release


Credits


- PaintLancer and Arkshine for the previous versions
Attached Files
File Type: zip ERS_Musical_Genre_v1_0_1.zip (6.3 KB, 524 views)

Last edited by guipatinador; 12-22-2013 at 10:11.
guipatinador is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-11-2013 , 18:39   Re: End Round Sounds with Musical Genre v1.0.0
Reply With Quote #2

Cool
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 01-12-2013 , 20:48   Re: End Round Sounds with Musical Genre v1.0.1
Reply With Quote #3

Nice one, thanks for sharing, I will try it, and if something goes wrong I tell you.
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos 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 04:21.


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