Raised This Month: $ Target: $400
 0% 

HUD msg..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-30-2011 , 03:12   Re: HUD msg..
Reply With Quote #1

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 View Post
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 !");
}
__________________
Hunter-Digital is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode