ULX

Author Topic: Music when joining server  (Read 3304 times)

0 Members and 1 Guest are viewing this topic.

Stockley5

  • Guest
Music when joining server
« on: November 07, 2008, 03:40:52 PM »
I wanted to know if there was any way to play music to the person that just joined, (such as a recorded message or a sound clip from a song) like some of the old CS:CZ servers and on some CS:S servers

Thanks

Stockley5

Offline Hizan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Music when joining server
« Reply #1 on: November 19, 2008, 02:55:51 PM »
I've been looking for this for a bit now. I would like to see some kind of code for this aswell.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Music when joining server
« Reply #2 on: November 23, 2008, 07:12:22 PM »
Ok, I've got a few lines of code. Plan on putting it in our releases section.
It's simple to the extreme. No features. It plays a sound to a player only if 1) they authenticate through Steam after connecting to your server 2) only IF the server has the script. (I didn't want to hear a sound every time I joined another server)
You copy/paste the lines of code I'll have into a file in lua\autorun, and edit a table in the file to indicate where the file is you want played.
I _will not_ do any editing to make the script force download the file if it's not a standard game file.
That means if you want music or sounds you added to your sounds folder, you'll be responsible for making sure the player has it.

Only the player will hear it, no one else.
Can you think of any thing else that might be needed?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Stockley5

  • Guest
Re: Music when joining server
« Reply #3 on: November 24, 2008, 01:28:07 PM »
Sounds good,

Thanks

Stockley5

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Music when joining server
« Reply #4 on: November 24, 2008, 07:16:50 PM »
Can you think of any thing else that might be needed?

Can you think of anything else?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Stockley5

  • Guest
Re: Music when joining server
« Reply #5 on: November 25, 2008, 08:02:02 AM »
Cant think of anything

Thanks

Stockley5