View Single Post
Author Message
Qes
AlliedModders Donor
Join Date: Jul 2014
Old 08-03-2018 , 17:19   [CS:GO] Block jump sound
Reply With Quote #1

Hello,
How I can block jump sound?
This code work with foostep, but doesn't work with jump sound.

Code:
public Action:SoundPlayer(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
	if(entity && entity <= MaxClients && g_IsGhost[entity])
	{
		return Plugin_Stop;
	}
	return Plugin_Continue;
}
I change code -> test sample
Code:
public Action:SoundPlayer(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
	if(entity && entity <= MaxClients && g_IsGhost[entity])
	{
		PrintToChat(entity, "%d. %s", numClients, sample);
		return Plugin_Stop;
	}
	return Plugin_Continue;
}
and when I jump, i see this message:
3. ~player/footsteps/new/concrete_ct_16.wav
3. ~player/footsteps/new/suit_t_08.wav
3. ~)player/land2.wav
3. ~player/footsteps/new/suit_t_03.wa
Qes is offline