|
Junior Member
Join Date: Oct 2016
Location: Iraq/Najaf
|

10-12-2016
, 04:00
Aim-Info by SEMO.Pa3x
|
#1
|
Aim Info
Name, Health, Armor, Country
| Description:
this plugin allows you to view information (friends / enemies)
when you put the cursor on the head.
[ Health: %d | Armor: %d | Country: %s ]
CT = Blue , T = Red .
| Screenshot:

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <geoip>
#define PLUGIN "Aim-Info" #define VERSION "1.0" #define AUTHOR "SEMO.Pa3x"
new g_aimsttt, g_aimstct
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) g_aimsttt = CreateHudSyncObj() g_aimstct = CreateHudSyncObj() register_event("StatusValue", "event_show_status", "be", "1=2", "2!0") register_event("StatusValue", "event_hide_status", "be", "1=1", "2=0") }
public event_show_status(id) { if (!is_user_alive(id)) return; new szName[32] new iData = read_data(2); get_user_name(iData, szName, charsmax(szName)) static sz_ip[16],sz_country[20] get_user_ip(iData,sz_ip,charsmax(sz_ip),1) geoip_country(sz_ip,sz_country,charsmax(sz_country)) if(cs_get_user_team(iData) == CS_TEAM_T) { set_hudmessage(255, 20, 20, -1.0, 0.60, 1, 0.0, 1.0, 0.2, 0.2, -1) ShowSyncHudMsg(id, g_aimsttt,"%s ^n[ Health: %d | Armor: %d | Country: %s ]", szName, get_user_health(iData), get_user_armor(iData), sz_country); } if(cs_get_user_team(iData) == CS_TEAM_CT) { set_hudmessage(20, 20, 255, -1.0, 0.60, 1, 0.0, 1.0, 0.2, 0.2, -1) ShowSyncHudMsg(id, g_aimstct,"%s ^n[ Health: %d | Armor: %d | Country: %s ]", szName, get_user_health(iData), get_user_armor(iData), sz_country); } }
public event_hide_status(id) { ClearSyncHud(id, g_aimsttt) ClearSyncHud(id, g_aimstct) }
|
|