It simply makes the server sv_restart 2 , 20 seconds after game commencing occurs. This was a usefull plugin earlier to prevent fast-connecters winning first round already before other players got into game. So everyone could play the pistol round.
Here is the modified and stripped to basic functions versions of my now nearly 2 years old first plugin ;-)
Code:
#include <amxmodx>
public restart_time()
set_task (get_cvar_float("amx_autorestart"),"restart_map",0)
public restart_map() {
set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)
show_hudmessage(0,"[AMXX] Automatic Round-Restart!")
set_cvar_float("sv_restart",2.0)
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("Auto-Restart","1.00","ToT | V!PER")
register_event("TextMsg","restart_time","a","2&#Game_C")
register_cvar("amx_autorestart","20.0")
return PLUGIN_CONTINUE
}
PS.: Code posted for moderators to get approval :-)