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

[CS GO] Problem with EmitSound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ElectricStalin
Member
Join Date: Apr 2017
Old 11-20-2017 , 16:44   [CS GO] Problem with EmitSound
Reply With Quote #1

Hello, guys.

I need to play a sound on some event. I write this 3 lines:

Code:
public void OnMapStart()
{
.....
.....
	AddFileToDownloadsTable("sound/items/<soundname>.wav");
	PrecacheSound("items/<soundname>.wav", true);
.....
.....
public Action:OnEntityTouch(entity, other)
{  
....
....
	EmitSoundToClient(other, "items/<soundname>.wav");
....
}
This code works good, but only with some sounds. For example: It works with: items/smallmedkit1.wav and doesnt work with items/itempickup.wav
How can I fix it?
ElectricStalin 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:53.


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