void CreateEffects(int client, bool event)
{
if( client && IsClientInGame(client) && IsPlayerAlive(client) && GetClientTeam(client) != 1 )
{
// Thirdperson view
if( g_fCvarThird != 0.0 )
{
if( GetEntPropFloat(client, Prop_Send, "m_TimeForceExternalView") != 99999.3 )
SetEntPropFloat(client, Prop_Send, "m_TimeForceExternalView", GetGameTime() + g_fCvarThird);
}
// Sound
if( g_iCvarSound == 3 || (!event && g_iCvarSound == 1) || (event && g_iCvarSound == 2) )
{
switch (GetEntProp(client, Prop_Send, "m_survivorCharacter"))
{
case NICK:
{
switch(GetRandomInt(1,8))
{
case 1:
{
PerformSceneEx(client, "", "scenes/gambler/nicejob03.vcd");
}
case 2:
{
PerformSceneEx(client, "", "scenes/gambler/nicejob05.vcd");
}
case 3:
{
PerformSceneEx(client, "", "scenes/gambler/nicejob09.vcd");
}
case 4:
{
PerformSceneEx(client, "", "scenes/gambler/nicejob10.vcd");
}
case 5:
{
PerformSceneEx(client, "", "scenes/gambler/niceshot01.vcd");
}
case 6:
{
PerformSceneEx(client, "", "scenes/gambler/niceshot03.vcd");
}
case 7:
{
PerformSceneEx(client, "", "scenes/gambler/niceshot05.vcd");
}
case 8:
{
PerformSceneEx(client, "", "scenes/gambler/niceshot09.vcd");
}
}
}
case ROCHELLE:
{
И ТГД
}
}
}