Liberty Unleashed
Scripting => Script Help => Topic started by: [EG]~[S]aha~ on December 30, 2012, 01:02:20 pm
-
g_pSound <- null;
function onClientDeath ( killer, weapon, bodypart, )
{
if ( !g_pSound )
{
g_pSound = FindSound( "death.mp3" );
if ( g_pSound )
{
g_pSound.Open();
g_pSound.Play();
}
}
return 1;
}
-
Try
g_pSound <- null;
function onClientDeath ( killer, weapon, bodypart, )
{
if ( !g_pSound )
{
g_pSound = FindSound( "death.mp3" );
if ( g_pSound )
{
g_pSound.Open();
g_pSound.Play();
}
}
else
{
g_pSound.Play();
}
return 1;
}
-
Thank you very much :) Thijn