Hello, I want someone to edit this :
1.) Play sound after join to team
2.) Sound to hear everyone.
3.) And if its possible only for VIP?
Can someone help me?
Spoiler
Code:
#include <amxmodx>
new const mg_sound_1[] = {"sound/misc/member_join1.mp3"}
new const mg_sound_2[] = {"sound/misc/member_join2.mp3"}
new const mg_sound_3[] = {"sound/misc/member_join3.mp3"}
new const mg_sound_4[] = {"sound/misc/member_join4.mp3"}
new const mg_sound_5[] = {"sound/misc/member_join5.mp3"}
public plugin_precache()
{
precache_generic(mg_sound_1)
precache_generic(mg_sound_2)
precache_generic(mg_sound_3)
precache_generic(mg_sound_4)
precache_generic(mg_sound_5)
}
public client_connect(id)
mg_sound_connect(id)
public mg_sound_connect(id)
{
new mg_sound
mg_sound = random_num(1, 5)
switch(mg_sound)
{
case 1:
{
client_cmd(id, "mp3 play %s", mg_sound_1)
}
case 2:
{
client_cmd(id, "mp3 play %s", mg_sound_2)
}
case 3:
{
client_cmd(id, "mp3 play %s", mg_sound_3)
}
case 4:
{
client_cmd(id, "mp3 play %s", mg_sound_4)
}
case 5:
{
client_cmd(id, "mp3 play %s", mg_sound_4)
}
}
}
Thanks
PS : Sorry for my poor English