hud and cvars
hey, 2 questions about huds :D
how can i make cvars show up in the hud? eg mp_timelimit sv_nextmap and stuff? is it the same as hostname? like in amxx.cfg %hostname% so %mp_timelimit% or something? :D and why dosen't this work? Code:
/* Plugin generated by AMXX-Studio */ |
Re: hud and cvars
2. client_connect is called when the player is downloading.
You should use the event DeathMsg to detect when a player die. |
Re: hud and cvars
ok, thanks. and how about making cvars show up in huds?
|
Re: hud and cvars
Not hundred percent sure if this will work, but I think it should
timelimit = get_cvar_num("mp_timelimit") set_hudmessage(255, 255, 255, 0.70, 0.0, 0, 6.0, 0) show_hudmessage(id, "The timelimit is %i", timelimit) |
Re: hud and cvars
ok. i'll try it in a min. but does it show how much time is left until the map changes, or does it acctually show what it is set to?
|
Re: hud and cvars
The above example shows what's the cvar set to.Browse in your timeleft plugin and modify it to show hud msg instead of print_chat.
|
Re: hud and cvars
PHP Code:
|
Re: hud and cvars
Code:
/* Plugin generated by AMXX-Studio */ |
Re: hud and cvars
Quote:
|
| All times are GMT -4. The time now is 00:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.