M0Trigger11 = { CPos.New(22,18) }
M0Trigger12 = { CPos.New(22,23) }
M0Trigger13 = { CPos.New(26,18) }
M0Trigger14 = { CPos.New(26,23) }
M1Trigger11 = { CPos.New(22,33) }
M1Trigger12 = { CPos.New(22,38) }
M1Trigger13 = { CPos.New(26,33) }
M1Trigger14 = { CPos.New(26,38) }
M2Trigger11 = { CPos.New(34,18) }
M2Trigger12 = { CPos.New(34,23) }
M2Trigger13 = { CPos.New(30,18) }
M2Trigger14 = { CPos.New(30,23) }
M3Trigger11 = { CPos.New(34,33) }
M3Trigger12 = { CPos.New(34,38) }
M3Trigger13 = { CPos.New(30,33) }
M3Trigger14 = { CPos.New(30,38) }

M0e7Counter = 0
M0Maxe7 = 1
M0heliCounter = 0
M0Maxheli = 3
M0ctnkCounter = 0
M0Maxctnk = 3
M0pdoxCounter = 0
M0Maxpdox = 1

M1e7Counter = 0
M1Maxe7 = 1
M1heliCounter = 0
M1Maxheli = 3
M1ctnkCounter = 0
M1Maxctnk = 3
M1pdoxCounter = 0
M1Maxpdox = 1

M2e7Counter = 0
M2Maxe7 = 1
M2heliCounter = 0
M2Maxheli = 3
M2ctnkCounter = 0
M2Maxctnk = 3
M2pdoxCounter = 0
M2Maxpdox = 1

M3e7Counter = 0
M3Maxe7 = 1
M3heliCounter = 0
M3Maxheli = 3
M3ctnkCounter = 0
M3Maxctnk = 3
M3pdoxCounter = 0
M3Maxpdox = 1

M0spyCounter = 0
M0Maxspy = 2
M1spyCounter = 0
M1Maxspy = 2
M2spyCounter = 0
M2Maxspy = 2
M3spyCounter = 0
M3Maxspy = 2

M0e7Counter = 0
M0Maxe7 = 1
M0heliCounter = 0
M0Maxheli = 3
M0mggCounter = 0
M0Maxmgg = 2
M0msloCounter = 0
M0Maxmslo = 1

M1e7Counter = 0
M1Maxe7 = 1
M1heliCounter = 0
M1Maxheli = 3
M1mggCounter = 0
M1Maxmgg = 2
M1msloCounter = 0
M1Maxmslo = 1

M2e7Counter = 0
M2Maxe7 = 1
M2heliCounter = 0
M2Maxheli = 3
M2mggCounter = 0
M2Maxmgg = 2
M2msloCounter = 0
M2Maxmslo = 1

M3e7Counter = 0
M3Maxe7 = 1
M3heliCounter = 0
M3Maxheli = 3
M3mggCounter = 0
M3Maxmgg = 2
M3msloCounter = 0
M3Maxmslo = 1



M04tnkCounter = 0
M0Max4tnk = 5
M0migCounter = 0
M0Maxmig = 3
M0dtrkCounter = 0
M0Maxdtrk = 1
M0qtnkCounter = 0
M0Maxqtnk = 1

M14tnkCounter = 0
M1Max4tnk = 5
M1migCounter = 0
M1Maxmig = 3
M1dtrkCounter = 0
M1Maxdtrk = 1
M1qtnkCounter = 0
M1Maxqtnk = 1

M24tnkCounter = 0
M2Max4tnk = 5
M2migCounter = 0
M2Maxmig = 3
M2dtrkCounter = 0
M2Maxdtrk = 1
M2qtnkCounter = 0
M2Maxqtnk = 1

M34tnkCounter = 0
M3Max4tnk = 5
M3migCounter = 0
M3Maxmig = 3
M3dtrkCounter = 0
M3Maxdtrk = 1
M3qtnkCounter = 0
M3Maxqtnk = 1

M0ttnkCounter = 0
M0Maxttnk = 5
M0shokCounter = 0
M0Maxshok = 5

M1ttnkCounter = 0
M1Maxttnk = 5
M1shokCounter = 0
M1Maxshok = 5

M2ttnkCounter = 0
M2Maxttnk = 5
M2shokCounter = 0
M2Maxshok = 5

M3ttnkCounter = 0
M3Maxttnk = 5
M3shokCounter = 0
M3Maxshok = 5

-- GERMANY

CreateM0German = function()
	newactor = Actor.Create("e7pic", true, { Location = CPos.New(22,16), Owner = Multi0 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(22,15), Owner = Multi0 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,17), Owner = Multi0 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(22,28), Owner = Multi0 })
	newactor = Actor.Create("ctnkpic", true, { Location = CPos.New(26,16), Owner = Multi0 })
	newactor = Actor.Create("ctnktrigger", true, { Location = CPos.New(26,15), Owner = Multi0 })
	newactor = Actor.Create("warppic", true, { Location = CPos.New(26,25), Owner = Multi0 })
	Trigger.OnEnteredFootprint(M0Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0e7Counter = M0e7Counter +1
			if M0Maxe7 == M0e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0heliCounter = M0heliCounter +1
			if M0Maxheli == M0heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Choseheli()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0ctnkCounter = M0ctnkCounter +1
			if M0Maxctnk == M0ctnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosectnk()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0pdoxCounter = M0pdoxCounter +1
			if M0Maxpdox == M0pdoxCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosepdox()
		end
	end)
end

CreateM1German = function()
	newactor = Actor.Create("e7pic", true, { Location = CPos.New(22,31), Owner = Multi1 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(22,30), Owner = Multi1 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,32), Owner = Multi1 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(22,43), Owner = Multi1 })
	newactor = Actor.Create("ctnkpic", true, { Location = CPos.New(26,31), Owner = Multi1 })
	newactor = Actor.Create("ctnktrigger", true, { Location = CPos.New(26,30), Owner = Multi1 })
	newactor = Actor.Create("warppic", true, { Location = CPos.New(26,40), Owner = Multi1 })
	Trigger.OnEnteredFootprint(M1Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1e7Counter = M1e7Counter +1
			if M1Maxe7 == M1e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1heliCounter = M1heliCounter +1
			if M1Maxheli == M1heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Choseheli()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1ctnkCounter = M1ctnkCounter +1
			if M1Maxctnk == M1ctnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosectnk()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1pdoxCounter = M1pdoxCounter +1
			if M1Maxpdox == M1pdoxCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosepdox()
		end
	end)
end



CreateM2German = function()

	newactor = Actor.Create("e7pic", true, { Location = CPos.New(34,16), Owner = Multi2 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(34,15), Owner = Multi2 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(35,17), Owner = Multi2 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(34,28), Owner = Multi2 })
	newactor = Actor.Create("ctnkpic", true, { Location = CPos.New(30,16), Owner = Multi2 })
	newactor = Actor.Create("ctnktrigger", true, { Location = CPos.New(30,15), Owner = Multi2 })
	newactor = Actor.Create("warppic", true, { Location = CPos.New(30,25), Owner = Multi2 })
	Trigger.OnEnteredFootprint(M2Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2e7Counter = M2e7Counter +1
			if M2Maxe7 == M2e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2heliCounter = M2heliCounter +1
			if M2Maxheli == M2heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Choseheli()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2ctnkCounter = M2ctnkCounter +1
			if M2Maxctnk == M2ctnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosectnk()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2pdoxCounter = M2pdoxCounter +1
			if M2Maxpdox == M2pdoxCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosepdox()
		end
	end)
end

CreateM3German = function()
	newactor = Actor.Create("e7pic", true, { Location = CPos.New(34,31), Owner = Multi3 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(34,30), Owner = Multi3 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(35,32), Owner = Multi2 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(34,43), Owner = Multi3 })
	newactor = Actor.Create("ctnkpic", true, { Location = CPos.New(30,31), Owner = Multi3 })
	newactor = Actor.Create("ctnktrigger", true, { Location = CPos.New(30,30), Owner = Multi3 })
	newactor = Actor.Create("warppic", true, { Location = CPos.New(30,40), Owner = Multi3 })
	Trigger.OnEnteredFootprint(M3Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3e7Counter = M3e7Counter +1
			if M3Maxe7 == M3e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3heliCounter = M3heliCounter +1
			if M3Maxheli == M3heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Choseheli()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3ctnkCounter = M3ctnkCounter +1
			if M3Maxctnk == M3ctnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosectnk()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3pdoxCounter = M3pdoxCounter +1
			if M3Maxpdox == M3pdoxCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosepdox()
		end
	end)
end

-- Multi0 Units

M0Chosee7 = function()
	newactor = Actor.Create("e7", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("tran", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany })
	M0Chosee7 = true
end
M0helicounter = 0
M0Choseheli = function()
	if M0helicounter < 2 then
		newactor = Actor.Create("heli", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany })
		M0helicounter = M0helicounter +1
		M0Choseheli()
	elseif M0helicounter == 2 then
		M0helicounter = 0
	end
	if not M0hpad2 then
		M0hpad2 = true
		newactor = Actor.Create("norehpad", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 })
	end
end
M0ctnkcounter = 0
M0Chosectnk = function()
	if M0ctnkcounter < 4 then
		newactor = Actor.Create("ctnk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()

		M0ctnkcounter = M0ctnkcounter +1
		M0Chosectnk()
	elseif M0ctnkcounter == 4 then
		M0ctnkcounter = 0
	end
end

M0Chosepdox = function()
	newactor = Actor.Create("fastpdox", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 })
end

M1Chosee7 = function()
	newactor = Actor.Create("e7", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("tran", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England })
	M1Chosee7 = true
end

M1helicounter = 0
M1Choseheli = function()
	if M1helicounter < 4 then
		newactor = Actor.Create("heli", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England })
		M1helicounter = M1helicounter +1
		M1Choseheli()
	elseif M1helicounter == 4 then
		M1helicounter = 0
	end
	if not M1hpad2 then
		M1hpad2 = true
		newactor = Actor.Create("norehpad", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 })
	end
end

M1ctnkcounter = 0
M1Chosectnk = function()
	if M1ctnkcounter < 4 then
		newactor = Actor.Create("ctnk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()

		M1ctnkcounter = M1ctnkcounter +1
		M1Chosectnk()
	elseif M1ctnkcounter == 4 then
		M1ctnkcounter = 0
	end
end

M1Chosepdox = function()
	newactor = Actor.Create("fastpdox", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 })
end

M2Chosee7 = function()
	newactor = Actor.Create("e7", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("tran", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia })
	M2Chosee7 = true
end

M2helicounter = 0
M2Choseheli = function()
	if M2helicounter < 2 then
		newactor = Actor.Create("heli", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia })
		M2helicounter = M2helicounter +1
		M2Choseheli()
	elseif M2helicounter == 2 then
		M2helicounter = 0
	end
	if not M2hpad2 then
		M2hpad2 = true
		newactor = Actor.Create("norehpad", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
	end
end
M2ctnkcounter = 0
M2Chosectnk = function()
	if M2ctnkcounter < 4 then
		newactor = Actor.Create("ctnk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()

		M2ctnkcounter = M2ctnkcounter +1
		M2Chosectnk()
	elseif M2ctnkcounter == 4 then
		M2ctnkcounter = 0
	end
end
M2Chosepdox = function()
	newactor = Actor.Create("fastpdox", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
end
M3Chosee7 = function()
	newactor = Actor.Create("e7", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("tran", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine })
	M3Chosee7 = true
end
M3helicounter = 0
M3Choseheli = function()
	if M3helicounter < 2 then
		newactor = Actor.Create("heli", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine })
		M3helicounter = M3helicounter +1
		M3Choseheli()
	elseif M3helicounter == 2 then
		M3helicounter = 0
	end
	if not M3hpad2 then
		M3hpad2 = true
		newactor = Actor.Create("norehpad", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 })
	end
end
M3ctnkcounter = 0
M3Chosectnk = function()
	if M3ctnkcounter < 4 then
		newactor = Actor.Create("ctnk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()

		M3ctnkcounter = M3ctnkcounter +1
		M3Chosectnk()
	elseif M3ctnkcounter == 4 then
		M3ctnkcounter = 0
	end
end
M3Chosepdox = function()
	newactor = Actor.Create("fastpdox", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 })
end
--     France
CreateM0France = function()
	newactor = Actor.Create("e7pic", true, { Location = CPos.New(22,16), Owner = Multi0 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(22,15), Owner = Multi0 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,17), Owner = Multi0 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(22,28), Owner = Multi0 })
	newactor = Actor.Create("mggpic", true, { Location = CPos.New(26,16), Owner = Multi0 })
	newactor = Actor.Create("gappic", true, { Location = CPos.New(26,16), Owner = Multi0 })
	newactor = Actor.Create("gpspic", true, { Location = CPos.New(26,16), Owner = Multi0 })
	newactor = Actor.Create("gaptrigger", true, { Location = CPos.New(26,15), Owner = Multi0 })
	newactor = Actor.Create("pdoxpic", true, { Location = CPos.New(26,26), Owner = Multi0 })
	newactor = Actor.Create("mslopic", true, { Location = CPos.New(26,25), Owner = Multi0 })
	Trigger.OnEnteredFootprint(M0Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0e7Counter = M0e7Counter +1
			if M0Maxe7 == M0e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0heliCounter = M0heliCounter +1
			if M0Maxheli == M0heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Choseheli()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0mggCounter = M0mggCounter +1
			if M0Maxmgg == M0mggCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosemgg()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0msloCounter = M0msloCounter +1
			if M0Maxmslo == M0msloCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosemslo()
		end
	end)
end
CreateM1France = function()
	newactor = Actor.Create("e7pic", true, { Location = CPos.New(22,31), Owner = Multi1 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(22,30), Owner = Multi1 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,32), Owner = Multi1 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(22,43), Owner = Multi1 })
	newactor = Actor.Create("mggpic", true, { Location = CPos.New(26,31), Owner = Multi1 })
	newactor = Actor.Create("gappic", true, { Location = CPos.New(26,31), Owner = Multi1 })
	newactor = Actor.Create("gpspic", true, { Location = CPos.New(26,31), Owner = Multi1 })
	newactor = Actor.Create("gaptrigger", true, { Location = CPos.New(26,30), Owner = Multi1 })
	newactor = Actor.Create("pdoxpic", true, { Location = CPos.New(26,41), Owner = Multi1 })
	newactor = Actor.Create("mslopic", true, { Location = CPos.New(26,40), Owner = Multi1 })
	Trigger.OnEnteredFootprint(M1Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1e7Counter = M1e7Counter +1
			if M1Maxe7 == M1e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1heliCounter = M1heliCounter +1
			if M1Maxheli == M1heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Choseheli()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1mggCounter = M1mggCounter +1
			if M1Maxmgg == M1mggCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosemgg()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1msloCounter = M1msloCounter +1
			if M1Maxmslo == M1msloCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosemslo()
		end
	end)
end

CreateM2France = function()
	newactor = Actor.Create("e7pic", true, { Location = CPos.New(34,16), Owner = Multi2 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(34,15), Owner = Multi2 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(35,17), Owner = Multi2 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(34,28), Owner = Multi2 })
	newactor = Actor.Create("mggpic", true, { Location = CPos.New(30,16), Owner = Multi2 })
	newactor = Actor.Create("gappic", true, { Location = CPos.New(30,16), Owner = Multi2 })
	newactor = Actor.Create("gpspic", true, { Location = CPos.New(30,16), Owner = Multi2 })
	newactor = Actor.Create("gaptrigger", true, { Location = CPos.New(30,15), Owner = Multi2 })
	newactor = Actor.Create("pdoxpic", true, { Location = CPos.New(30,26), Owner = Multi2 })
	newactor = Actor.Create("mslopic", true, { Location = CPos.New(30,25), Owner = Multi2 })
	Trigger.OnEnteredFootprint(M2Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2e7Counter = M2e7Counter +1
			if M2Maxe7 == M2e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2heliCounter = M2heliCounter +1
			if M2Maxheli == M2heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Choseheli()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2mggCounter = M2mggCounter +1
			if M2Maxmgg == M2mggCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosemgg()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2msloCounter = M2msloCounter +1
			if M2Maxmslo == M2msloCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosemslo()
		end
	end)
end

CreateM3France = function()
	newactor = Actor.Create("e7pic", true, { Location = CPos.New(34,31), Owner = Multi3 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(34,30), Owner = Multi3 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(35,32), Owner = Multi3 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(34,43), Owner = Multi3 })
	newactor = Actor.Create("mggpic", true, { Location = CPos.New(30,31), Owner = Multi3 })
	newactor = Actor.Create("gappic", true, { Location = CPos.New(30,31), Owner = Multi3 })
	newactor = Actor.Create("gpspic", true, { Location = CPos.New(30,31), Owner = Multi3 })
	newactor = Actor.Create("gaptrigger", true, { Location = CPos.New(30,30), Owner = Multi3 })
	newactor = Actor.Create("pdoxpic", true, { Location = CPos.New(30,41), Owner = Multi3 })
	newactor = Actor.Create("mslopic", true, { Location = CPos.New(30,40), Owner = Multi3 })
	Trigger.OnEnteredFootprint(M3Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3e7Counter = M3e7Counter +1
			if M3Maxe7 == M3e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3heliCounter = M3heliCounter +1
			if M3Maxheli == M3heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Choseheli()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3mggCounter = M3mggCounter +1
			if M3Maxmgg == M3mggCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosemgg()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3msloCounter = M3msloCounter +1
			if M3Maxmslo == M3msloCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosemslo()
		end
	end)
end

-- Multi0 France

M0Chosemgg = function()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 }) 
	M0gotgps = true
end

M0Chosemslo = function()
	newmslo = Actor.Create("fastmslo", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 }) 
	newmslo = Actor.Create("fastpdox", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 }) 
end

M1Chosemgg = function()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 }) 
	M1gotgps = true
end

M1mslocounter = 0
M1Chosemslo = function()
	newactor = Actor.Create("fastmslo", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 })
	newactor = Actor.Create("fastpdox", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 })
end

M2Chosemgg = function()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
	M2gotgps = true
end

