Код
#include <amxmodx>
#include <hamsandwich>
#define VIP ADMIN_LEVEL_H
new gAlive[33]
public plugin_init()
{
register_event("HLTV", "EventHLTV", "a", "1=0", "2=0")
register_event("DeathMsg", "EventDeathMsg", "a")
register_cvar("cvar_lives", "3")
}
public EventHLTV()
{
for(new id = 1; id <= get_maxplayers(); id++)
{
if(get_user_flags(id) & VIP)
{
gAlive[id] = get_cvar_num("cvar_lives")
client_print(id, print_chat, "Вы получаете %d жизней", gAlive[id])
}
}
}
public EventDeathMsg()
{
if(get_user_flags(read_data(2)) & VIP)
{
if(gAlive[read_data(2)] > 0)
{
ExecuteHamB(Ham_CS_RoundRespawn, read_data(2))
--gAlive[read_data(2)]
client_print(read_data(2), print_chat, "У вас осталось %d жизней", gAlive[read_data(2)])
}else{
client_print(read_data(2), print_chat, "У вас не осталось жизней")
}
}
}
Просто скомпилируй и на сервер запили