Permanent hudmessage
Permanent hudmessage
.............
Последно промяна от Michaall на 18 Яну 2023, 19:22, променено общо 2 пъти.
-
hellmoss
Извън линия - AMXX Скриптър
- Мнения: 80
- Регистриран на: 15 Окт 2016, 20:24
- Се отблагодари: 9 пъти
- Получена благодарност: 14 пъти
- Обратна връзка:
Permanent hudmessage
Код за потвърждение: Избери целия код
#include<amxmodx>
public plugin_init()
set_task(1.0, "showhud",_,_,_,"b")
public showhud()
{
new plrs[32],cnt
get_players(plrs,cnt,"ah")
for(new i=0;i<cnt;i++)
{
set_hudmessage(50, 150, 200, -1.0, 0.90, 0, 0.0, 1.1, 0.0, 0.0)
show_hudmessage(plrs[i], "HP: %d | ARM: %d | TYP: %s", get_user_health(plrs[i]), get_user_armor(plrs[i]), g_szPlayerClass[plrs[i]])
}
}
xLd Zombie Plague -- 46.4.77.125
https://discord.gg/kbjN5JRxWb
https://discord.gg/kbjN5JRxWb
Permanent hudmessage
.............
Последно промяна от Michaall на 18 Яну 2023, 19:21, променено общо 1 път.
-
hellmoss
Извън линия - AMXX Скриптър
- Мнения: 80
- Регистриран на: 15 Окт 2016, 20:24
- Се отблагодари: 9 пъти
- Получена благодарност: 14 пъти
- Обратна връзка:
Permanent hudmessage
You shouldn't have a lot of hud messages constantly displayed, try to unite them or try changing their channel. After the last 0.0 try to add:
, 1
try 1/2/3/4
In general minimize the number of hud mssages to avoid overlapping.
, 1
try 1/2/3/4
In general minimize the number of hud mssages to avoid overlapping.
xLd Zombie Plague -- 46.4.77.125
https://discord.gg/kbjN5JRxWb
https://discord.gg/kbjN5JRxWb
Permanent hudmessage
.............
Последно промяна от Michaall на 18 Яну 2023, 19:21, променено общо 2 пъти.
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1295 пъти
- Обратна връзка:
Permanent hudmessage
Please use [cоde] tags for posting codes.
You can have a maximum of 4 HUD messages on the screen at the same time. If there are more, they will start flickering and disappearing.
The best choice is to leave the channel on -1 (auto).
You can find working examples for permanent HUD messages here - https://amxx-bg.info/forum/viewtopic.php?f=26&t=144
You can have a maximum of 4 HUD messages on the screen at the same time. If there are more, they will start flickering and disappearing.
The best choice is to leave the channel on -1 (auto).
You can find working examples for permanent HUD messages here - https://amxx-bg.info/forum/viewtopic.php?f=26&t=144
Permanent hudmessage
.............
Последно промяна от Michaall на 18 Яну 2023, 19:21, променено общо 1 път.
Permanent hudmessage
МНЕНИЕТО Е СКРИТО ОТ СТРАНА НА МОДЕРАТОР! ЦЪКНИ ВЪРХУ ЛЕНТАТА ЗА ДА ГО ПРЕГЛЕДАШ.
Последно промяна от OciXCrom на 14 Дек 2019, 16:15, променено общо 1 път.
Причина: Don't bump threads! Use the bump button!
Причина: Don't bump threads! Use the bump button!
-
hellmoss
Извън линия - AMXX Скриптър
- Мнения: 80
- Регистриран на: 15 Окт 2016, 20:24
- Се отблагодари: 9 пъти
- Получена благодарност: 14 пъти
- Обратна връзка:
Permanent hudmessage
Prosím pomožte nám zůstat bez omezení.
Ano, mluvíme o AdBlocku.
upload to imgur
Ano, mluvíme o AdBlocku.
upload to imgur
Where do you see me suggesting "-1"? My code is exactly what you need, figure out how to avoid overlapping.Michaall написа: ↑14 Дек 2019, 00:48 Did you mean something like that?because it doesn't work.Код за потвърждение: Избери целия код
public ShowHud( ) { new players[ 32 ],cnt get_players( players, cnt, "ah" ) for( new id = 0 ; id < cnt ;id++ ) { if( g_isBuilder[ players[ id ] ] ) { set_hudmessage( 50, 150, 200, -1.0, 0.90, 0, 0.0, 1.1, 0.0, 0.0, -1 ) ShowSyncHudMsg( players[ id ], g_HudSync, "Zdravi: %d | Armor: %d | Typ: Builder^nBody %d", get_user_health( players[ id ] ), get_user_armor( players[ id ] ), g_iBody[ players[ id ] ] ) } else { set_hudmessage( 200, 20, 30, -1.0, 0.90, 0, 0.0, 1.1, 0.0, 0.0, -1 ) ShowSyncHudMsg( players[ id ], g_HudSync, "Zdravi: %d | Armor: %d | Typ: %s^nBody %d", get_user_health( players[ id ] ), get_user_armor( players[ id ] ), g_szPlayerClass[ players[ id ] ], g_iBody[ players[ id ] ] ) } } }
and everywhere I put -1 to set it up an automatic free channel.
xLd Zombie Plague -- 46.4.77.125
https://discord.gg/kbjN5JRxWb
https://discord.gg/kbjN5JRxWb
Permanent hudmessage
............
Последно промяна от Michaall на 18 Яну 2023, 19:20, променено общо 1 път.
-
- Подобни теми
- Отговори
- Преглеждания
- Последно мнение
Кой е на линия
Потребители разглеждащи този форум: 0 регистрирани и 9 госта