Hey Folks i have found a plugin an coded it for me. But i am a very noob in it.
PHP Code:
/*****************************************************\
===============================
|| [ZP] Aim Info Plugin v1.0 ||
===============================
||DESCRIPTION||
When you aim at your friend, a hud message
appears which shows you the Name, HP,
Armor and Ammo Packs of your friend.
||CREDITS||
- AMX MOD X Team ----> For most of the natives
- MeRcyLeZZ ----> For ZP 4.3
- Sn!ff3r ----> For the Actual Aim info Plugin
\*****************************************************/
#include <amxmodx>
#define PLUGIN "Aim Info Plugin"
#define VERSION "1.0"
#define AUTHOR "@bdul!+Sn!ff3r"
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_aim_info.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 = get_user_team(id), team2 = get_user_team(pid)
if (team2 == 1)
color1 = 255
else
color2 = 255
if (team1 == team2) // friend
{
set_hudmessage(color1, 50, color2, -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), get_user_weapon(pid))
}
}
}
public hideStatus(id)
{
ClearSyncHud(id, g_status_sync)
}
This is the Plugin, and i want that it shows this:
Name: name
HP: 100
Geld: money
I have tried it with get_user_money, but it donīt work. And the Hud is horizontally. How to make it perpendicular?
Original Plugin:
https://forums.alliedmods.net/showthread.php?t=119421
Then i have another question. Hot to set, that the hud is only shown your own team? Only Terrorist should be look for ctīs hud. But the Ctīs should have a look for the Tīs.
Omg awful English. I hope you understand it, because i donīt know hot to better explain it