Is there anyway that i can do this in just one line? I've been trying all different things but i can't seem to get it to work.
PHP Code:
if(get_pcvar_num(pSounds))
{
client_cmd(iAttacker, "mp3 play %s", szSound);
}
This is something i'd use, but the last part "DO NOTHING" needs to be changed since it makes no sense
PHP Code:
(get_pcvar_num(pSounds) ? client_cmd(iAttacker, "mp3 play %s", szSound) : client_cmd(iAttacker, "DO NOTHING"));
__________________