You might do enough dmg to kill them in one hit.
Then they wouldn't be able to heal up as the damage is done directly.
This is how you would set their health and armor at spawn.
Code:
#include <amxmodx>
#include <fun>
new bool:g_restart_attempt[33];
public plugin_init() {
register_plugin("", "", "")
register_event("ResetHUD", "event_hud_reset", "be");
register_clcmd("fullupdate", "clcmd_fullupdate") ;
register_event("TextMsg", "event_restart_attempt", "a", "2=#Game_will_restart_in");
}
public clcmd_fullupdate()
return PLUGIN_HANDLED
public event_restart_attempt() {
new players[32], num;
get_players(players, num, "a");
for ( new i ; i < num ; ++i)
g_restart_attempt[players[i]] = true;
}
public event_hud_reset(id) {
if (g_restart_attempt[id]) {
g_restart_attempt[id] = false;
return;
}
set_user_health(id, 150)
set_user_armor(id, 150)
}