LGV94, C DHUD >>> HUD , не?
static ip[22] >>> static ip[33] ( на всякий случай )))
P.S. Вставьте Ваш Код [code][/code]
Код:
#include <amxmodx>
public plugin_init()
{
register_plugin("Hud_Info+IP", "2.0", "DeIIyTaT")
set_task(1.0, "task_hud", _, _, _, "b")
}
public task_hud()
{
static ip[33]
get_user_ip(0, ip, charsmax(ip))
set_hudmessage(0, 255, 252, -1.0, 0.0, 0, 1.1, 1.1, 0.1, 0.1)
show_hudmessage(0, "Наш IP: %s", ip)
set_hudmessage(171, 57, 57, -1.0, 0.06, 0, 1.0, 1.0, 1.0, 1.0)
show_hudmessage(0, "Админы Онлайн: %d", admins())
}
admins()
{
new num
for(new id = 1; id <= get_maxplayers(); id++)
{
if(is_user_connected(id) && get_user_flags(id) & ADMIN_BAN)
num++
}
return num
}
Отредактировал: $@NyA, - 26.11.2020, 11:32