Stop Sounds usable by any holder

This commit is contained in:
Jordie0608
2014-11-26 15:29:30 +11:00
parent c79ea305a0
commit 1172851b0e
2 changed files with 9 additions and 11 deletions
+7 -9
View File
@@ -39,15 +39,13 @@ var/sound/admin_sound
/client/proc/stop_sounds()
set category = "Debug"
set name = "Stop Sounds"
if((check_rights(R_SOUNDS)) || (check_rights(R_DEBUG)))
if(!src.holder) return
log_admin("[key_name(src)] stopped all currently playing sounds.")
message_admins("[key_name_admin(src)] stopped all currently playing sounds.")
for(var/mob/M in player_list)
if(M.client)
M << sound(null)
feedback_add_details("admin_verb","SS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
log_admin("[key_name(src)] stopped all currently playing sounds.")
message_admins("[key_name_admin(src)] stopped all currently playing sounds.")
for(var/mob/M in player_list)
if(M.client)
M << sound(null)
feedback_add_details("admin_verb","SS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
else
return
#undef SOUND_CHANNEL_ADMIN