Forum

> > CS2D > Scripts > 0Dmg Zone
Forums overviewCS2D overview Scripts overviewLog in to reply

English 0Dmg Zone

1 reply
To the start Previous 1 Next To the start

old 0Dmg Zone

NeverLast
User Off Offline

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

old Re: 0Dmg Zone

Alistaire
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview