AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [How to]Hudmessage channel help (https://forums.alliedmods.net/showthread.php?t=83742)

AoD90 01-14-2009 13:17

[How to]Hudmessage channel help
 
Hey all,

I'm sorry if there is topic like this but I couldn't find anythig that would help...

How to handle this:

Code:

    set_hudmessage(127, 255, 42, 0.00, -1.5, 0, 0.0, 1.1, 0.0, 0.0, -1)
    show_hudmessage(0,"Spremni igraci %s tima:",glavniCT)
    set_hudmessage(127, 255, 42, 0.00, -1.0, 0, 0.0, 1.1, 0.0, 0.0, -1)
    show_hudmessage(0,"Spremni igraci %s tima:",glavniT)
    set_hudmessage(127, 255, 42, 0.70, -1.5, 0, 0.0, 1.1, 0.0, 0.0, -1)
    show_hudmessage(0,"Igraci koji nisu spremni su:")
    set_hudmessage(127, 255, 42, 0.00, -0.9, 0, 0.0, 1.1, 0.0, 0.0, -1)
    show_hudmessage(0, MsgTextCT)
    set_hudmessage(127, 255, 42, 0.00, -0.5, 0, 0.0, 1.1, 0.0, 0.0, -1)
    show_hudmessage(0, MsgTextT)
    set_hudmessage(127, 255, 42, 0.70, -1.5, 0, 0.0, 1.1, 0.0, 0.0, -1)
    show_hudmessage(0, MsgText)

I wanna show all 6 hudmessages at the same time and I don't wanna any hudmessage overwrites some hudmessage.

Any ideas?

BOYSplayCS 01-14-2009 14:18

Re: [How to]Hudmessage channel help
 
Change the coordinates of the code.

example:
127, 255, 42, 0.70, -1.5, 0, 0.0, 1.1, 0.0, 0.0, -1
Change that to:
130, 255, 42, 0.70, -1.5, 0, 0.0, 1.1, 0.0, 0.0, -1

Something like that.

ConnorMcLeod 01-14-2009 14:29

Re: [How to]Hudmessage channel help
 
You can't show more than 4 messages, but you can use ^n in a message ;)

BOYSplayCS 01-14-2009 14:31

Re: [How to]Hudmessage channel help
 
When did the message limit come in? ^_^

xbatista 01-14-2009 14:41

Re: [How to]Hudmessage channel help
 
Maybe?
PHP Code:


public showsomething()
{
hud1()
hud2()
hud3()
hud4()
hud5()
}
public 
hud1()
{
       
set_hudmessage(2552000.030.0220.0112.00.020.011
       
show_hudmessage(0"xxx1:")
}
public 
hud2()
{
       
set_hudmessage(2552000.030.1220.0112.00.020.012
       
show_hudmessage(0"xxx2:")
}
public 
hud3()
{
       
set_hudmessage(2552000.080.2220.0112.00.020.013
       
show_hudmessage(0"xxx3:")
}
public 
hud4()
{
       
set_hudmessage(255200, -0.030.2220.0112.00.020.014
       
show_hudmessage(0"xxx4:")
}
public 
hud5()
{
       
set_hudmessage(2552000.03, -0.2220.0112.00.020.015
       
show_hudmessage(0"xxx5:")


:mrgreen: :mrgreen: :mrgreen:

BOYSplayCS 01-14-2009 14:43

Re: [How to]Hudmessage channel help
 
Quote:

Originally Posted by ConnorMcLeod (Post 744131)
You can't show more than 4 messages, but you can use ^n in a message ;)


xbatista 01-14-2009 14:44

Re: [How to]Hudmessage channel help
 
Very bad :) :(

EDIT: Wtf I've tested, it shows me 5 messages like I posted.

SnoW 01-14-2009 15:02

Re: [How to]Hudmessage channel help
 
Yes, printing to other channel works, but it'll take much channels, so other plugins can't show hud messages.
Quote:

Originally Posted by ConnorMcLeod (Post 744131)
You can't show more than 4 messages, but you can use ^n in a message ;)

It will change line(If u didn't know), so it just works for printing to the same place, but line lower ofc.


All times are GMT -4. The time now is 01:43.

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