Forum

> > CS2D > Scripts > Clientdata for the new CS2D
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Clientdata for the new CS2D

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Clientdata for the new CS2D

Mami Tomoe
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
addhook("clientdata","RP.clientData")
function RP.clientData(id,mode,x,y)
	if mode == 2 then
		if action_f4[id]==true then
			parse("setpos "..id.." "..x.." "..y)
			action_f4[id]=false
			return
		end
		if player(id,"weapontype") == 69 then
			parse("explosion "..x.." "..y.." 32 10000000 "..id)
		end
	end
end
Can someone tell my why this script does not work on the new CS2D version? I get wrong X and Y depending on the resolution.

alt Re: Clientdata for the new CS2D

Mami Tomoe
User Off Offline

Zitieren
The first half will teleport me when I click F4, the second half will create an explosion where I hit with a machete.

Both use X and Y from my mouse's X and Y, they will do it in a wrong X and Y if I use the non default resolution...
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht