Raised This Month: $ Target: $400
 0% 

HUD Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 12-23-2006 , 17:04   HUD Messages
Reply With Quote #1

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.)
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
The Specialist
BANNED
Join Date: Nov 2006
Old 12-23-2006 , 19:15   Re: HUD Messages
Reply With Quote #2

you can change the positions of the hud messages so that they wont overlap , also make sure you use diferant channels.
The Specialist is offline
Send a message via AIM to The Specialist
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 12-24-2006 , 06:21   Re: HUD Messages
Reply With Quote #3

Channels?
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
The Specialist
BANNED
Join Date: Nov 2006
Old 12-24-2006 , 06:25   Re: HUD Messages
Reply With Quote #4

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 .

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
The Specialist is offline
Send a message via AIM to The Specialist
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 12-24-2006 , 11:16   Re: HUD Messages
Reply With Quote #5

Thanks
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
The Specialist
BANNED
Join Date: Nov 2006
Old 12-24-2006 , 11:23   Re: HUD Messages
Reply With Quote #6

np
The Specialist is offline
Send a message via AIM to The Specialist
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 12-25-2006 , 07:36   Re: HUD Messages
Reply With Quote #7

you can set .channel = -1

also read this one:

http://wiki.amxmodx.org/index.php/AM..._Text_Channels
Simon Logic is offline
Send a message via Skype™ to Simon Logic
The Specialist
BANNED
Join Date: Nov 2006
Old 12-25-2006 , 15:01   Re: HUD Messages
Reply With Quote #8

Quote:
Originally Posted by Simon Logic View Post
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.
The Specialist is offline
Send a message via AIM to The Specialist
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 12-25-2006 , 15:11   Re: HUD Messages
Reply With Quote #9

Quote:
Originally Posted by The Specialist View Post
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 you need to change the world is one good lie and a river of blood
P34nut is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-25-2006 , 15:16   Re: HUD Messages
Reply With Quote #10

SHHhhhh
The Specialist is offline
Send a message via AIM to The Specialist
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 22:23.


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