how to make a Hud text
Hello i want you to help me to make a hud text like amx_tsay but i want to make it have infinite time
some one please? |
Re: how to make a Hud text
PHP Code:
|
Re: how to make a Hud text
Quote:
|
Re: how to make a Hud text
this will do it
Code:
#include <amxmodx> |
Re: how to make a Hud text
It's absolutely not necessary to call the hudmessage on player think. You should create a HudSyncObj and update the message in 0.5,or 1.0 seconds, nothing very heavy. Like this:
Code:
#include <amxmodx> |
Re: how to make a Hud text
Quote:
PHP Code:
|
Re: how to make a Hud text
Iwon, stop posting code you don't understand.
danielkza, register_task() is undefined. You don't need to iterate over each player when using HUD messages because passing 0 as the player ID does so automatically. I'm glad you raised the issue of the FM_PlayerPostThink, but the same can be said of set_task() (assuming that's what you intended to use). If this were my server, I'd be displaying the HUD message for (mp_roundtime * 60) seconds once per round, but you'd need to make sure other plugins play nicely to do that. I'm pretty sure ESEA uses this method. Come to think of it, try this: Code:
|
| All times are GMT -4. The time now is 03:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.