bb_get_user_zombie(id)
->
bb_is_user_zombie(id)
PHP- Kodu:
#include <amxmodx>
#include <basebuilder>
public plugin_init() {
register_plugin("BB: Show Victim HP On Damage", "1.0", "<VeCo>")
register_event("Damage","event_damage","b","2!0","3=0","4!0")
}
public event_damage(id){
new killer = get_user_attacker(id)
if(bb_is_user_zombie(id)) {
client_print(killer,print_center,"HP: %i",get_user_health(id))
}
}
EDIT:
Ayrıca konu forumda mevcuttu birdaha ki sefere araştırma yapmadan konu açmayın.
https://www.csplague.com/cozulmus-is...tml#post252559
Ayrıca
PHP- Kodu:
#include <amxmodx>
#include <basebuilder>
#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")
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, charsmax(name))
new color1 = 0, color2 = 0
new team1 = bb_is_user_zombie(id), team2 = bb_is_user_zombie(pid)
if(team2 == 1)
color1 = 255
else if(team1 == 1)
color2 = 255
set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, -1)
ShowSyncHudMsg(id, g_status_sync, "%s | HP: %d | Armor: %d", name, get_user_health(pid), get_user_armor(pid))
}
}
public hideStatus(id)
{
ClearSyncHud(id, g_status_sync)
}