hey,
i made this:
PHP Code:
public fw_PlayerKilled(victim, attacker)
{
if(cs_get_counter_count(1) == 1 && cs_get_terrorist_count(1) == 1)
{
set_dhudmessage(random(256), random(256), random(256));
show_dhudmessage(0, "%s Vs %s!", ctName, tName)
client_cmd(0,"spk ^"vox/ %s vs %s^"", ctName, tName)
}
if(cs_get_terrorist_count(1) == 1 && get_pcvar_num(toao_voice) == 0){
set_dhudmessage(random(256), random(256), random(256));
show_dhudmessage(0, "%s The Last And Only!", tName)
}
if(cs_get_terrorist_count(1) == 1 && get_pcvar_num(toao_voice) == 1){
set_dhudmessage(random(256), random(256), random(256));
show_dhudmessage(0, "%s The Last And Only!", tName)
client_cmd(read_data(2), "spk %s", g_szSoundVoice);
}
if(cs_get_terrorist_count(1) == 1 && get_pcvar_num(toao_voice) == 2){
set_dhudmessage(random(256), random(256), random(256));
show_dhudmessage(0, "%s The Last And Only!", tName)
client_cmd(read_data(2), "spk %s", g_szSoundVoice1);
}
}
and i want a way how to Reduce it.