It doesn't matter where you place the functions.
Also, add "public" before client_putinserver or it won't work.
Quote:
Originally Posted by samba88
merci..
but my questin is why my script dont show me my hud automatically
|
Because there's nothing calling it... you must hook an event or something to have it trigger at some point... public client_putinserver() is triggered when player enters server... but you're also sending the message to *all* players... so use something like this:
Code:
public client_putinserver(id)
{
set_task(1.0, "hud_msg", id)
}
public hud_msg(id)
{
set_hudmessage(255,0, 0, -1.0, 0.8, 2, 0.5, 8.0, 0.2, 1.0, 4);
show_hudmessage(id, "Welcome !");
}
__________________