Forum

> > CS2D > Scripts > X;Y bbuton
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch X;Y bbuton

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt X;Y bbuton

Bobakrome
User Off Offline

Zitieren
1
elseif buton==2 then
then show on the screen your X:Y tile like this
RGB:000255255:Tile : X[..x..] ; Y[..y..]@C

alt Re: X;Y bbuton

Kel9290
User Off Offline

Zitieren
1
2
3
4
5
6
addhook("serveraction","batman")
function batman(i,a)
	if a == 2 then
		msg2(i,"Tile X: "..player(i,"tilex")..", Y: "..player(i,"tiley")
	end
end

alt Re: X;Y bbuton

EP
User Off Offline

Zitieren
1
msg2(id,"©000255255Tile X: "..player(id,"tilex").." : Tile Y "..player(id,"tiley").."@C")

alt Re: X;Y bbuton

Infinite Rain
Reviewer Off Offline

Zitieren
1
msg2(id, 'x = '.. player(id, 'x') ..', y = '.. player(id, 'y') ..'@C')

alt Re: X;Y bbuton

Bobakrome
User Off Offline

Zitieren
i dont want hook i want just if press buton==2 from a menu then show that

EDIT cuz of fast post of factis and filbum

user EP Exactly what i wanted ty!

alt Re: X;Y bbuton

MikuAuahDark
User Off Offline

Zitieren
ok
untested >

just choice you want, you want floating value(e.x.: 1.1111111111) of tile or else.
if you want floating value of tile just delete
1
2
3
4
5
addhook("movetile","aaa")
function aaa(id,x,y)
	pos[id].tilex=x
	pos[id].tiley=y
end
else, don't delete it
have fun
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht