idk how to explain ummm.. if there is 3 Table it deals 3 times DMG. like this.. this is not my problem but its like this i tried to explain more in script with "--" 's thanks
Script:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("attack","_attack")
function _attack(id)
local dmg = 0
	for _,r in ipairs(robot) do
		if r.owner==id and r.mod==1 then
			dmg = r.dmg
			msg("ROBOOTT") --MSG X Times How many robot table in
		end
	end
	if pmod[id]==1 then
	--for _,id2 in pairs(player(0,"tableliving")) (if i do this it will dmg X how many player in game)
	--DMG scriptt hp-dmg bla bla..
end	
end
i cant speak english that good
but i think i explained myself thankkss 
ok i edited
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
addhook("attack","_attack")
function _attack(id)
local dmg = 0
	for _,r in ipairs(robot) do
		if r.owner==id and r.mod==1 then
			dmg = r.dmg
			msg("ROBOOTT") --MSG X Times How many robot table in
		end
	end
	if pmod[id]==1 then
	for _,id2 in pairs(player(0,"tableliving")) do
	parse("sethealth "..id2.." "..dmg.."") --if 3 players online it deals 60DMG Robot dmg is 20
	end
end
end	
end
if 3 player online it deals 3xRobot Dmg == 60 my robot dmg is 20
edited 2×, last 12.04.16 01:22:58 pm
Having trouble with FOR
1 
Offline

