View Single Post
Author Message
gamer1
Junior Member
Join Date: Mar 2023
Old 03-11-2023 , 18:47   Round start sound for CS:GO
Reply With Quote #1

When the round starts, play an mp3 clip.

(The other plugins I found for this are currently not working.)

I was hoping someone has something?

I found this code too but I'm not sure if it's correct:

////////////////////////////////


#include <sourcemod>
#include <sdktools>

#pragma semicolon 1


public OnPluginStart()
{
HookEvent("round_poststart", Event_Round_PostStart);

if (GameRules_GetProp("m_bWarmupPeriod"))
return Plugin_Continue;

}
public OnMapStart()
{
PrecacheSound("quake/prepare.mp3");
AddFileToDownloadsTable("sound/quake/prepare.mp3");
}


public Action Event_Round_PostStart(Handle:event, const String:name[], bool:dontBroadcast)
{
EmitSoundToAll("quake/prepare.mp3");
}


/////////////////////
pls help guys, thanks!
gamer1 is offline