M2mslocounter = 0
M2Chosemslo = function()
	newactor = Actor.Create("fastmslo", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
	newactor = Actor.Create("fastpdox", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
end

M3Chosemgg = function()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("mgg", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 }) 
	newactor = Actor.Create("gap", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 }) 
	M3gotgps = true
end

M3mslocounter = 0
M3Chosemslo = function()
	newactor = Actor.Create("fastmslo", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 })
	newactor = Actor.Create("fastpdox", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 })
end

--   England


CreateM0England = function()
	newactor = Actor.Create("e7pic", true, { Location = CPos.New(22,16), Owner = Multi0 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(22,15), Owner = Multi0 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,17), Owner = Multi0 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(22,28), Owner = Multi0 })
	newactor = Actor.Create("spypic", true, { Location = CPos.New(26,16), Owner = Multi0 })
	newactor = Actor.Create("stnkpic", true, { Location = CPos.New(26,16), Owner = Multi0 })
	newactor = Actor.Create("stnktrigger", true, { Location = CPos.New(26,15), Owner = Multi0 })
	newactor = Actor.Create("gpspic", true, { Location = CPos.New(26,16), Owner = Multi0 })
	newactor = Actor.Create("pdoxpic", true, { Location = CPos.New(26,26), Owner = Multi0 })
	newactor = Actor.Create("mslopic", true, { Location = CPos.New(26,25), Owner = Multi0 })

	Trigger.OnEnteredFootprint(M0Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0e7Counter = M0e7Counter +1
			if M0Maxe7 == M0e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0heliCounter = M0heliCounter +1
			if M0Maxheli == M0heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Choseheli()
		end
	end)


	Trigger.OnEnteredFootprint(M0Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0spyCounter = M0spyCounter +1
			if M0Maxspy == M0spyCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosespy()
			M0Chosespy()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0msloCounter = M0msloCounter +1
			if M0Maxmslo == M0msloCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosemslo()
		end
	end)
end



CreateM1England = function()

	newactor = Actor.Create("e7pic", true, { Location = CPos.New(22,31), Owner = Multi1 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(22,30), Owner = Multi1 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,32), Owner = Multi1 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(22,43), Owner = Multi1 })
	newactor = Actor.Create("spypic", true, { Location = CPos.New(26,31), Owner = Multi1 })
	newactor = Actor.Create("stnkpic", true, { Location = CPos.New(26,31), Owner = Multi1 })
	newactor = Actor.Create("stnktrigger", true, { Location = CPos.New(26,30), Owner = Multi1 })
	newactor = Actor.Create("gpspic", true, { Location = CPos.New(26,31), Owner = Multi1 })
	newactor = Actor.Create("pdoxpic", true, { Location = CPos.New(26,41), Owner = Multi1 })
	newactor = Actor.Create("mslopic", true, { Location = CPos.New(26,40), Owner = Multi1 })
	Trigger.OnEnteredFootprint(M1Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1e7Counter = M1e7Counter +1
			if M1Maxe7 == M1e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1heliCounter = M1heliCounter +1
			if M1Maxheli == M1heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Choseheli()
		end
	end)


	Trigger.OnEnteredFootprint(M1Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1spyCounter = M1spyCounter +1
			if M1Maxspy == M1spyCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosespy()
			M1Chosespy()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1msloCounter = M1msloCounter +1
			if M1Maxmslo == M1msloCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosemslo()
		end
	end)
end



CreateM2England = function()

	newactor = Actor.Create("e7pic", true, { Location = CPos.New(34,16), Owner = Multi2 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(34,15), Owner = Multi2 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(35,17), Owner = Multi2 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(34,28), Owner = Multi2 })
	newactor = Actor.Create("spypic", true, { Location = CPos.New(30,16), Owner = Multi2 })
	newactor = Actor.Create("stnkpic", true, { Location = CPos.New(30,16), Owner = Multi2 })
	newactor = Actor.Create("stnktrigger", true, { Location = CPos.New(30,15), Owner = Multi2 })
	newactor = Actor.Create("gpspic", true, { Location = CPos.New(30,16), Owner = Multi2 })
	newactor = Actor.Create("pdoxpic", true, { Location = CPos.New(30,26), Owner = Multi2 })
	newactor = Actor.Create("mslopic", true, { Location = CPos.New(30,25), Owner = Multi2 })
	Trigger.OnEnteredFootprint(M2Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2e7Counter = M2e7Counter +1
			if M2Maxe7 == M2e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2heliCounter = M2heliCounter +1
			if M2Maxheli == M2heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Choseheli()
		end
	end)


	Trigger.OnEnteredFootprint(M2Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2spyCounter = M2spyCounter +1
			if M2Maxspy == M2spyCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosespy()
			M2Chosespy()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2msloCounter = M2msloCounter +1
			if M2Maxmslo == M2msloCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,23), Owner = France })

			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosemslo()
		end
	end)
end



