1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("second","sec") function sec() timeit=timeit+1 	if timeit>=90 then timeit=0 		for p = 1,32 do 			parse("equip "..p.." 65") 		end 	end end
addhook("second","sec") function sec() timeit=timeit+1 	if timeit>=90 then timeit=0 		for p = 1,32 do 			parse("equip "..p.." 65") 		end 	end end
timeit=0 addhook("second","sec") function sec() timeit=timeit+1 	if timeit>=90 then 	timeit=0 		for p = 1,32 do 			if player(p,"exists") then 				parse("sethealth "..p.." "..player(p,"health")+20) 			end 		end 	end end
for _,p in pairs(player(0,"table")) do
timeit=0 --define the variable first addhook("second","sec") function sec() timeit=timeit+1 if timeit>=9 then --change the time 		timeit=0 		msg("Bandage timer tick@C") for p = 1,32 do 			if player(p,"exists") then 				if player(p, "maxhealth") ~= player(p, "health") then --to prevent annoying noises every X seconds 					msg(player(p,"name").." got a bandage!") 					parse("equip "..p.." 65") 				else 					msg(player(p,"name").." has enough HP!") 				end 			end end end end
hudtxtchange = 0 -- Don't place in the second hook, this is to define hudtxtchange to 0 so we can add, multiply, devide by etc. You can also set this value to something else so when the server starts the hudtxt will start at green for example instead of red. -- Second hook begins; hudtxtchange = hudtxtchange + 1 if hudtxtchange == 1 then 	parse("hudtxtcolorfade 0 1 1000 255 0 0") elseif hudtxtchange == 2 then 	parse("hudtxtcolorfade 0 1 1000 0 255 0") elseif hudtxt change == 3 then 	parse("hudtxtcolorfade 0 1 1000 0 0 255") 	hudtxtchange = 0 end -- Second hook ends