Ulysses

General => Off-Topic => Topic started by: BlackRockShooter on June 21, 2013, 06:19:18 PM

Title: Getting a sound to play for clients on connect?
Post by: BlackRockShooter on June 21, 2013, 06:19:18 PM
Okay so I am working on my TTT server and I have been attempting to set up an excerpt from a song to play for the client when they join the server.  Any ideas?
Title: Re: Getting a sound to play for clients on connect?
Post by: Megiddo on June 21, 2013, 08:15:38 PM
Use a hook to play the sound?
Title: Re: Getting a sound to play for clients on connect?
Post by: BlackRockShooter on June 22, 2013, 01:59:42 PM
Well that would be helpful but I am still a novice with lua and I do not know much about its use.  I was really hoping I would get help rather than a response such as this.
Use a hook to play the sound?
Title: Re: Getting a sound to play for clients on connect?
Post by: JamminR on June 22, 2013, 04:14:39 PM
http://wiki.garrysmod.com/page/GM/PlayerConnect
Instead of printing a message as that hook example shows, research how to get gmod to play a sound to players
Title: Re: Getting a sound to play for clients on connect?
Post by: BlackRockShooter on June 22, 2013, 04:51:55 PM
thank you
http://wiki.garrysmod.com/page/GM/PlayerConnect
Instead of printing a message as that hook example shows, research how to get gmod to play a sound to players
Title: Re: Getting a sound to play for clients on connect?
Post by: JamminR on June 22, 2013, 09:51:04 PM
While looking through releases today, I stumbled across an OLD thread release I made to play sounds to joining players...and only joining players, using sounds included with HalfLife I think.
(ie, think i avoided custom stuff)
It didn't use connect, it used playerauthed hook (basically, it made sure they stayed long enough to steam authenticate)
Look for UJoin sounder for old example code.
And, I mean OLD...pre GM12 I think...but, with little lua experience, would make good starting code to modify for your needs.
Title: Re: Getting a sound to play for clients on connect?
Post by: thriftylol on June 28, 2013, 12:55:40 PM
i found this thread, im pretty sure this is everything you were asking for c:

http://forums.ulyssesmod.net/index.php/topic,6036.0.html (http://forums.ulyssesmod.net/index.php/topic,6036.0.html)