Заказать игровой сервер Контакты (заказать плагин/исправить ошибки/другое) Поиск

[ вход ]
[ последние сообщения ]

  • Страница 1 из 1
  • 1
Форум » SourceMod >> CS:Source >> CSGO » Обсуждение » Отключить звуки оружий
Отключить звуки оружий
Denis004 Дата: Вторник, 07.05.2013, 15:25:34 | Сообщение # 1
Сообщений: 15
Репутация: 0 [ +/- ]
Код
#include <sourcemod>
#include <sdktools>

public OnPluginStart()
{
  AddNormalSoundHook(NormalSHook:sound_hook);
  AddAmbientSoundHook(AmbientSHook:ambient_hook)
}

public Action:ambient_hook(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)  
{  
     PrintToChatAll("Ambient Sound: %s", sample);  
     return Plugin_Continue  
}

public Action:sound_hook(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)  
{  
     PrintToChatAll("Normal Sound: %s", sample);  
     return Plugin_Continue  
}

Почему то звук оружия ни как не ловится. Пробовал его останавливать и через StopSound в хуке weapon_fire...
 
Форум » SourceMod >> CS:Source >> CSGO » Обсуждение » Отключить звуки оружий
  • Страница 1 из 1
  • 1
Поиск: