#include <amxmodx>
#define PLUGIN "Player Info"
#define VERSION "0.1"
#define AUTHOR "furien"
#pragma semicolon 1
new g_FriendOnly;
public plugin_init( )
{
register_plugin(PLUGIN, VERSION, AUTHOR);
g_FriendOnly = register_cvar("aim_friendo", "1");
register_event("StatusValue", "EventStatusValue", "b", "1>0", "2>0");
}
public EventStatusValue(const id)
{
new sName[32], iType = read_data(1), iData = read_data(2);
get_user_name(iData, sName, 31);
if(iType == 3 || !g_FriendOnly && iType == 1) return;
if (get_user_team(iData) == 1)
set_hudmessage(255, 0, 0, -1.0, 0.59, 0, 2.0, 2.0);
else if (get_user_team(iData) == 2)
set_hudmessage(0, 128, 255, -1.0, 0.59, 0, 2.0, 2.0);
show_hudmessage(id, sName);
}