Dupa cum stiti hud-urile sunt foarte folosite.
Ele sunt foarte simple de facut.
Ca sa nu aveti probleme cu ele luati amxx studio si alegeti de sus Generators -> Hud messaje Generator si alegi acolo pozitia culoare etc dupa aia dati OK.
Sa va explic cum functioneaza un hud.
set_hudmessage ( red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2, channel=4 )
show_hudmessage(id, "")set_hudmessage ( red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2, channel=4 ) - reprezinta setarile, adica pozitia , culoarea si timpul de afisare.
show_hudmessage(id, "") - aici va fi afisat mesajul vostru. Puteti pune mai multe de astea pentru mai multe hud-uri.
unde este cu rosu ester culoare.
255 0 0 - este culoare rosie
cea max este alba adica 255 255 255.
- unde este rosu este gen x,y pozitia lui.
- reprezinta efectele hud-ului:
0 = fade in/fade out
1 = flickery credits
2 = write out (training room)
ex.
- Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2, channel=4 reprezinta setarile care se fac afisarea efectului.
Mai multe detali intrati aici: http://www.amxmodx.o...p?go=func&id=28
Note: show_hudmessage(id, "") Daca folositi asa cu id atunci nu va afisat la toti jucatori puneti 0 in loc de id
ex.
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Mesaj"
#define VERSION "1.0"
#define AUTHOR "FireW@ll"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(30.0,"mesaj",0,_,_,_,0)
}
public mesaj(){
set_hudmessage(255, 0, 0, 0.33, 0.27, 0, 6.0, 12.0)
show_hudmessage(0, "Afisare mesaj")
}
Dupa 30 de sec va fi afisat un mesaj hud.
Have Fun
Welcome to PISTOLARII România @ Since 2011
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Toggle shoutbox Chat Online Pistolarii Romania
|
[AMXX] HUD
Started by Tiberiw, Mar 21 2024 12:30 AM
#1
Posted 21 March 2024 - 12:30 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users