Raised This Month: $ Target: $400
 0% 

hud message


Post New Thread Reply   
 
Thread Tools Display Modes
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 11-27-2009 , 06:14   Re: hud message
Reply With Quote #11

use my code and remove the effects
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 11-27-2009 , 07:13   Re: hud message
Reply With Quote #12

Quote:
Originally Posted by worldspawn View Post
It doesn't work how i want..
every two seconds new message appears over old and it looks ugly
Try using LOOP_DELAY + 0.1 and set fade in and out to 0.1 or 0.05
__________________
Hunter-Digital is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 11-27-2009 , 07:25   Re: hud message
Reply With Quote #13

Quote:
Originally Posted by Hunter-Digital View Post
Try using LOOP_DELAY + 0.1 and set fade in and out to 0.1 or 0.05

your code is fine.. look at this.. he need the default hud style as 0.

Code:
effects types: 
0 = fade in/fade out 
1 = flickery credits 
2 = write out (training room)

so, he need something like this set_hudmessage(210, 105, 30, 0.01, 0.78, 0, 6.0, 5.0 )
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 11-27-2009 , 07:30   Re: hud message
Reply With Quote #14

i think he has more hudmessages & any of hudmessages willbe replaced by other messages.

try for first to check it by deactivating the imessage & scrollmsg in plugins.ini.

after this test the hudmessages...
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 11-27-2009 , 07:32   Re: hud message
Reply With Quote #15

Both codes are fine, they don't have effects... the message is just overlaying on the old one.

Quote:
Originally Posted by Hunter-Digital View Post
set_hudmessage(210, 105, 30, 0.01, 0.78, 0, 0.0, (LOOP_DELAY + 1.0), 0.5, 0.5) /* channel is ignored for sync hud msgs */
ShowSyncHudMsg(0, g_iSync, "Message")
Quote:
Originally Posted by worldspawn View Post
set_hudmessage(210, 105, 30,0.01,0.78,0, _, 2.0, 0.1, 0.1, 4 )
show_hudmessage(id,"blhablah")
wich _ is default value, meaning 0

It requires alot of precision to make a non-full color message looped and have the same color... it's no problem with full white, red, green, blue, yellow, purple, etc (messages that use minimum or maximum values, 0 or 255)

Quote:
Originally Posted by One View Post
i think he has more hudmessages & any of hudmessages willbe replaced by other messages.
that's not either... it's sync hud msg not a normal one, see what it says about it in the functions list

-----------------------------------------

Later edit:
All I could come up was a small pulsing text, test it out to see the effect:
PHP Code:
#include <amxmodx>
 
#define LOOP_DELAY 1.0
 
new g_iSync
 
public plugin_init()
{
      
g_iSync CreateHudSyncObj()
      
set_task(LOOP_DELAY"loop"___"b")
}
 
public 
loop()
{
      
set_hudmessage(210105300.010.7800.0LOOP_DELAY 0.10.250.25/* channel is ignored for sync hud msgs */
      
ShowSyncHudMsg(0g_iSync"Test message")

You can also adjust the pulse speed... change the duration and fade in/out to higher values for wider pulse and lower values for quicker pulse
__________________

Last edited by Hunter-Digital; 11-27-2009 at 07:46. Reason: added pulsing hud msg code
Hunter-Digital is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 11-27-2009 , 10:20   Re: hud message
Reply With Quote #16

There's no need to loop anything. You just set the time as long as you want, in case of "unlimited" probably pretty long.
SnoW is offline
Send a message via MSN to SnoW
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 11-27-2009 , 18:43   Re: hud message
Reply With Quote #17

I have a question:

What code (if you can please show an example) would you use to show a client_print when they connect to the server and join a team?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 11-27-2009 , 19:07   Re: hud message
Reply With Quote #18

public client_connect(id)
client_print(id,print_chat,"You joined this fucking server")

??
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 11-28-2009 , 15:45   Re: hud message
Reply With Quote #19

thx to all of you
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 11-28-2009 , 16:00   Re: hud message
Reply With Quote #20

Quote:
Originally Posted by One View Post
public client_connect(id)
client_print(id,print_chat,"You joined this fucking server")

??
It would be better to use client_putinserver. There are better ways still, though.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
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 19:52.


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