Member

12012023
, 11:14
Re: 5 or more dhud and hud messages

#8

(NOTE)
hmm, How should I do to show HUD messages?
1) with this way?
Code:
#include <amxmodx>
new g_hud1, g_hud2
public plugin_init( )
{
set_task(1.0, "hud1")
set_task(1.0, "hud2")
g_hud1 = CreateHudSyncObj()
g_hud2 = CreateHudSyncObj()
}
public hud1()
{
set_task(1.0, "hud1")
set_hudmessage(255, 255, 255, 1.0, 0.05, 0, 6.0, 1.0)
ShowSyncHudMsg(0, g_hud1, "hud 1")
}
public hud2()
{
set_task(1.0, "hud2")
set_hudmessage(255, 255, 255, 0.5, 0.02, 0, 6.0, 1.0)
ShowSyncHudMsg(0, g_hud2, "hud 2")
}
2) or with this way?
Code:
#include <amxmodx>
new g_hud1, g_hud2
public plugin_init( )
{
set_task(1.0, "hud1")
set_task(1.0, "hud2")
g_hud1 = CreateHudSyncObj(1)
g_hud2 = CreateHudSyncObj(2)
}
public hud1()
{
set_task(1.0, "hud1")
set_hudmessage(255, 255, 255, 1.0, 0.05, 0, 6.0, 1.0)
ShowSyncHudMsg(0, g_hud1, "hud 1")
}
public hud2()
{
set_task(1.0, "hud2")
set_hudmessage(255, 255, 255, 0.5, 0.02, 0, 6.0, 1.0)
ShowSyncHudMsg(0, g_hud2, "hud 2")
}
3) or with this way?
Code:
#include <amxmodx>
public plugin_init( )
{
set_task(1.0, "hud1")
set_task(1.0, "hud2")
}
public hud1()
{
set_task(1.0, "hud1")
set_hudmessage(255, 255, 255, 1.0, 0.05, 0, 6.0, 1.0)
show_hudmessage(0, "hud 1")
}
public hud2()
{
set_task(1.0, "hud2")
set_hudmessage(255, 255, 255, 0.5, 0.02, 0, 6.0, 1.0)
show_hudmessage(0, "hud 2")
}