CreateM3England = function()

	newactor = Actor.Create("e7pic", true, { Location = CPos.New(34,31), Owner = Multi3 })
	newactor = Actor.Create("e7trigger", true, { Location = CPos.New(34,30), Owner = Multi3 })
	newactor = Actor.Create("tranpic", true, { Location = CPos.New(35,32), Owner = Multi3 })
	newactor = Actor.Create("helipic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("hpadpic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("helitrigger", true, { Location = CPos.New(34,43), Owner = Multi3 })
	newactor = Actor.Create("spypic", true, { Location = CPos.New(30,31), Owner = Multi3 })
	newactor = Actor.Create("stnkpic", true, { Location = CPos.New(30,31), Owner = Multi3 })
	newactor = Actor.Create("stnktrigger", true, { Location = CPos.New(30,30), Owner = Multi3 })
	newactor = Actor.Create("gpspic", true, { Location = CPos.New(30,31), Owner = Multi3 })
	newactor = Actor.Create("pdoxpic", true, { Location = CPos.New(30,41), Owner = Multi3 })
	newactor = Actor.Create("mslopic", true, { Location = CPos.New(30,40), Owner = Multi3 })


	Trigger.OnEnteredFootprint(M3Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3e7Counter = M3e7Counter +1
			if M3Maxe7 == M3e7Counter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosee7()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3heliCounter = M3heliCounter +1
			if M3Maxheli == M3heliCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Choseheli()
		end
	end)


	Trigger.OnEnteredFootprint(M3Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3spyCounter = M3spyCounter +1
			if M3Maxspy == M3spyCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosespy()
			M3Chosespy()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3msloCounter = M3msloCounter +1
			if M3Maxmslo == M3msloCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosemslo()
		end
	end)
end

-- Multi0 England

M0Chosespy = function()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("stnk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("stnk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	M0gotgps = true
end

M1Chosespy = function()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("stnk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("stnk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	M1gotgps = true
end

M2Chosespy = function()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("stnk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("stnk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	M2gotgps = true
end

M3Chosespy = function()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("spy", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("stnk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("stnk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	M3gotgps = true
end

-- Ukraine


CreateM0Ukraine = function()
	newactor = Actor.Create("4tnkpic", true, { Location = CPos.New(22,16), Owner = Multi0 })
	newactor = Actor.Create("4tnktrigger", true, { Location = CPos.New(22,15), Owner = Multi0 })
--	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,17), Owner = Multi0 })
	newactor = Actor.Create("migpic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("afldpic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("migtrigger", true, { Location = CPos.New(22,28), Owner = Multi0 })

	newactor = Actor.Create("dtrkpic", true, { Location = CPos.New(26,16), Owner = Multi0 })
--	newactor = Actor.Create("mrjpic", true, { Location = CPos.New(26,17), Owner = Multi0 })
	newactor = Actor.Create("atompic", true, { Location = CPos.New(26,15), Owner = Multi0 })
	newactor = Actor.Create("dtrktrigger", true, { Location = CPos.New(26,15), Owner = Multi0 })

	newactor = Actor.Create("ironpic", true, { Location = CPos.New(26,24), Owner = Multi0 })
	newactor = Actor.Create("qtnkpic", true, { Location = CPos.New(26,25), Owner = Multi0 })
	newactor = Actor.Create("qtnktrigger", true, { Location = CPos.New(26,28), Owner = Multi0 })
	Trigger.OnEnteredFootprint(M0Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M04tnkCounter = M04tnkCounter +1
			if M0Max4tnk == M04tnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chose4tnk()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0migCounter = M0migCounter +1
			if M0Maxmig == M0migCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosemig()
		end
	end)


	Trigger.OnEnteredFootprint(M0Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0dtrkCounter = M0dtrkCounter +1
			if M0Maxdtrk == M0dtrkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosedtrk()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0qtnkCounter = M0qtnkCounter +1
			if M0Maxqtnk == M0qtnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Choseqtnk()
		end
	end)
end



CreateM1Ukraine = function()

	newactor = Actor.Create("4tnkpic", true, { Location = CPos.New(22,31), Owner = Multi1 })
	newactor = Actor.Create("4tnktrigger", true, { Location = CPos.New(22,30), Owner = Multi1 })
--	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,32), Owner = Multi1 })
	newactor = Actor.Create("migpic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("afldpic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("migtrigger", true, { Location = CPos.New(22,43), Owner = Multi1 })

	newactor = Actor.Create("dtrkpic", true, { Location = CPos.New(26,31), Owner = Multi1 })
--	newactor = Actor.Create("mrjpic", true, { Location = CPos.New(26,32), Owner = Multi1 })
	newactor = Actor.Create("atompic", true, { Location = CPos.New(26,30), Owner = Multi1 })
	newactor = Actor.Create("dtrktrigger", true, { Location = CPos.New(26,30), Owner = Multi1 })

	newactor = Actor.Create("ironpic", true, { Location = CPos.New(26,39), Owner = Multi1 })
	newactor = Actor.Create("qtnkpic", true, { Location = CPos.New(26,40), Owner = Multi1 })
	newactor = Actor.Create("qtnktrigger", true, { Location = CPos.New(26,43), Owner = Multi1 })

	Trigger.OnEnteredFootprint(M1Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M14tnkCounter = M14tnkCounter +1
			if M1Max4tnk == M14tnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chose4tnk()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1migCounter = M1migCounter +1
			if M1Maxmig == M1migCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosemig()
		end
	end)


	Trigger.OnEnteredFootprint(M1Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1dtrkCounter = M1dtrkCounter +1
			if M1Maxdtrk == M1dtrkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosedtrk()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1qtnkCounter = M1qtnkCounter +1
			if M1Maxqtnk == M1qtnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Choseqtnk()
		end
	end)
end



CreateM2Ukraine = function()

	newactor = Actor.Create("4tnkpic", true, { Location = CPos.New(34,16), Owner = Multi2 })
	newactor = Actor.Create("4tnktrigger", true, { Location = CPos.New(34,15), Owner = Multi2 })
--	newactor = Actor.Create("tranpic", true, { Location = CPos.New(35,17), Owner = Multi2 })

	newactor = Actor.Create("migpic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("afldpic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("migtrigger", true, { Location = CPos.New(34,28), Owner = Multi2 })

	newactor = Actor.Create("dtrkpic", true, { Location = CPos.New(30,16), Owner = Multi2 })
--	newactor = Actor.Create("mrjpic", true, { Location = CPos.New(30,17), Owner = Multi2 })
	newactor = Actor.Create("atompic", true, { Location = CPos.New(30,15), Owner = Multi2 })
	newactor = Actor.Create("dtrktrigger", true, { Location = CPos.New(30,15), Owner = Multi2 })

	newactor = Actor.Create("ironpic", true, { Location = CPos.New(30,24), Owner = Multi2 })
	newactor = Actor.Create("qtnkpic", true, { Location = CPos.New(30,25), Owner = Multi2 })
	newactor = Actor.Create("qtnktrigger", true, { Location = CPos.New(30,28), Owner = Multi2 })

	Trigger.OnEnteredFootprint(M2Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M24tnkCounter = M24tnkCounter +1
			if M2Max4tnk == M24tnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chose4tnk()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2migCounter = M2migCounter +1
			if M2Maxmig == M2migCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosemig()
		end
	end)


	Trigger.OnEnteredFootprint(M2Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2dtrkCounter = M2dtrkCounter +1
			if M2Maxdtrk == M2dtrkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosedtrk()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2qtnkCounter = M2qtnkCounter +1
			if M2Maxqtnk == M2qtnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,23), Owner = France })

			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Choseqtnk()
		end
	end)
end



CreateM3Ukraine = function()

	newactor = Actor.Create("4tnkpic", true, { Location = CPos.New(34,31), Owner = Multi3 })
	newactor = Actor.Create("4tnktrigger", true, { Location = CPos.New(34,30), Owner = Multi3 })

	newactor = Actor.Create("migpic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("afldpic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("migtrigger", true, { Location = CPos.New(34,43), Owner = Multi3 })

	newactor = Actor.Create("dtrkpic", true, { Location = CPos.New(30,31), Owner = Multi3 })
--	newactor = Actor.Create("mrjpic", true, { Location = CPos.New(30,32), Owner = Multi3 })
	newactor = Actor.Create("atompic", true, { Location = CPos.New(30,30), Owner = Multi3 })
	newactor = Actor.Create("dtrktrigger", true, { Location = CPos.New(30,30), Owner = Multi3 })

	newactor = Actor.Create("ironpic", true, { Location = CPos.New(30,39), Owner = Multi3 })
	newactor = Actor.Create("qtnkpic", true, { Location = CPos.New(30,40), Owner = Multi3 })
	newactor = Actor.Create("qtnktrigger", true, { Location = CPos.New(30,43), Owner = Multi3 })


	Trigger.OnEnteredFootprint(M3Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M34tnkCounter = M34tnkCounter +1
			if M3Max4tnk == M34tnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chose4tnk()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3migCounter = M3migCounter +1
			if M3Maxmig == M3migCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosemig()
		end
	end)


	Trigger.OnEnteredFootprint(M3Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3dtrkCounter = M3dtrkCounter +1
			if M3Maxdtrk == M3dtrkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosedtrk()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3qtnkCounter = M3qtnkCounter +1
			if M3Maxqtnk == M3qtnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Choseqtnk()
		end
	end)
end



-- Multi0 Units

M04tnkcounter = 0
M0Chose4tnk = function()
	if M04tnkcounter < 2 then
		newactor = Actor.Create("4tnk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()

		M04tnkcounter = M04tnkcounter +1
		M0Chose4tnk()
	elseif M04tnkcounter == 2 then
		M04tnkcounter = 0
	end
end

M0migcounter = 0
M0Chosemig = function()
	if M0migcounter < 3 then
		newactor = Actor.Create("mig", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany })
		M0migcounter = M0migcounter +1
		M0Chosemig()
	elseif M0migcounter == 3 then
		M0migcounter = 0
	end
	if not M0afld2 then
		M0afld2 = true
		newactor = Actor.Create("noreafld", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 })
	end
end


