Forum

> > CS2D > Scripts > 0Dmg Zone
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch 0Dmg Zone

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt 0Dmg Zone

NeverLast
User Off Offline

Zitieren
Hello,
I need a lua, coordinates and enters where there is there 0DMG

alt Re: 0Dmg Zone

Alistaire
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
nodmgzones = {
	[1] = {
		[1] = {tilex, tiley},
		[2] = {tilex, tiley}
	},
	[2] = {
		[1] = {tilex, tiley},
		[2] = {tilex, tiley}
	}
}

addhook('hit', 'AA_hit')

function AA_hit(id, source)
	local a = false
	for i = 1, #nodmgzones do
		if (player(id, 'tilex') >= nodmgzones[i][1][1] and player(id, 'tiley') >= nodmgzones[i][1][2] and player(id, 'tilex') <= nodmgzones[i][2][1] and player(id, 'tiley') <= nodmgzones[i][2][2]) or (player(source, 'tilex') >= nodmgzones[i][1][1] and player(source, 'tiley') >= nodmgzones[i][1][2] and player(source, 'tilex') <= nodmgzones[i][2][1] and player(source, 'tiley') <= nodmgzones[i][2][2]) then
			a = true
			break
		end
	end
	if a == true then
		return 1
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht