LUA Question - Ct/T win
Deleted Userhow to make
If terrorists win this round then something happens?
I try everything but nothing... Could someone help me please?
Scripts
LUA Question - Ct/T win
LUA Question - Ct/T win
LUA Question - Ct/T win
Re: LUA Question - Ct/T win
Re: LUA Question - Ct/T win
if player(id,"team")
Bowlinghead has writtenif player(id,"team")
game("winrow_ct")
game("winrow_t")
Re: LUA Question - Ct/T wingame("score_ct")
J4x has writtengame("score_ct")
addhook("startround","ifwon")
function ifwon()
if (game("winrow_t")>wt) then
--do stooffz
end
if (game("winrow_ct")>wct) then
--do stooffz
end
end
addhook("endround","numberofwins")
function numberofwins()
wt=game("winrow_t")
wct=game("winrow_ct")
end
Re: LUA Question - Ct/T win
EngiN33R has writtenaddhook("startround","ifwon")
function ifwon()
if (game("winrow_t")>wt) then
--do stooffz
end
if (game("winrow_ct")>wct) then
--do stooffz
end
end
addhook("endround","numberofwins")
function numberofwins()
wt=game("winrow_t")
wct=game("winrow_ct")
end
Re: LUA Question - Ct/T win
endround hook.addhook("endround", "f")
function f(m)
	if m == 1 or m%10 == 0 then
		msg("Terrorists Won")
	end
end