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

emiting sounds doesn't work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
I am inevitable
Member
Join Date: May 2019
Location: 0xA6DA34
Old 06-20-2019 , 16:55   emiting sounds doesn't work
Reply With Quote #1

PHP Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1

#define MUSIC_PATH "sound/sound.mp3"

public void OnPluginStart()
{
    
HookEvent("player_team"Event_Team);
}

public 
void OnMapStart()
{
    
AddFileToDownloadsTable(MUSIC_PATH);
    
    
PrecacheSound("sound.mp3"true);
}

public 
Action Event_Team(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
int iClient GetClientOfUserId(hEvent.GetInt("userid"));
    
    
EmitSoundToClient(iClientMUSIC_PATH);

hey, why doesn't this work?
__________________
I do make plugins upon requests, so hit me up on discord if you're interested: Stefan Milivojevic#5311
I am inevitable is offline
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 06-20-2019 , 17:08   Re: emiting sounds doesn't work
Reply With Quote #2

If CSGO, read this.
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
I am inevitable
Member
Join Date: May 2019
Location: 0xA6DA34
Old 06-20-2019 , 17:58   Re: emiting sounds doesn't work
Reply With Quote #3

Quote:
Originally Posted by CrazyHackGUT View Post
If CSGO, read this.
oh my god, thank you so much
__________________
I do make plugins upon requests, so hit me up on discord if you're interested: Stefan Milivojevic#5311
I am inevitable 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 08:49.


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