MessageSound v2.1.1
Presentation:
MessageSound it's a plugin for AMX/X allowing to play a sound saying by a player (say) by the player.
For example if a player during the plays say woohoo, and that in the directory sound/msound/ there exists a file woohoo.wav there will be to play, if there is not the plugin will seek the file woohoo.mp3 if there exists it will be to play the falling case and well it will not occur anything special
The files sounds to play by the plugin are to play in all the players to connect to the server, as well the file wav as mp3.
Installation of MessageSound:
Veiled in some stages how to install the plugin MessageSound 2
1 - To go in the directory of scripts for AMXX addons/amxmodx/scripting/
2 - Record the code of the plugin in your directory of scripts
3 - To compile the plugin execute compile.exe
NOTE: If you to use a MOD which as well does not use a MOTD HTML you must to edit this line:
to modify it as follows:
4 - Installation of the plugin on the server:
copy the file addons/amxmodx/scripting/compiled/MessageSound2.amxx in the directory addons/amxmodx/plugins/
then open the file addons/amxmodx/configs/plugins.ini then all has the end of the file to add the line:
5 - Install of the help files:
Copy the files msound_userhelp.txt, msound_adminhelp.txt and msound_cvarhelp.txt in the directory addons/amxmodx/configs
6 - Installation of the file of language:
To copy the file msound.txt in the directory addons/amxmodx/data/lang/
7 - Installation of the files sounds:
To go in the file sound/ of your MOD and create in this a sub directory named msound/ (sound/msound/) it is there in this file that you will have to place your file sounds (wav and mp3) that you to wish to be able to use with MessageSound
The different chat commands:
/msound switch
Allows not to hear the sounds more play by the plugin
/msound list
Allows to display the sounds installed on the server
/msound buy
Allows has a player to buy a new sound when the mod "credit" is to activate and that the number of its is to limited
/msound help
Display user help
/msound ahelp
Display the admin help (only if the player is an admin on the server else display anything)
/msound chelp
Display the CVARs list with their descriptions (only if the player is an admin on the server else display anything)
Console commands:
msound_play <sound>
Ex: msound_play woohoo
Allow an admin to play a sound with this command
msound_addsound < sound >
Ex: msound_addsound woohoo
Allow admins to reserve sounds that only the admins of the server will be able to play
msound_addcredit < name or userid > < number of credit(s) >
Ex: msound_addcredit Cyber 5
Allows the admins to give again credit has a player what allows has this same player of play gain the number of sounds gived by the admin, if the mod "credit" is to activate and that the number of sounds is limited
Configuration of MessageSound:
It is not obligatorily necessary to pass by this stage, except if you to wish to set the various options which the plugin MessageSound purpose.
The configuration of the plugin MessageSound is done by various clean CVARs already defined in the code , here is the list with their descriptions:
msound_enabled
Allows to activate or deactivate the plugin, 1 = to activate (by default) 0 = deactivate
msound_list_enabled
Allows to activate or deactivate the list of the sounds installed for the plugin, 1 = to activate (by default) 0 = deactivate
msound_list_cols
Allows to define the number of collones for the displaying of the sounds by the saying command /msound list (only for HTML displaying)
msound_admin_only
The mod "admin only" makes it's possible to activate so that only the admins can use the plugin by the msound_play command or by the say if the cvar msound_admin_chat is 1
msound_admin_chat
Allows to authorize that the admin passes by the chat to launch a sound when the plugin turns in mod "admin only"
msound_mask_say
Allows to mask the sounds said by the players (or the admins), 1 = to activate 0 = deactivate (by default)
msound_user_maxsound
Allows to define a maximum number of sounds by players, by default the maximum number is of 10 sounds, for not limited put the CVAR on -1
msound_user_control
Allows to authorize the players not to hear the sounds more play by the plugin by using the saying command /msound switch 1 = to authorize the switch 0 = to prohibit the switch (by default)
msound_credit
Allows to activate or deactivate the mod "credit" (which makes it possible to the player to repurchase sounds when it one reaches the limit its to fix by msound_user_maxsound), 1 = to activate (by default)/0 = deactivate
msound_credit_price
Define the price for the purchase of a sound when the mod "credit" is to activate, ($1000 per default)
msound_timer_enabled
Allows to activate or deactivate the "timer" of MessageSound allowing to fix a limit of time between each sounds to play by a same player, 1 = to activate (default) 0 = deactivate
msound_timer_playing
Allows to define time, in seconds, between each sounds being able beings to play by a same player when msound_timer_enabled is on 1, (120seconds (2minutes) by default)
The msound.zip is an archive contain some sounds.