Jump to content

I need some help ..


Stryder

Recommended Posts

Afternoon,

I would like some help with my server. The thing is that I have most of my clan asking me to add sounds .. I want to add this to the gamemode: Stealth. When the person is logging/registering he should hear music in the background .. I have various other music files but I have no idea how to script for it.. When playing the Stealth gamemode once the round has ended it either says "Red team has won the round", "Blue team has won the round" or "the round was a tie" I want to put music here while the text is being displayed .. The text lasts for 5-7 seconds and I want to put the music there. Could someone please help me? I am talking about putting the sound in the background when it says "Red team wins the round" etc.

Thanks,

Stryder

Link to comment

Use function playSound to play any sounds (wich is included in the meta.xml too) to a client.

You can use onPlayerLogin and triggerClientEvent to play sound when somebody logged in.

To play your music when those text appear you have to edit the gamemode script and put the playSound function in the right place, and don't forget to add your sounds to the meta.xml!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...