Quote:
Originally Posted by stupok69
But it's wrong.  That will revive the user 5.0 seconds after dying.
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "Revive if Killed in 5 Seconds"
#define VERSION "1.0"
#define AUTHOR "stupok69"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("logevent_round_start", 2, "1=Round_Start")
}
public logevent_round_start()
{
set_task(5.0, "revive_function")
}
public revive_function()
{
new players[32], num
get_players(players, num, "bh")
for(new i = 0; i < num; i++)
cs_user_spawn(i)
}
|
This sure works but...what if the player TKed the round before?
Then he will get no punishment o_O