#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define PLUGIN "[InfoPlayer"
#define VERSION "0.1"
#define AUTHOR "Jokos"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
set_task(0.6, "infoplayer", id, .flags="b")
}
public infoplayer(id)
{
if(is_user_alive(id))
{
new szName[32]
get_user_name(id, szName, 31)
new frags = get_user_frags(id)
new health = get_user_health(id)
new armor = get_user_armor(id)
new money = cs_get_user_money(id)
if(get_user_team(id) & 2)
{
set_hudmessage(255, 20, 147, -1.0, 0.90, 0, 6.0, 1.1, 0.0, 0.0, -1);
show_hudmessage(id, ".:[Жизни: %d]|[Брони: %d]:.^n.:[Сайт: Нету]:.^n.:[Ты: Мент]:.", health, armor)
}
else
{
set_hudmessage(255, 20, 147, -1.0, 0.90, 0, 6.0, 1.1, 0.0, 0.0, -1);
show_hudmessage(id, ".:[Жизни: %d]|[Брони: %d]:.^n.:[Сайт: Нету]:.^n.:[Ты: Зек]:.", health, armor)
}
}
}