Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
new Float:g_LastRestart[33]
public plugin_init() {
register_plugin("Restart", "1.0", "Hawk552")
register_clcmd("say /restart", "say_restart", ADMIN_SLAY)
}
public say_restart(id, level, cid) {
if ( ! cmd_access(id, level, cid, 0) )
return
new Float:Time = halflife_time()
if(Time - g_LastRestart[id] < 10.0)
return
g_LastRestart[id] = Time
server_cmd("sv_restart 1")
}