Quote:
Originally Posted by YamiKaitou
Why? There is nothing wrong with that
|
i can't make this smaller ?
PHP Code:
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);
}
because i dont want to make always like that:
get_pcvar_num(toao_voice) == 0:
PHP Code:
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)
}
get_pcvar_num(toao_voice) == 1:
PHP Code:
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);
}
get_pcvar_num(toao_voice) == 2:
PHP Code:
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);
}