:: Description ::
Plays sound of welcome for the players.
Allows the player to stop the sound, typing the command
!stop.
Also allows register different sounds for each player.
You can register with one for each player, without having to edit files on the server, simply use the commands to register, delete and list the registered players. It is also possible to play sounds only for registered players.
:: Commands ::
// Allows the player to stop the sound, typing the command
!stop in the chat
!stop
// Adds players to playlist (In console, Admin only)
//
// <steamId> : is required
// <soundFile> : is required
//
// Example: sm_wsound_add STEAM_1:2

45678 quake/entrada1.wav
//
// Note: only take effect after map change or restart the server
//
sm_wsound_add <steamId> <soundFile>
// Remove players in the playlist (In console, Admin only)
//
// Example: sm_wsound_del STEAM_1:2

45678
//
sm_wsound_del <steamId>
// Displays the list of registered players (In console, Admin only)
//
// [soundFile] : is optional. If not given, displays the complete list
//
// Example:
// sm_wsound_list
// sm_wsound_list STEAM_1:2

45678
//
sm_wsound_list [steamId]
:: Options / CVar's ::
Config file created automatically: cfg/sourcemod/
welcomesound.cfg
Notes: The file welcomesound.cfg is generated in Portuguese-BR. If you need the English version replace the contents of the file "cfg/sourcemod/welcomesound.cfg" for the content of welcomesoundEN.txt available for download.
Code:
// This file was auto-generated by SourceMod (v1.3.9-dev)
// ConVars for plugin "welcomesound.smx"
// Announce the command !stop? [0 = No, 1 = Yes]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_wsound_announce_stop "1"
// Allow the client to use the !stop and stop the sound? [0 = No, 1 = Yes]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_wsound_client_stop "1"
// On / Off Sound welcome. [0 = Off, 1 = On]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_wsound_enable "1"
// Address of the sound file
// -
// Default: "ambient/music/dustmusic1.wav"
sm_wsound_file "quake/entrada.wav"
// Stop the sound when the player chooses a team? [0 = No, 1 = Yes]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_wsound_stop_spawn "1"
// Type of execution. [1 = For all, 2 = Only registered players]
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "2.000000"
sm_wsound_type "1"
:: Change log ::
>> 2.0.0 - 10/30/2011
- NEW: Allows register different sounds for each player.
- NEW: You can register with one for each player, without having to edit files on the server, simply use the commands to register, delete and list the registered players. It is also possible to play sounds only for registered players.
- NEW: Announce the command !stop
>> 1.0.0 - 10-23-2011
- Release of the plugin
:: Installation ::
- Copy the file "
welcomesound.smx" to the folder "addons/SourceMod/plugins/"
- Copy the file "
welcomesound.phrases.txt" to the folder "addons/SourceMod/translations/"
:: Upgrading ::
- Run the command:
sm plugins unload welcomesound
- Delete the old file: "cfg/sourcemod/
welcomesound.cfg"
- Delete the old file: "addons/SourceMod/translations/
welcomesound.phrases.txt"
- Copy the new file "
welcomesound.smx" to the folder "addons/SourceMod/plugins/"
- Copy the new file "
welcomesound.phrases.txt" to the folder "addons/SourceMod/translations/"
- Run the command:
sm plugins load welcomesound
or restart the server or change the map
:: Downloads ::