Raised This Month: $ Target: $400
 0% 

Simple question [Still need help]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-21-2011 , 09:43   Re: Simple question
Reply With Quote #1

Is there another way.
Or maybe you could give me example with the current one?

Last edited by usaexelent; 06-21-2011 at 09:47.
usaexelent is offline
Send a message via Skype™ to usaexelent
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-21-2011 , 10:25   Re: Simple question [Still need help]
Reply With Quote #2

You have a example of emit_sound() in that page there, including comments.
You'll also need to use precache_sound() on the sound to make players download it if they don't have it.

Still, emit_sound() emits a sound (duh) that all nearby players can hear.
If you want just a player to hear it, use client_cmd() like so:
Code:
client_cmd(id, "spk ^"path/sound.wav^"")
__________________
Hunter-Digital is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode