1
return 1
Scripts
Lua Scripts/Questions/Helpreturn 1
addhook("hit","laser_heal")
function laser_heal(id,source,wpn,hpdmg,apdmg)
	if wpn == 45 then
		parse("sethealth "..id.." "..player(id,"health")+30)
		return 1
	end
end
tbl = {value = 23, tbl2 = {45,44}}
--or
tbl = {{value = 1},{value = 2}}
tbl = {value = 23, tbl2 = {45,44}}
--or
tbl = {{value = 1},{value = 2}}
function explosion(x, y, size, damage)
parse("explosion "..x.." "..y.." "..size.." "..damage)
end
addhook("projectile","my_projectile")
function my_projectile(id,weapon,x,y)
	if(weapon == 32) then --snowball
		explosion(x,y,300, 300) -- size + damage = 300
	end
end
addhook("hit","my_hit")
function my_hit(id,source,weapon,hpdmg,apdmg)
	if(weapon == 32) then --M4a1
		explosion(x,y,50, 45) -- size + damage = 30
	end
end
addhook("hit","my_hit")
function my_hit(id,source,weapon,hpdmg,apdmg)
	if(weapon == 32) then --M4a1
		local x = player(id,"x")
		local y = player(id,"y")
		explosion(x,y,50, 45) -- size + damage = 30
	end
end
function explosion(x, y, size, damage)
parse("explosion "..x.." "..y.." "..size.." "..damage)
end
function explosion(x, y, size, damage)
parse("explosion "..x.." "..y.." "..size.." "..damage)
end
please write a message to me and i will give you e-mail
thank you.
addhook("hit","my_hit")
function my_hit(id,source,weapon,hpdmg,apdmg)
	if(weapon == 35) then
		local x = player(id,"x")
		local y = player(id,"y")
		parse("explosion "..x.." "..y.." 25 5000 "..source)
		return 1
	end
end