(originally made by Spawner30)
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define EFFECTS_MESSAGE -1.0, 0.45, 0, 0.1, 0.92, 0.1, 0.1, -1
#define ACCES ADMIN_CFG
new const MSG[]= "-------- [ L I V E ] In %i [ S e c o n d e ]-------^n^n[ L I V E ] [ L I V E ] [ L I V E ]^n^n[ L I V E ] [ L I V E ] [ L I V E ]"
new const GETREADY[]= "----------- GET READY TO [ FIGHT ] ---------"
new Cvar[3]
new Timer
new bool:rslive = false
public plugin_init()
{
register_plugin("Live Restart", "1.0", "Spawner")
// Hook Say
register_clcmd("say", "Handle", ACCES)
register_clcmd("say_team", "Handle", ACCES)
Cvar[0] = register_cvar("live_restart","1") // Enable : 1 | Disable : 0
Cvar[1] = register_cvar("live_time","10") // The CountDown For the Restart #Default : 10 Sec
Cvar[2] = register_cvar("live_maptime","10.0") // When the Event gonna start Default : 10 Sec
set_task(get_pcvar_float(Cvar[2]),"EventStart") // The Task For live_maptime Cvar

}
public Handle( id,level,cid )
{
if ( !cmd_access( id, level, cid, 1 ) )
{
return PLUGIN_CONTINUE
}
new Msg[ 192 ]
read_args( Msg, 192 )
if(( containi( Msg, "/rr" ) != -1 || containi( Msg, "/restart" ) != -1 || containi( Msg, "/live" ) != -1))
{
EventStart()
}
return PLUGIN_CONTINUE
}
// When Event Start
public EventStart()
{
Timer = get_pcvar_num(Cvar[1])
new Float:res_time = get_pcvar_float(Cvar[1])
if(get_pcvar_num(Cvar[0]) == 1)
{
rslive = true
set_task(res_time + 1, "EventEnd")
set_task(1.0, "count", 123, _, _, "b")
}
return PLUGIN_CONTINUE
}
// When Event End
public EventEnd()
{
rslive = false
remove_task(123)
set_cvar_num("sv_restartround",1)
}
// The Timer
public count()
{
new r = random_num(10,255);new g = random_num(10,255);new b = random_num(10,255)
set_hudmessage(r, g, b, EFFECTS_MESSAGE)
show_hudmessage(0,MSG, Timer)
if(Timer <= 6)
{
set_hudmessage(255, 0, 212, -1.0, 0.01, 2, 0.1, 0.92, 0.1, 0.1, 5)
show_hudmessage(0,GETREADY, Timer)
}
if(Timer == 5)
{
client_cmd(0, "spk vox/five.wav")
}
if(Timer == 4)
{
client_cmd(0, "spk vox/four.wav")
}
if(Timer == 3)
{
client_cmd(0, "spk vox/three.wav")
}
if(Timer == 2)
{
client_cmd(0, "spk vox/two.wav")
}
if(Timer == 1)
{
client_cmd(0, "spk vox/one.wav")
}
Timer--
}
want to edit 2 things:- 1.round should restart three times
2.It should diplay live in same effects as its doing in opening, in the end.