PDA

View Full Version : HUD message not displayed


Wind_Shark
05-01-2008, 12:23
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
register_plugin("Welcomemsg","2.4","Wind_shark")
}
public client_putinserver(id)
{
if(is_user_connected(id))
{
new name[32]
get_user_name(id,name,31)
new steamid[41]
get_user_authid(id,steamid,40)
server_print("[AMX]CONNECTION: %s(%s)^n",name,steamid)
set_hudmessage(255, 100, 0, 0.02, 0.24, 0, 6.0, 12.0)
show_hudmessage(id, "[AMX]^n%s^nJoined the game",name)
}
return PLUGIN_HANDLED
}


With this, the HUD message isnt displayed,
could someone please tell me whats wrong ?

YamiKaitou
05-01-2008, 12:27
The message is displayed, just the user has stuff blocking his view, such as the motd window.


Also, Scripting questions belong in Scripting Help. Moved

atomen
05-01-2008, 12:30
Change "show_hudmessage(id, "[AMX]^n%s^nJoined the game",name)"
to "show_hudmessage(0, "[AMX]^n%s^nJoined the game",name)"

If you want everyone to see it.

anakin_cstrike
05-01-2008, 12:57
If u want to display the msg to the person who enters on the server...just make task with 5 seconds...and there put you're hud :wink:

Wind_Shark
05-02-2008, 19:51
Thanks for your answers sorry to post this into the wrong topic