VIP
|
Cs-PlovdiV.com - Aim Attack 93.123.16.4:27022 |
aim_aztec Играчи: 0/16 |
|
VIP
|
93.123.16.4:27022 | Cs-PlovdiV.com - Aim Attack | aim_aztec | 0/16 |
hud admins online plugin
-
vini2001
Извън линия - Foreigner
- Мнения: 45
- Регистриран на: 09 Мар 2020, 15:50
- Се отблагодари: 4 пъти
- Обратна връзка:
hud admins online plugin
I would like a plugin with a HUD that shows the admins online
but just to see her when she's dead so she won't get in the way during the match
and an option to disable if someone does not like / hudadmin
ADMINS flags "d"
but just to see her when she's dead so she won't get in the way during the match
and an option to disable if someone does not like / hudadmin
ADMINS flags "d"
-
Tornado_SW
Извън линия - AMXX Скриптър
- Мнения: 161
- Регистриран на: 04 Фев 2020, 22:41
- Се отблагодари: 28 пъти
- Получена благодарност: 83 пъти
- Обратна връзка:
hud admins online plugin
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <amxmisc>
#if AMXX_VERSION_NUM < 183
#include <dhudmessage>
#endif
#define TASK_DHUD 24566
#define ADMIN_FLAG "d"
new g_iShowDHUD[33], g_iAdmins
public plugin_init()
{
register_plugin("Show Admins Online (DHUD)", "1.0", "Tornado_SW")
register_clcmd("say /hudadmin", "cmdHudAdmin")
register_clcmd("say_team /hudadmin", "cmdHudAdmin")
}
public client_putinserver(id)
{
set_task(1.0, "taskShowAdmins", id + TASK_DHUD, .flags = "b")
}
public client_authorized(id)
{
if(get_user_flags(id) & read_flags(ADMIN_FLAG))
{
g_iAdmins++
}
}
public client_disconnect(id)
{
new iTask = id + TASK_DHUD
if(task_exists(iTask))
{
remove_task(iTask)
}
if(get_user_flags(id) & read_flags(ADMIN_FLAG))
{
g_iAdmins--
}
}
public taskShowAdmins(id)
{
id -= TASK_DHUD
if(g_iShowDHUD[id] || is_user_alive(id))
{
return
}
set_dhudmessage(0, 255, 100, 0.01, 0.15, 0, 0.1, 1.0, 0.1, 0.1)
show_dhudmessage(id, "Admins Online: %i", g_iAdmins)
}
public cmdHudAdmin(id)
{
if(g_iShowDHUD[id]) g_iShowDHUD[id] = 0
else g_iShowDHUD[id] = 1
client_print(id, print_chat, "* Show admins online message %s", g_iShowDHUD[id] ? "disabled" : "enabled")
}
Не виждам това с какво ще му помогне освен да си настрои самото hud съобщение.Err0rcH0 написа:https://amxx-bg.info/forum/hudgenerator/
-
vini2001
Извън линия - Foreigner
- Мнения: 45
- Регистриран на: 09 Мар 2020, 15:50
- Се отблагодари: 4 пъти
- Обратна връзка:
hud admins online plugin
this perfect, but I would like to add to show the name of each admin in the list
ADmins online: 1
tuts
lietets
etc
and there's a problem, if any admin falls from the match and comes back, he still keeps scoring
example
has 1 admin online and he falls, when he comes back is 2 admin online
the plugin doesn't check
ADmins online: 1
tuts
lietets
etc
and there's a problem, if any admin falls from the match and comes back, he still keeps scoring
example
has 1 admin online and he falls, when he comes back is 2 admin online
the plugin doesn't check
-
vini2001
Извън линия - Foreigner
- Мнения: 45
- Регистриран на: 09 Мар 2020, 15:50
- Се отблагодари: 4 пъти
- Обратна връзка:
hud admins online plugin
This plugin doesn't meet what I'm looking for
I want with the information I gave above ...
that doesn’t appear when he’s alive, that has the option to disable hud, which our friend tornado_SW is almost perfect just missing the plugin to check when admins leave, and add the name of each admin online in the list
I want with the information I gave above ...
that doesn’t appear when he’s alive, that has the option to disable hud, which our friend tornado_SW is almost perfect just missing the plugin to check when admins leave, and add the name of each admin online in the list
-
Tornado_SW
Извън линия - AMXX Скриптър
- Мнения: 161
- Регистриран на: 04 Фев 2020, 22:41
- Се отблагодари: 28 пъти
- Получена благодарност: 83 пъти
- Обратна връзка:
hud admins online plugin
I could do only this. It shows the names right but the only problem is they are not listed.
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <amxmisc>
#if AMXX_VERSION_NUM < 183
#include <dhudmessage>
#endif
#define TASK_DHUD 24566
#define ADMIN_FLAG "d"
new g_iShowDHUD[33], g_iAdmins, g_szAdminNames[33][32]
public plugin_init()
{
register_plugin("Show Admins Online (DHUD)", "1.0", "Tornado_SW")
register_clcmd("say /hudadmin", "cmdHudAdmin")
register_clcmd("say_team /hudadmin", "cmdHudAdmin")
}
public client_putinserver(id)
{
set_task(1.0, "taskShowAdmins", id + TASK_DHUD, .flags = "b")
}
public client_authorized(id)
{
if(get_user_flags(id) & read_flags(ADMIN_FLAG))
{
get_user_name(id, g_szAdminNames[g_iAdmins], charsmax(g_szAdminNames[]))
g_iAdmins++
}
}
public client_disconnect(id)
{
new iTask = id + TASK_DHUD
if(task_exists(iTask))
{
remove_task(iTask)
}
if(get_user_flags(id) & read_flags(ADMIN_FLAG))
{
g_iAdmins--
}
}
public taskShowAdmins(id)
{
id -= TASK_DHUD
if(g_iShowDHUD[id] || is_user_alive(id))
{
return
}
set_dhudmessage(0, 255, 100, 0.01, 0.15, 0, 0.1, 1.0, 0.1, 0.1)
for(new szListNames[128], i; i < g_iAdmins; i++)
{
formatex(szListNames, charsmax(szListNames), "%s^n", g_szAdminNames[i])
show_dhudmessage(id, "Admins Online: %i^n%s", g_iAdmins, szListNames)
}
}
public cmdHudAdmin(id)
{
if(g_iShowDHUD[id]) g_iShowDHUD[id] = 0
else g_iShowDHUD[id] = 1
client_print(id, print_chat, "* Show admins online message %s", g_iShowDHUD[id] ? "disabled" : "enabled")
}
-
vini2001
Извън линия - Foreigner
- Мнения: 45
- Регистриран на: 09 Мар 2020, 15:50
- Се отблагодари: 4 пъти
- Обратна връзка:
hud admins online plugin
right plugin is perfect, but the adms not listed are on top of each other in the hud
can't solve it?
can't solve it?
-
Tornado_SW
Извън линия - AMXX Скриптър
- Мнения: 161
- Регистриран на: 04 Фев 2020, 22:41
- Се отблагодари: 28 пъти
- Получена благодарност: 83 пъти
- Обратна връзка:
-
vini2001
Извън линия - Foreigner
- Мнения: 45
- Регистриран на: 09 Мар 2020, 15:50
- Се отблагодари: 4 пъти
- Обратна връзка:
hud admins online plugin
МНЕНИЕТО Е СКРИТО ОТ СТРАНА НА МОДЕРАТОР! ЦЪКНИ ВЪРХУ ЛЕНТАТА ЗА ДА ГО ПРЕГЛЕДАШ.
Последно промяна от OciXCrom на 08 Май 2020, 21:21, променено общо 1 път.
Причина: Don't bump. Just wait.
Причина: Don't bump. Just wait.
-
- Подобни теми
- Отговори
- Преглеждания
- Последно мнение
-
- 5 Отговори
- 2465 Преглеждания
-
Последно мнение от USA_CA
-
- 2 Отговори
- 1801 Преглеждания
-
Последно мнение от Midnight1337
-
- 3 Отговори
- 1949 Преглеждания
-
Последно мнение от OciXCrom
-
- 8 Отговори
- 5390 Преглеждания
-
Последно мнение от Autumn Shade
-
- 3 Отговори
- 734 Преглеждания
-
Последно мнение от ChillX
-
- 9 Отговори
- 3626 Преглеждания
-
Последно мнение от OciXCrom
-
- 4 Отговори
- 2680 Преглеждания
-
Последно мнение от ctdimitrov
Кой е на линия
Потребители разглеждащи този форум: 0 регистрирани и 3 госта