Raised This Month: $51 Target: $400
 12% 

emit_sound function


Post New Thread Reply   
 
Thread Tools Display Modes
A k c 3 n 7
Junior Member
Join Date: Oct 2014
Location: Romania
Old 09-17-2017 , 07:01   Re: emit_sound function
Reply With Quote #11

Quote:
Originally Posted by NiHiLaNTh View Post
SVC_SOUND is the answer. Just loop and send it to the each client you need.
one example with this code please?
Code:
 emit_sound(0, CHAN_AUTO, g_szPlantSound[0], VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
or with
Code:
client_cmd(0, "spk csgo/planting.wav")
__________________

A k c 3 n 7 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 09-17-2017 , 08:05   Re: emit_sound function
Reply With Quote #12

Quote:
Originally Posted by ConnorMcLeod View Post
both are equal, especially one of them
__________________
Relaxing is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 09-17-2017 , 09:34   Re: emit_sound function
Reply With Quote #13

Why do some of you write here if you don't know what you're talking about?
The first parameter in the emit_sound function is the EMITTER ENTITY not the receiver
You set that to the player's id if you want the sound to come from that player in the world and not be heard globally, for example a fart or a scream or whatever. You can not make only some people hear it, that's not how it works.

The working solutions are either the emit_sound2 module which is kind of a pain in the ass, or what I posted on the first page.
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 09-17-2017 , 14:47   Re: emit_sound function
Reply With Quote #14

Quote:
Originally Posted by Relaxing View Post
Quote:
Originally Posted by ConnorMcLeod View Post
both are equal, especially one of them
Quote:
Originally Posted by Liverwiz View Post
emit_sound makes it possible for you to play the sound to all players around a player or wherever you want to play it. client_cmd plays the sound to just one person. For this i suggest client_cmd
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
A k c 3 n 7
Junior Member
Join Date: Oct 2014
Location: Romania
Old 09-17-2017 , 18:49   Re: emit_sound function
Reply With Quote #15

yes i know, i put emit_sound thank you all for help
__________________


Last edited by A k c 3 n 7; 09-17-2017 at 18:51.
A k c 3 n 7 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 05:16.


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