You can either use usermessages or console commands.
Basically, the idea is to send a signal to the client which tells it to start the sound. I’d go for usermessages, so here’s an example:
Serverside:
function GM:RoundEnd()
umsg.Start( "RoundEndSound" ) --Say "we're sending RoundEndSound"
--We don't need to send anything here, so don't bother
umsg.End() --Finish (actually sends the message)
end
Clientside:
usermessage.Hook( "RoundEndSound", function( data )
--We don't have any data to read, but if we did:
--local str = data:ReadString()
--Reading data has to be done in order of how it was sent
--Well we've received our usermessage, this means the server is telling us to play that sound
surface.PlaySound( "AGU/radio/radio_chatter.mp3" ) --Play the sound
end )
Read the comments in the code, and check out the wiki page here:
**[User Messages
http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=User_Messages)**