Code:
public plugin_init() {
register_event("HLTV","rnstart","a", "1=0", "2=0");
}
public rnstart(id)
{
if(get_pcvar_num(rnstartcvar) == 1)
{
firstblood = 1
new rand = random_num(1,3)
switch(rand)
{
case 1:
{
set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
show_hudmessage(0, "P R E P A R E 1 !")
client_cmd(0,"spk sound/Prepare1.wav")
}
case 2:
{
set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
show_hudmessage(0, "P R E P A R E 2 !")
client_cmd(0,"spk sound/Prepare2.wav")
}
case 3:
{
set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
show_hudmessage(0, "P R E P A R E 3 !")
client_cmd(0,"spk sound/Prepare3.wav")
}
}
}
}