AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How do i display an HUD message from server (https://forums.alliedmods.net/showthread.php?t=170535)

imrock 10-26-2011 02:08

How do i display an HUD message from server
 
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.

fysiks 10-26-2011 02:34

Re: How do i display an HUD message from server
 
Search. Try the Tutorials Section.

ROKronoS 10-26-2011 05:28

Re: How do i display an HUD message from server
 
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

MostwantedScript 10-26-2011 10:14

Re: How do i display an HUD message from server
 
Quote:

Originally Posted by imrock (Post 1583387)
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


All times are GMT -4. The time now is 14:18.

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