/**************************************/
/*| ZP Aim Hud Info |*/
/*| |*/
/*| Автор плагина: Yakess |*/
/*| Создатель плагина: Yakess |*/
/*| Мой ВК: vk.com/yralevkovich1 |*/
/*| Моя страница на Zombie-Amxx.ru |*/
/*| zombie-amxx.ru/user/yakess/ |*/
/*| |*/
/**************************************/
#include <amxmodx>
#include <cstrike>
#include <zombieplague>
#define PLUGIN "Aim Hud Info"
#define VERSION "1.0"
#define AUTHOR "Yakess"
new g_status_sync
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("StatusValue", "showStatus", "be", "1=2", "2!0")
register_event("StatusValue", "hideStatus", "be", "1=1", "2=0")
register_dictionary("zp_aimhudinfo.txt");
g_status_sync = CreateHudSyncObj()
}
public showStatus(id)
{
if(!is_user_bot(id) && is_user_connected(id))
{
new name[32], pid = read_data(2)
get_user_name(pid, name, 31)
new color1 = 0, color2 = 0
new team1 = zp_get_user_zombie(id), team2 = zp_get_user_zombie(pid)
if (team2 == 1)
color1 = 255
else
color2 = 255
if (team1 == team2) // friend
{
set_hudmessage(0, 255, 255, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, -1)
ShowSyncHudMsg(id, g_status_sync, "%L", LANG_PLAYER, "AIM_INFO", name, get_user_health(pid), get_user_armor(pid), cs_get_user_money(pid))
}
}
}
public hideStatus(id)
{
ClearSyncHud(id, g_status_sync)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/