PHP Code:
new g_szSound[]="/subfolder/example.wav"
public FreeGame(id)
{
g_iCurrentGame = GAME_FREEGAME
set_hudmessage ( 0, 184, 30, -1.0, 0.35, 0, 0.1, 5.0, 0.1, 0.1, -1 )
show_hudmessage ( 0, "[SWE-KUNG]: Enjoy Your FreeDay!!!!")
client_cmd(0,"spk ^"%s^"",g_szSound)
}
public plugin_precache() {
precache_generic(g_szSound)
}
or if the wav is built into the game you could probably get by with just
PHP Code:
public FreeGame(id)
{
g_iCurrentGame = GAME_FREEGAME
set_hudmessage ( 0, 184, 30, -1.0, 0.35, 0, 0.1, 5.0, 0.1, 0.1, -1 )
show_hudmessage ( 0, "[SWE-KUNG]: Enjoy Your FreeDay!!!!")
client_cmd(0,"spk ^""/subfolder/example.wav"^"")
}
__________________