M0Chosedtrk = function()
	newactor = Actor.Create("dtrk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor = Actor.Create("fastmslo", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 })
end

M0Choseqtnk = function()
   	newactor = Actor.Create("qtnk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("fastiron", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 })
end

M14tnkcounter = 0
M1Chose4tnk = function()
	if M14tnkcounter < 2 then
		newactor = Actor.Create("4tnk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()

		M14tnkcounter = M14tnkcounter +1
		M1Chose4tnk()
	elseif M14tnkcounter == 2 then
		M14tnkcounter = 0
	end
end

M1migcounter = 0
M1Chosemig = function()
	if M1migcounter < 3 then
		newactor = Actor.Create("mig", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England })
		M1migcounter = M1migcounter +1
		M1Chosemig()
	elseif M1migcounter == 3 then
		M1migcounter = 0
	end
	if not M1afld2 then
		M1afld2 = true
		newactor = Actor.Create("noreafld", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 })
	end
end


M1Chosedtrk = function()
	newactor = Actor.Create("dtrk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor = Actor.Create("fastmslo", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 }) 
end

M1Choseqtnk = function()
  	newactor = Actor.Create("qtnk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("fastiron", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 })
end



M24tnkcounter = 0
M2Chose4tnk = function()
	if M24tnkcounter < 2 then
		newactor = Actor.Create("4tnk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()

		M24tnkcounter = M24tnkcounter +1
		M2Chose4tnk()
	elseif M24tnkcounter == 2 then
		M24tnkcounter = 0
	end
end

M2migcounter = 0
M2Chosemig = function()
	if M2migcounter < 3 then
		newactor = Actor.Create("mig", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia })
		M2migcounter = M2migcounter +1
		M2Chosemig()
	elseif M2migcounter == 3 then
		M2migcounter = 0
	end
	if not M2afld2 then
		M2afld2 = true
		newactor = Actor.Create("noreafld", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
	end
end


M2Chosedtrk = function()

	newactor = Actor.Create("dtrk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor = Actor.Create("fastmslo", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 }) 
end

M2Choseqtnk = function()

 	newactor = Actor.Create("qtnk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("fastiron", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
end

M34tnkcounter = 0
M3Chose4tnk = function()
	if M34tnkcounter < 2 then
		newactor = Actor.Create("4tnk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()

		M34tnkcounter = M34tnkcounter +1
		M3Chose4tnk()
	elseif M34tnkcounter == 2 then
		M34tnkcounter = 0
	end
end

M3migcounter = 0
M3Chosemig = function()
	if M3migcounter < 3 then
		newactor = Actor.Create("mig", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine })
		M3migcounter = M3migcounter +1
		M3Chosemig()
	elseif M3migcounter == 3 then
		M3migcounter = 0
	end
	if not M3afld2 then
		M3afld2 = true
		newactor = Actor.Create("noreafld", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 })
	end
end


M3Chosedtrk = function()
	newactor = Actor.Create("dtrk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor = Actor.Create("fastmslo", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 })
end

M3Choseqtnk = function()
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("qtnk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
	newactor.AddTag("crushingunit")
	newactor = Actor.Create("fastiron", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 }) 
end

-- Russia


CreateM0Russia = function()
	newactor = Actor.Create("4tnkpic", true, { Location = CPos.New(22,16), Owner = Multi0 })
	newactor = Actor.Create("4tnktrigger", true, { Location = CPos.New(22,15), Owner = Multi0 })
--	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,17), Owner = Multi0 })
	newactor = Actor.Create("migpic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("afldpic", true, { Location = CPos.New(22,25), Owner = Multi0 })
	newactor = Actor.Create("migtrigger", true, { Location = CPos.New(22,28), Owner = Multi0 })

	newactor = Actor.Create("ttnkpic", true, { Location = CPos.New(26,16), Owner = Multi0 })
--	newactor = Actor.Create("mrjpic", true, { Location = CPos.New(26,17), Owner = Multi0 })
--	newactor = Actor.Create("atompic", true, { Location = CPos.New(26,15), Owner = Multi0 })
	newactor = Actor.Create("ttnktrigger", true, { Location = CPos.New(26,15), Owner = Multi0 })
	newactor = Actor.Create("ironpic", true, { Location = CPos.New(26,15), Owner = Multi0 })

	newactor = Actor.Create("shokpic", true, { Location = CPos.New(26,25), Owner = Multi0 })
	newactor = Actor.Create("shoktrigger", true, { Location = CPos.New(26,28), Owner = Multi0 })
	Trigger.OnEnteredFootprint(M0Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M04tnkCounter = M04tnkCounter +1
			if M0Max4tnk == M04tnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chose4tnk()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0migCounter = M0migCounter +1
			if M0Maxmig == M0migCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosemig()
		end
	end)


	Trigger.OnEnteredFootprint(M0Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0ttnkCounter = M0ttnkCounter +1
			if M0Maxttnk == M0ttnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Chosettnk()
		end
	end)
	Trigger.OnEnteredFootprint(M0Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M0shokCounter = M0shokCounter +1
			if M0Maxshok == M0shokCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi0.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M0Choseshok()
		end
	end)
end



CreateM1Russia = function()

	newactor = Actor.Create("4tnkpic", true, { Location = CPos.New(22,31), Owner = Multi1 })
	newactor = Actor.Create("4tnktrigger", true, { Location = CPos.New(22,30), Owner = Multi1 })
--	newactor = Actor.Create("tranpic", true, { Location = CPos.New(23,32), Owner = Multi1 })
	newactor = Actor.Create("migpic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("afldpic", true, { Location = CPos.New(22,40), Owner = Multi1 })
	newactor = Actor.Create("migtrigger", true, { Location = CPos.New(22,43), Owner = Multi1 })

	newactor = Actor.Create("ttnkpic", true, { Location = CPos.New(26,31), Owner = Multi1 })
--	newactor = Actor.Create("mrjpic", true, { Location = CPos.New(26,32), Owner = Multi1 })
--	newactor = Actor.Create("atompic", true, { Location = CPos.New(26,30), Owner = Multi1 })
	newactor = Actor.Create("ttnktrigger", true, { Location = CPos.New(26,30), Owner = Multi1 })

	newactor = Actor.Create("ironpic", true, { Location = CPos.New(26,30), Owner = Multi1 })
	newactor = Actor.Create("shokpic", true, { Location = CPos.New(26,40), Owner = Multi1 })
	newactor = Actor.Create("shoktrigger", true, { Location = CPos.New(26,43), Owner = Multi1 })

	Trigger.OnEnteredFootprint(M1Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M14tnkCounter = M14tnkCounter +1
			if M1Max4tnk == M14tnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chose4tnk()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1migCounter = M1migCounter +1
			if M1Maxmig == M1migCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(22,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosemig()
		end
	end)


	Trigger.OnEnteredFootprint(M1Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1ttnkCounter = M1ttnkCounter +1
			if M1Maxttnk == M1ttnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Chosettnk()
		end
	end)
	Trigger.OnEnteredFootprint(M1Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M1shokCounter = M1shokCounter +1
			if M1Maxshok == M1shokCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(26,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi1.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M1Choseshok()
		end
	end)
end



CreateM2Russia = function()

	newactor = Actor.Create("4tnkpic", true, { Location = CPos.New(34,16), Owner = Multi2 })
	newactor = Actor.Create("4tnktrigger", true, { Location = CPos.New(34,15), Owner = Multi2 })
--	newactor = Actor.Create("tranpic", true, { Location = CPos.New(35,17), Owner = Multi2 })

	newactor = Actor.Create("migpic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("afldpic", true, { Location = CPos.New(34,25), Owner = Multi2 })
	newactor = Actor.Create("migtrigger", true, { Location = CPos.New(34,28), Owner = Multi2 })

	newactor = Actor.Create("ttnkpic", true, { Location = CPos.New(30,16), Owner = Multi2 })
--	newactor = Actor.Create("mrjpic", true, { Location = CPos.New(30,17), Owner = Multi2 })
--	newactor = Actor.Create("atompic", true, { Location = CPos.New(30,15), Owner = Multi2 })
	newactor = Actor.Create("ttnktrigger", true, { Location = CPos.New(30,15), Owner = Multi2 })

	newactor = Actor.Create("ironpic", true, { Location = CPos.New(30,15), Owner = Multi2 })
	newactor = Actor.Create("shokpic", true, { Location = CPos.New(30,25), Owner = Multi2 })
	newactor = Actor.Create("shoktrigger", true, { Location = CPos.New(30,28), Owner = Multi2 })

	Trigger.OnEnteredFootprint(M2Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M24tnkCounter = M24tnkCounter +1
			if M2Max4tnk == M24tnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chose4tnk()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2migCounter = M2migCounter +1
			if M2Maxmig == M2migCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,23), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosemig()
		end
	end)


	Trigger.OnEnteredFootprint(M2Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2ttnkCounter = M2ttnkCounter +1
			if M2Maxttnk == M2ttnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,18), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Chosettnk()
		end
	end)
	Trigger.OnEnteredFootprint(M2Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M2shokCounter = M2shokCounter +1
			if M2Maxshok == M2shokCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,23), Owner = France })

			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi2.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M2Choseshok()
		end
	end)
end



CreateM3Russia = function()

	newactor = Actor.Create("4tnkpic", true, { Location = CPos.New(34,31), Owner = Multi3 })
	newactor = Actor.Create("4tnktrigger", true, { Location = CPos.New(34,30), Owner = Multi3 })

	newactor = Actor.Create("migpic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("afldpic", true, { Location = CPos.New(34,40), Owner = Multi3 })
	newactor = Actor.Create("migtrigger", true, { Location = CPos.New(34,43), Owner = Multi3 })

	newactor = Actor.Create("ttnkpic", true, { Location = CPos.New(30,31), Owner = Multi3 })
--	newactor = Actor.Create("mrjpic", true, { Location = CPos.New(30,32), Owner = Multi3 })
--	newactor = Actor.Create("atompic", true, { Location = CPos.New(30,30), Owner = Multi3 })
	newactor = Actor.Create("ttnktrigger", true, { Location = CPos.New(30,30), Owner = Multi3 })

	newactor = Actor.Create("ironpic", true, { Location = CPos.New(30,30), Owner = Multi3 })
	newactor = Actor.Create("shokpic", true, { Location = CPos.New(30,40), Owner = Multi3 })
	newactor = Actor.Create("shoktrigger", true, { Location = CPos.New(30,43), Owner = Multi3 })


	Trigger.OnEnteredFootprint(M3Trigger11, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M34tnkCounter = M34tnkCounter +1
			if M3Max4tnk == M34tnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chose4tnk()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger12, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3migCounter = M3migCounter +1
			if M3Maxmig == M3migCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(34,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosemig()
		end
	end)


	Trigger.OnEnteredFootprint(M3Trigger13, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3ttnkCounter = M3ttnkCounter +1
			if M3Maxttnk == M3ttnkCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,33), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Chosettnk()
		end
	end)
	Trigger.OnEnteredFootprint(M3Trigger14, function(a, id)
		if a.Type == "truk" and a.Owner ~= Golden then
			M3shokCounter = M3shokCounter +1
			if M3Maxshok == M3shokCounter then
				newactor = Actor.Create("nix01", true, { Location = CPos.New(30,38), Owner = France })
			end
			Media.FloatingText("$", a.CenterPosition, 35, Multi3.Color)
			a.Owner = Golden
			a.Stop()
			a.Destroy()
			M3Choseshok()
		end
	end)
end
M0ttnkcounter = 0

M0Chosettnk = function()
	if M0ttnkcounter < 4 then
		newactor = Actor.Create("ttnk", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()

		if not M0icbuild then
			newactor = Actor.Create("fastiron", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi0 })
			M0icbuild = true
		end
		M0ttnkcounter = M0ttnkcounter +1
		M0Chosettnk()
	elseif M0ttnkcounter == 4 then
		M0ttnkcounter = 0
	end
end

M0shokcounter = 0
M0Choseshok = function()
	if M0shokcounter < 8 then
		newactor = Actor.Create("shok", true, { Location = CPos.New(3,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Germany }) newactor.Scatter()
		M0shokcounter = M0shokcounter +1
		M0Choseshok()
	elseif M0shokcounter == 8 then
		M0shokcounter = 0
	end
end
M1ttnkcounter = 0
M1Chosettnk = function()
	if M1ttnkcounter < 4 then
		newactor = Actor.Create("ttnk", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()

		if not M1icbuild then
			newactor = Actor.Create("fastiron", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi1 })
			M1icbuild = true
		end
		M1ttnkcounter = M1ttnkcounter +1
		M1Chosettnk()
	elseif M1ttnkcounter == 4 then
		M1ttnkcounter = 0
	end
end


M1shokcounter = 0
M1Choseshok = function()
	if M1shokcounter < 8 then
		newactor = Actor.Create("shok", true, { Location = CPos.New(3,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = England }) newactor.Scatter()
		M1shokcounter = M1shokcounter +1
		M1Choseshok()
	elseif M1shokcounter == 8 then
		M1shokcounter = 0
	end
end
M2ttnkcounter = 0
M2Chosettnk = function()
	if M2ttnkcounter < 4 then
		newactor = Actor.Create("ttnk", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()

		if not M2icbuild then
			newactor = Actor.Create("fastiron", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi2 })
			M2icbuild = true
		end
		M2ttnkcounter = M2ttnkcounter +1
		M2Chosettnk()
	elseif M2ttnkcounter == 4 then
		M2ttnkcounter = 0
	end
end


M2shokcounter = 0
M2Choseshok = function()
	if M2shokcounter < 8 then
		newactor = Actor.Create("shok", true, { Location = CPos.New(37,3) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Russia }) newactor.Scatter()
		M2shokcounter = M2shokcounter +1
		M2Choseshok()
	elseif M2shokcounter == 8 then
		M2shokcounter = 0
	end
end
M3ttnkcounter = 0
M3Chosettnk = function()
	if M3ttnkcounter < 4 then
		newactor = Actor.Create("ttnk", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()

		if not M3icbuild then
			newactor = Actor.Create("fastiron", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Multi3 })
			M3icbuild = true
		end
		M3ttnkcounter = M3ttnkcounter +1
		M3Chosettnk()
	elseif M3ttnkcounter == 4 then
		M3ttnkcounter = 0
	end
end

M3shokcounter = 0
M3Choseshok = function()
	if M3shokcounter < 8 then
		newactor = Actor.Create("shok", true, { Location = CPos.New(37,46) + CVec.New(Utils.RandomInteger(0, 17), Utils.RandomInteger(0, 8)), Owner = Ukraine }) newactor.Scatter()
		M3shokcounter = M3shokcounter +1
		M3Choseshok()
	elseif M3shokcounter == 8 then
		M3shokcounter = 0
	end
end

GpsMaker = function()
	if M0gotgps then
		Barb = Multi0.GetActorsByType("noreatek")
		for p,fences in pairs(Barb) do
			newactor = Actor.Create("fastgps", true, { Location = fences.Location, Owner = Multi0 })
		end
	end
	if M1gotgps then
		Barb = Multi1.GetActorsByType("noreatek")
		for p,fences in pairs(Barb) do
			newactor = Actor.Create("fastgps", true, { Location = fences.Location, Owner = Multi1 })
		end
	end
	if M2gotgps then
		Barb = Multi2.GetActorsByType("noreatek")
		for p,fences in pairs(Barb) do
			newactor = Actor.Create("fastgps", true, { Location = fences.Location, Owner = Multi2 })
		end
	end
	if M3gotgps then
		Barb = Multi3.GetActorsByType("noreatek")
		for p,fences in pairs(Barb) do
			newactor = Actor.Create("fastgps", true, { Location = fences.Location, Owner = Multi3 })
		end
	end
end

