Search
Username:
Password:

Register or Reset Password

SUBMISSIONS
Counter Strike
   New Maps
   New Tutorials
   New Skins
   New GUI's
   New Sounds
   New Threads
Other
   Media
   Gamers
   Clans
   Studios
Admin Soundplayer-By 2KB
Added by...
Author(s): Ironmad
Category: CS:S > Action Scripts
Notes/Usage Instructions:

Medda_SoundPlayer

Requires
#Mattie Eventscripts Latest
#ES_Tools Latest

Features
This will make you able as admin to simply start your sounds from chat.
In the script you simply first add the sounds you want downloaded to the clients.
After that you simply choose your chat commands for your specific sounds.
This is so easy, and so great
Enyoy!!!

Installing This Script
This script is simply installed as all other new scripts.
Simply make a folder in your cstrike/addons/eventscripts that is named:
medda_soundplayer
In that folder you make a txt.document called
es_medda_soundplayer
Then you hit the download in this topic.
Copy the text and put it in your new es_medda_soundplayer.txt
After that you add this line in your autoexec:
es_load medda_soundplayer
Script Code:
// Medda_SoundPlayer V 1.3
// Written by Medda.
// Requires Mattie EventScripts Latest And ES_Tools Latest.
//
// Thanks to all in the forums who's providing me with helpful information!
//__________________________________________________________________________
event es_map_start
{
// #EDIT HERE BELOW TO SET THE SOUNDS YOU WANT DOWNLOADED TO CLIENT:
// Here below you change the "xxx/yyy.mp3" with your own "foldername/soundname.type"
// If you have more than 5 sounds, which I believe you probably have,
// you just add more lines like the pattern:
est_AddDownload sound/xxx/yyy.mp3
est_AddDownload sound/xxx/yyy.mp3
est_AddDownload sound/xxx/yyy.mp3
est_AddDownload sound/xxx/yyy.mp3
est_AddDownload sound/xxx/yyy.mp3
}
//__________________________________________________________________________
block load
{
es_xkeygroupcreate medda_soundplayer
es_xkeycreate medda_soundplayer soundplayer
es_xkeycreate medda_soundplayer admins
es_xkeygroupcreate listener
//__________________________________________________________________________
// #MAKE YOURSELF ADMIN:
// To make yourself admin you have to paste your steamid over mine...
// You can find your steamid by joining a random server and type "status" in console.
// When you've got your steamid, you simply paste it over mine steamid here below:
// Also remember not to remove the "" around your steamid.
// PS: if you want to add more admins, you simply copy the line below and
// paste it right under it, - and putting in the new steamid ofc :)
es_xkeysetvalue medda_soundplayer admins "STEAM_0:0:3034939" admin

//
// # HOW TO TURN ON/OFF TRIGGERED SOUNDS
// Set this to the command you want a player can type in chat to turn on/off triggered sounds.
// Like now it's set to "sounds", like the mani versions...
// Now if you use this script and mani, I recommand you change the "sounds" to something else.
// You can of cource change this even if you dont use mani, it's fully customizeable...
es_xsetinfo sound_trigger_command "sounds"
//
// #ALSO EDIT THIS:
// Edit this like above by replacing the "xxx/yyy.mp3" with your own "foldername/soundname.type"
// But here you'll also replace the "your_command" with the chat command you want to use
// to trigger your following sound "xxx/yyy.mp3". But make sure you don't use any spaces!
// Also here you add more lines like the pattern if you have more than 5 sounds:
es_xkeysetvalue medda_soundplayer soundplayer your_command xxx/yyy.mp3
es_xkeysetvalue medda_soundplayer soundplayer your_command xxx/yyy.mp3
es_xkeysetvalue medda_soundplayer soundplayer your_command xxx/yyy.mp3
es_xkeysetvalue medda_soundplayer soundplayer your_command xxx/yyy.mp3
es_xkeysetvalue medda_soundplayer soundplayer your_command xxx/yyy.mp3

//__________________________________________________________________________
}
//__________________________________________________________________________
block unload
{
es_xkeygroupdelete medda_soundplayer
es_xkeygroupdelete listener
}
//__________________________________________________________________________
event player_activate
{
es_keycreate listener event_var(userid)
}
//__________________________________________________________________________
event player_disconnect
{
es_keydelete listener event_var(userid)
}
//__________________________________________________________________________
event player_say
{
es_xsetinfo admin_id 0
es_keygetvalue admin_id medda_soundplayer admins event_var(es_steamid)
if (server_var(admin_id) = admin) do
{
es_xsetinfo sound_command 0
es_keygetvalue sound_command medda_soundplayer soundplayer event_var(text)
if (server_var(sound_command) != 0) do
{
es_xsetinfo playsound 0
es_foreachkey playsound in listener "es_cexec server_var(playsound) playgamesound server_var(sound_command)"
}
if (event_var(text) = server_var(sound_trigger_command)) do
{
es_xsetinfo listener_exists 0
es_exists listener_exists key listener event_var(userid)
es_xdoblock medda_soundplayer/sound_settings
}
}
}

block sound_settings
{
if (server_var(listener_exists) != 0) do
{
es_keydelete listener event_var(userid)
es_tell event_var(userid) #green You Will No Longer Hear Any Triggered Sounds.
}
else do
{
es_keycreate listener event_var(userid)
es_tell event_var(userid) #green You Will Now Hear The Triggered Sounds.
}
}

//__________________________________________________________________________
// Great! Now this script will work if you've added the soundnames right, the sounds
// exists in the right folders, and you using right commands :)
// PS: This script works great with sv_downloadurl using bz2 as well...
// Enyoy ;)
//__________________________________________________________________________
Added: 2 years ago
Feedback (3)
Ironmad .
Eat PizzaY2M
Posted 9 months ago
U idiet, I told u to change your idiet avatar, its my avatar ffs!
ancients .
ancients skill !! ;)Y2M
Posted 9 months ago
Nice ;=)
- ancients skill !! ;)
Donteventry .
Ok then....Y2M
Posted 1 year ago
Nice one mate keep it up.
Add Feedback
Provide constructive feedback. What is "constructive"?
You must login or register to access this!
Assessment
The community's verdict.
User Rating [+]
10/10
bScore
10.00/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This script in a nutshell...
No stamps recorded
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
Added by...
Ironmad .
Eat Pizza
Ranked 423rd ( 1) with 4,606 points. 4 points behind NovaRain .

[+] Donate
Vote for Submitter
Like this script? Vote Ironmad . for one or more monthly awards.
You must login or register to access this!
Related Scripts
Want more? Find related scripts.