PHP Code:
tid = players[i]
emit_sound(tid, CHAN_VOICE, "spk %s",die_spk[random(2)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
->
PHP Code:
emit_sound(players[i], CHAN_VOICE, die_spk[random(2)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
-don't need to cache players[i] in a var if you use it once.
-you can't format a string in emit_sound native, pass directly the sound name because you don't need spk command (your problem was there).
-last, you may want to add "a" flag to get_players so you only retrieve a list of alive players.
__________________