What lua is that when you hit a zombie T you're money goes up +5 ?
Acctually I can't find a lua like that
Please help...
Scripts
Need help with lua
Need help with lua
1

addhook("hit", "hithook")
function hithook(id, src)
	if ( player(src, "team") == 2 and player(id,"team") == 1 and game("sv_gamemode") == 3 ) then
		parse("setmoney "..src.." "..player(src,"money")+5)
	end
end
addhook("hit", "hithook")
function hithook(id, src)
if ( player(src, "team") == 2 and player(id,"team") == 1 and game("sv_gamemode") == 4 ) then
parse("setmoney "..src.." "..player(src,"money")+5)
end
end
addhook("hit","onHit")
function onHit(id,source,wpn,hpdmg,apdmg)
	local gm = tonumber(game("sv_gamemode"))
	if gm == 4 then
		-- Check game mode
		if player(source,"exists") then
			-- Check if the attacker is a player (Not turret, entity, etc)
			if player(source,"team") == 2 and player(id,"team") == 1 then
				-- Give him the money
				parse("setmoney "..source.." "..player(source,"money")+5)
			end
		end
	end
end
addhook("hit", "hithook")
function hithook(id, src)
	if ( player(src, "team") == 2 and player(id,"team") == 1 and tonumber(game("sv_gamemode")) == 4 ) then
	parse("setmoney "..src.." "..player(src,"money")+5)
	end
end
1
