Raised This Month: $ Target: $400
 0% 

How do i display an HUD message from server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
imrock
New Member
Join Date: Jun 2011
Old 10-26-2011 , 02:08   How do i display an HUD message from server
Reply With Quote #1

I am new to AMX. In other words, i am a noob.

Can anyone tell me how to display HUD messages on server after regular intervals?

Like the server should display automatically, "Sorry for the Lag!" in an HUD message.
imrock is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-26-2011 , 02:34   Re: How do i display an HUD message from server
Reply With Quote #2

Search. Try the Tutorials Section.
__________________
fysiks is offline
ROKronoS
Senior Member
Join Date: Oct 2010
Location: Bucharest, Romania
Old 10-26-2011 , 05:28   Re: How do i display an HUD message from server
Reply With Quote #3

In order to create a hudmessage you have to use set_hudmessage(...) and show_hudmessage(...).

set_hudmessage: http://www.amxmodx.org/funcwiki.php?go=func&id=28
show_hudmessage: http://www.amxmodx.org/funcwiki.php?go=func&id=29

For displaying the message after regular intervals you'll have to use set_task(...).

set_task: http://www.amxmodx.org/funcwiki.php?go=func&id=253
ROKronoS is offline
MostwantedScript
Senior Member
Join Date: Sep 2010
Location: Sweden,Gothenburg
Old 10-26-2011 , 10:14   Re: How do i display an HUD message from server
Reply With Quote #4

Quote:
Originally Posted by imrock View Post
I am new to AMX. In other words, i am a noob.

Can anyone tell me how to display HUD messages on server after regular intervals?

Like the server should display automatically, "Sorry for the Lag!" in an HUD message.
PHP Code:
set_hudmessage(255255255, -1.00.2606.06.0)
show_hudmessage(id"Sorry for the lag!"
That will be white top center of the screen and time 6 seconds

(255, 255, 255=Colors, -1.0, 0.26, 0, 6.0=Location, 6.0=Time it will show)

show_hudmessage(id, This will show to one player only
show_hudmessage(0, This will show for all players
__________________
Owner & Creator of
http://mostwantedhf.info

Last edited by MostwantedScript; 10-26-2011 at 10:16.
MostwantedScript is offline
Send a message via Skype™ to MostwantedScript
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 14:18.


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