And I want a script who allows to choose to build a turret, a double turrets or triple turrets in a menu !
Please help, i need these scripts !
Thanks you !
Scripts
Lua Scripts/Questions/Helpaddhook("hit","ham_hit")
function ham_hit(weapon, id, source)
	if(weapon>86) then
		parse("sethealth "..source.." "..player(source,"health")+math.random(10,20))
		msg2(source,"You have eaten a hamburger!")
	end
end
addhook("hit","healammo")
function healammo(victim,source,weapon)
if player(victim,"team") == player(source,"team") then
if weapon == 75 then
parse("spawnitem 65 "..player(source,"tilex").." "..player(source,"tiley"))
return 1
elseif weapon == 86 then
parse("spawnitem 61 "..player(source,"tilex").." "..player(source,"tiley"))
parse("spawnitem 62 "..player(source,"tilex").." "..player(source,"tiley"))
return 1
end
end
end
addhook("startround","randomstart")
function randomstart()
for id = 1,32 do
if (player(id,"exists")) then
local randomuser = math.random(0, 2)
if randomuser==1 then
randomact(id)
elseif randomuser==2 then
-- dont put anything here
end
end
end
end
function randomact(id)
menu(id,"Title Menu,Button 1,Button 2,Button 3")
end
addhook("menu","randommenu")
function randommenu(id,title,button)
if title=="Title Menu" then
if button==1 then
-- whatever 1
elseif button==2 then
-- whatever 2
elseif button==3 then
-- whatever 3
end
end
end

addhook("projectile","snow_ammo")
function snow_ammo(id,weapon,x,y)
	if weapon==75 then
		parse("equip "..id.." 75")
		x=math.floor(x/32)
		y=math.floor(y/32)
		local rdmammo = math.random(61, 62)
		parse("spawnitem "..rdmammo.." "..x.." "..y)
	elseif weapon==86 then
		parse("equip "..id.." 86")
	end
end
parse("equip "..id.." " 32")
parse("setweapon "..id.." 32")
addhook("projectile","snow_ammo")
function snow_ammo(id,weapon,x,y)
if weapon==75 then
parse("equip "..id.." 75")
x=math.floor(x/32)
y=math.floor(y/32)
local rdmammo = math.random(61, 62)
parse("spawnitem "..rdmammo.." "..x.." "..y)
elseif weapon==86 then
parse("equip "..id.." 86")
end
end