I'm not exactly sure what you mean. Something like this though? (script is not optimized, I made it as short as possible)
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
new g_iLastDead[2]
public plugin_init()
{
register_plugin("Revive Last","1.0","Hawk552")
register_clcmd("amx_revive_last","fnReviveLast")
register_event("DeathMsg","fnEventDeathMsg","a")
register_logevent("fnLogEventRoundEnd",2,"1=Round_End")
register_logevent("fnLogEventRoundEnd",2,"1&Restart_Round_")
}
public fnReviveLast(id)
cs_user_spawn(g_iLastDead[get_user_team(id) - 1])
public fnEventDeathMsg()
g_iLastDead[get_user_team(read_data(2)) - 1] = read_data(2)
public fnLogEventRoundEnd()
{
g_iLastDead[0] = 0
g_iLastDead[1] = 0
}
__________________