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[] sName, bool bDontBroadcast)
{
int iClient = GetClientOfUserId(hEvent.GetInt("userid"));
EmitSoundToClient(iClient, MUSIC_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