Sorry for this funny question :p
PHP Code:
new headshotSound[3][] = {
"spk player/headshot1.wav",
"spk player/headshot2.wav",
"spk player/headshot3.wav"
}
public plugin_init()
{
register_event("DeathMsg", "event_DeathMsg_Pre", "a");
}
public event_DeathMsg()
{
client_cmd(0, headshotSound[random_num(0, sizeof headshotSound)])
}
I want to send headshot sounds to all players with client_print way but sometimes gives index out of bounds. Using get_players returns index out of bounds either.
__________________