AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   HUD Messages (https://forums.alliedmods.net/showthread.php?t=48942)

Shaman 12-23-2006 17:04

HUD Messages
 
1: How can I show 2 or more HUD messages at the same time?
2: How can I show permanent HUD messages? (I know I can refresh it with "set_task"; but it will cause lag for 10+ messages.)

The Specialist 12-23-2006 19:15

Re: HUD Messages
 
you can change the positions of the hud messages so that they wont overlap , also make sure you use diferant channels.

Shaman 12-24-2006 06:21

Re: HUD Messages
 
Channels?

The Specialist 12-24-2006 06:25

Re: HUD Messages
 
yes. A hud message is displayed on a channel . A player has 4 channels . If you do multiple messages without swithcing channels it will over lap or something else bad . :shock:

Code:

set_hudmessage
Core (amxmodx.inc)
Description
set_hudmessage - Sets the format for a HUD message
Syntax
set_hudmessage ( red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2, channel=4 )
Type
Native
Notes
There are 4 hud channels pr player. This means you can send a 2 diffrent messages to player a & b via channel 1.

Use index 0 if you want to send a message to everyone.
Use show_hudmessage to show the message.

Plugins that can be helpfull.
This plugin allows you to easly change the pos/color of a hud message:
http://www.amxmodx.org/forums/viewtopic.php?p=20785

User Contributed Notes

www.amxmodx.org/doc

Shaman 12-24-2006 11:16

Re: HUD Messages
 
Thanks:up::up:

The Specialist 12-24-2006 11:23

Re: HUD Messages
 
np:wink:

Simon Logic 12-25-2006 07:36

Re: HUD Messages
 
you can set .channel = -1

also read this one:

http://wiki.amxmodx.org/index.php/AM..._Text_Channels

Shaman 12-25-2006 10:57

Re: HUD Messages
 
Thanks

The Specialist 12-25-2006 15:01

Re: HUD Messages
 
Quote:

Originally Posted by Simon Logic (Post 419597)
you can set .channel = -1

also read this one:

http://wiki.amxmodx.org/index.php/AM..._Text_Channels

Except setting channel to -1 , is saying that your NOT going to specify a channel . Since he want more then one hud message at a time , specify differant channels.

P34nut 12-25-2006 15:11

Re: HUD Messages
 
Quote:

Originally Posted by The Specialist (Post 419714)
Except setting channel to -1 , is saying that your NOT going to specify a channel . Since he want more then one hud message at a time , specify differant channels.

thats why -1 is there
http://www.amxmodx.org/funcwiki.php?go=func&id=28


All times are GMT -4. The time now is 22:23.

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