The plugin doesnt show the hud msg
Code:
#include <amxmodx> |
Re: The plugin doesnt show the hud msg
Have you tried to debug it?
Make sure the HUD message functions are correct by taking it out of prethink (bad place for it anyways) and see if it works but remember to change the hold time so that it won't just disappear. |
Re: The plugin doesnt show the hud msg
1 Attachment(s)
After I add
Code:
set_task(1.0, "client_PreThink", TASKID, _, _, "b") |
Re: The plugin doesnt show the hud msg
Rename "client_PreThink" to something else, because prethink is called TOO frequent for your needs.
|
Re: The plugin doesnt show the hud msg
If I rename it, it wont show hud msg again.
|
Re: The plugin doesnt show the hud msg
That's what the set_task() is for... add a repeatitive task ("b" flag, you're using it already) at the start of plugin, check your stuff and then send the hud message to everybody.
You also might want to extend the HUD message duration and/or reduce the task delay... a 1.0 for both should be enough for counting down seconds. That client_PreThink is verry WRONG here, it's called dozen of times per second for each player... and you're sending a message to all players from each player's prethink... imagine how much useless traffic you're adding. |
| All times are GMT -4. The time now is 23:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.