// sound.inc // Author: Luke Sankey // Date: March 21, 2001 // // Just a little helper function that many of my files use // // Modified for compliance with adminmod 2.50.37 by Eric Lidman July 3, 2002 // MOdified again for 2.50.50 #if defined _sank_sound_included #endinput #endif #define _sank_sound_included stock playsoundall(sound[]) { new maxplayers = maxplayercount(); new Name[MAX_NAME_LENGTH]; new i; new SessionID; new AUTHID[MAX_AUTHID_LENGTH]; new WONID; new Team; new Dead; for(i=1; i<=maxplayers; i++) { if(playerinfo(i, Name, MAX_NAME_LENGTH, SessionID, WONID, Team, Dead, AUTHID) == 1) { playsound(Name, sound); } } }