Both codes are fine, they don't have effects... the message is just overlaying on the old one.
Quote:
Originally Posted by Hunter-Digital
set_hudmessage(210, 105, 30, 0.01, 0.78, 0, 0.0, (LOOP_DELAY + 1.0), 0.5, 0.5) /* channel is ignored for sync hud msgs */
ShowSyncHudMsg(0, g_iSync, "Message")
|
Quote:
Originally Posted by worldspawn
set_hudmessage(210, 105, 30,0.01,0.78,0, _, 2.0, 0.1, 0.1, 4 )
show_hudmessage(id,"blhablah")
|
wich _ is default value, meaning 0
It requires alot of precision to make a non-full color message looped and have the same color... it's no problem with full white, red, green, blue, yellow, purple, etc (messages that use minimum or maximum values, 0 or 255)
Quote:
Originally Posted by One
i think he has more hudmessages & any of hudmessages willbe replaced by other messages.
|
that's not either... it's sync hud msg not a normal one, see what it says about it in the functions list
-----------------------------------------
Later edit:
All I could come up was a small pulsing text, test it out to see the effect:
PHP Code:
#include <amxmodx>
#define LOOP_DELAY 1.0
new g_iSync
public plugin_init()
{
g_iSync = CreateHudSyncObj()
set_task(LOOP_DELAY, "loop", _, _, _, "b")
}
public loop()
{
set_hudmessage(210, 105, 30, 0.01, 0.78, 0, 0.0, LOOP_DELAY + 0.1, 0.25, 0.25) /* channel is ignored for sync hud msgs */
ShowSyncHudMsg(0, g_iSync, "Test message")
}
You can also adjust the pulse speed... change the duration and fade in/out to higher values for wider pulse and lower values for quicker pulse
__________________