Forum

> > CS2D > Scripts > Msg pos
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Msg pos

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Msg pos

J4x
User Off Offline

Zitieren
Its possible to change msg position like with hudtext?
1× editiert, zuletzt 02.03.11 00:25:32

alt Re: Msg pos

KimKat
GAME BANNED Off Offline

Zitieren
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.
1× editiert, zuletzt 01.03.11 21:50:23

alt Re: Msg pos

EngiN33R
Moderator Off Offline

Zitieren
@KimKat

Zitat
hcnage message position like with hudtext

Zitat
like with hudtext

Zitat
like



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

alt Re: Msg pos

Hador
User Off Offline

Zitieren
it IS possible

->
cmd.lst hat geschrieben
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!
2× editiert, zuletzt 01.03.11 21:55:40

alt Re: Msg pos

KimKat
GAME BANNED Off Offline

Zitieren
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
1× editiert, zuletzt 01.03.11 21:55:44

alt Re: Msg pos

Hador
User Off Offline

Zitieren
ah, now I understand him too...

sry, better read properly next time

alt Re: Msg pos

Yasday
User Off Offline

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

alt Re: Msg pos

EngiN33R
Moderator Off Offline

Zitieren
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.

alt Re: Msg pos

J4x
User Off Offline

Zitieren
Thanks for your answers guys. That is what i was looking for, I want to center the msg.
1× editiert, zuletzt 02.03.11 00:27:26
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht