Re: Lua Scripts/Questions/Help
Deleted UserOMG ****
when zombies or survivors win team swaped!
automaticly!
I need when round start all bots press "M" And "1"!
Scripts
Lua Scripts/Questions/Help
Re: Lua Scripts/Questions/Help_rteam = {[1] = "ct", [2] = "t", [0] = "spec"}
function swapsides()
for p = 1, 32, 1 do
if player(p, "exists") then
msg("Server Teams have being swapped")
parse(string.format("make%s %s", _rteam[player(p, "team")], p))
end
end
end
addhook("endround","change_tea")
function change_tea()
	swapsides()
end
addhook("startround","startround")
function startround()
for i = 1, 32 do
if player(i,"exists") then
if player(i,"bot") then
parse("maket "..i)
end
end
end
addhook("startround","startround")
function startround()
	for i = 1, 32 do
		if player(i,"exists") then
			if player(i,"bot") then
				parse("maket "..i)
			end
		end
	end
and the function musn't have the same name as the hookaddhook("startround","startrounder")
function startrounder()
	for i = 1, 32 do
		if player(i,"exists") then
			if player(i,"bot") then
				parse("maket "..i)
			end
		end
	end
end
Re: Lua Scripts/Questions/Helpaddhook("say","tele")
function tele(id,txt)
if txt == "!maniac" then
parse("sv_msg2 "..id.." I like Pie...")
parse("setpos "..id.." 4 5")
end
end
addhook("say","tele")
function tele(id,txt)
if txt == "!maniac" then
parse("sv_msg2 "..id.." I like Pie...")
parse("setpos "..id.." 4 5")
end
end

Apple addhook("startround","starting")
function starting(mode)
parse("trigger entity")
end

addhook("projectile","where")
function where(id,weapon,x,y)
	msg2(id,"©000255000Your Throw Grenade on X:"..x.." Y:"..y.." position!@C")
end
addhook("projectile","where")
function where(id,weapon,x,y)
	msg2(id,"©000255000Your Throw Grenade on X:"..x.." Y:"..y.." position!@C")
end

addhook("projectile","where")
function where(id,weapon,x,y)
	if (weapon==47) then
		msg2(id,"©000255000Your Rocket Explode on X:"..x.." Y:"..y.." position!@C")
	end
	if (weapon==48) then
		msg2(id,"©000255000Your Rocket Explode on X:"..x.." Y:"..y.." position!@C")
	end
end
addhook("startround","starting")
	function starting(mode)
		parse("trigger ENTITY_NAME")
end
addhook("hit","lol")
function lol()
if player(0,"health"==1) then
parse=player(0,"speedmod"==0)
end
end
addhook("hit","lol")
function lol(id)
if player(id,"health")==1 then
parse("speedmod "..id.." 0")
end
end
addhook("startround","starting")
function starting(mode)
parse("trigger ENTITY_NAME")
end