 |
|
Senior Member
Join Date: Sep 2015
Location: Russia, Norilsk
|

02-13-2017
, 06:51
Re: [CS:GO] Retakes (v0.3.2, 2016-4-6)
|
#10
|
Quote:
Originally Posted by BoosterGold
Hey Splewis, I've added some code to try to play a VO sound when the round begins. The script compiles but the sound isn't played to the clients. I'm a pretty new scripter, have I formatted the if statement wrong?
Code:
public Action Event_RoundPostStart(Handle event, const char[] name, bool dontBroadcast) {
if (!Retakes_Live()) {
return;
}
if (!g_EditMode) {
GameRules_SetProp("m_iRoundTime", g_hRoundTime.IntValue, 4, 0, true);
Retakes_MessageToAll("%t", "RetakeSiteMessage", SITESTRING(g_Bombsite), g_NumT, g_NumCT);
}
g_bombPlanted = false;
if (g_Bombsite == BombsiteA) {
EmitSoundToAll("player/vo/phoenix/goingtoplantbomba02.wav");
}
if (g_Bombsite == BombsiteB) {
EmitSoundToAll("player/vo/phoenix/goingtoplantbombb01.wav");
}
}
|
*player/vo/phoenix/goingtoplantbombb01.wav
Try use "*" before folder-file
|
|
|
|