PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#define VERSION "1.0"
new cvar_respawn, cvar_money;
public plugin_init()
{
register_plugin("Respawn Forever", VERSION, "Drekes");
RegisterHam(Ham_Killed, "player", "FwdHamPlayerKilledPost", 1);
cvar_respawn = register_cvar("amx_respawn_delay", "1.5");
cvar_money = register_cvar("amx_respawn_money", "10000");
}
public FwdHamPlayerKillerPost(victim, killer)
{
if(is_user_connected(victim))
set_task(get_pcvar_float(cvar_respawn), "TaskRespawn", victim);
}
public TaskRespawn(id)
{
if(is_user_connected(id))
{
cs_set_user_money(id, get_pcvar_num(cvar_money));
ExecuteHamB(Ham_CS_RoundRespawn, id);
}
}
__________________