Forum

> > CS2D > Scripts > Msg pos
Forums overviewCS2D overview Scripts overviewLog in to reply

English Msg pos

8 replies
To the start Previous 1 Next To the start

old Msg pos

J4x
User Off Offline

Quote
Its possible to change msg position like with hudtext?
edited 1×, last 02.03.11 12:25:32 am

old Re: Msg pos

KimKat
GAME BANNED Off Offline

Quote
Yea the coordinates should be set manually by numbers or variables containing numbers.

Don't have the info.txt on this PC, but as far as I can remember it was something like this:
1
2
3
x = 220
y = 25
hudtxt2(id, 1 0 "Your hudtxt" "..x.." "..y..")
or
1
hudtxt2(id, 1 0 "Your hudtxt" 220 25)
Hope it helps a little bit.
edited 1×, last 01.03.11 09:50:23 pm

old Re: Msg pos

EngiN33R
Moderator Off Offline

Quote
@KimKat

Quote
hcnage message position like with hudtext

Quote
like with hudtext

Quote
like



Nope Linkin Park, it's impossible to change message positions, only chat area/center.

old Re: Msg pos

Hador
User Off Offline

Quote
it IS possible

->
cmd.lst has written
hudtxt:id:text:x:y:align


that means that you will write the text on position "X""Y" on the screen.

1
hudtxt id text x y

for example:

1
rcon hudtxt 1 hello 15 15

now the text "hello" will appear on the screen at position 15 15 (in pixels)




ONLY FOR hudtxt, NOT FOR MESSAGE!
edited 2×, last 01.03.11 09:55:40 pm

old Re: Msg pos

KimKat
GAME BANNED Off Offline

Quote
Sorry, my bad... the messages can only be centered(by doing: "Your text@C" within your messages.) and displayed in the chat area, just like EngiN33R mentioned.

@ = at
C = center
edited 1×, last 01.03.11 09:55:44 pm

old Re: Msg pos

Hador
User Off Offline

Quote
ah, now I understand him too...

sry, better read properly next time

old Re: Msg pos

Yasday
User Off Offline

Quote
You could try to put the whole chat into hudtxts and return 1 on say, so the messages won't appear.

old Re: Msg pos

EngiN33R
Moderator Off Offline

Quote
In order to imitate chat as closely as possible you will also have to move the previous hudtxt up like in the real chat, and many other things that are a pain in the head.

old Re: Msg pos

J4x
User Off Offline

Quote
Thanks for your answers guys. That is what i was looking for, I want to center the msg.
edited 1×, last 02.03.11 12:27:26 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview