View Single Post
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 03-26-2018 , 04:27   Re: [CS:GO] How to stop round end sounds
Reply With Quote #9

AHAHAHAHAH
Guys i know de wey
Code:
	...
	HookEvent("round_end", round_end, EventHookMode_Pre);
}
public Action round_end(Event E_Event, char[] C_Name, bool B_DontBroadcast) 
{
	//B_DontBroadcast = true;
	E_Event.BroadcastDisabled = true;
	
	CreateTimer(0.01, ForgivePoints, _, TIMER_FLAG_NO_MAPCHANGE);  //requestframe dont work

	return Plugin_Changed;
}

public Action:ForgivePoints(Handle:timer)
{
	for (new i = 1; i < MaxClients; i++)
	{
		if(IsClientInGame(i) && !IsFakeClient(i))
		{
			EmitSoundToClientAny(i, SoundName, _, _, _, _, 0.5);
		}	
	}	
}
thanks to https://forums.alliedmods.net/showpo...84&postcount=9

Last edited by Indarello; 03-27-2018 at 02:00.
Indarello is offline