Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 11 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Welcome sound
hyper1234
General Member
Since: Mar 17, 2009
Posts: 358
Last: Apr 14, 2011
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Sunday, Dec. 6, 2009 03:35 pm
hey guys. was just wondering, is there any sort of script/file whereby whena player connects to a server, it plays a sound to that individual player and not the whole server. i've seen this on a 1.3 server, but i think it was server side. im trying to do this for a 1.0 server, just letting you know.

for example: I connect to a server, and it plays a sound within the mod and says "Welcome", from a file called welcome.mp3

Any ideas?

Thanks [thumbs_up]
Share |
Pedro699
General Member
Since: Jun 19, 2006
Posts: 781
Last: Dec 18, 2010
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Sunday, Dec. 6, 2009 09:09 pm
You could do this in the player connect function of a gametype script.

You can play a sound to only one player using:


playlocalsound( soundname )

where soundname is one you have defined in a soundalias csv file.

eg:

player playLocalSound("MP_announcer_round_draw");


edited on Dec. 6, 2009 04:09 pm by Pedro699
Share |
Betanub
General Member
Since: Dec 19, 2009
Posts: 8
Last: Jul 27, 2013
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Dec. 19, 2009 01:16 pm
I have that on my server, go ahead and check it out, the IP is: 8.12.22.55:28960

if the post above me didn't help, feel free to add my xfire i can help you out. Xfire- plugbeta
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»