Obviously Exactly Myself has writtenI don't want start a soap opera here lol
i was commenting about the trailer of cs2d, and this guy only came for annoy
nvm...
Admin/mod comment
§4.5 - Stick to the point! No off-topic posts!
Deleted Posts
Obviously Exactly Myself has written
§4.5 - Stick to the point! No off-topic posts!
SD has written
killerboy1 has written
killerboy1 has written
§2.1 - No needless and/or doubled posts (spam)
Majatek has written
mafia_man has written
useigor has written
mafia_man has writtenlang = {
	["English"] = {
		["langMenuTitle"] = "Select your Language";
		
		["menu1"] = {
			"English Menu 1"; -- Title
			"Button 1,Factis is moderator"; -- Buttons
		};
		["menu2"] = {
			"English Menu 2";
			"Button 1,Factis likes pie";
		};
	};
	
	["Polski"] = {
		["langMenuTitle"] = "Wybierz swoj Jezyk";
		
		["menu1"] = {
			"Polskie Menu 1";
			"Przycisk 1,Factis to cipa";
		};
		["menu2"] = {
			"Polskie Menu 2";
			"Przycisk 1,Factis lubi ruchac";
		};
	};
}
Player = {};
LANGUAGES = {"English", "Polski"}
function langMenu(id)
	local _, i;
	local str = lang[Player[id].lang]["langMenuTitle"] .. ",";
	for _, i in pairs(LANGUAGES) do
		str = str .. i;
		if _ < #LANGUAGES then
			str = str .. ",";
		end
	end
	menu(id, str);
end
function menu1(id)
	local l = lang[Player[id].lang]["menu1"];
	menu(id, l[1] .. "," .. l[2]);
end
function menu2(id)
	local l = lang[Player[id].lang]["menu2"];
	menu(id, l[1] .. "," .. l[2]);
end
addhook("join", "onJoin")
function onJoin(id)
	Player[id] = {
		lang = "English";
	};
end
addhook("serveraction", "onKey")
function onKey(id, k)
	if (k == 1) then
		langMenu(id);
	elseif (k == 2) then
		menu1(id);
	elseif (k == 3) then
		menu2(id);
	end
end
addhook("menu", "onMenu")
function onMenu(id, t, b)
	local l = lang[Player[id].lang];
	if (t == l["langMenuTitle"]) then
		if b > 0 then
			Player[id].lang = LANGUAGES[b];
		end
	elseif (t == l["menu1"][1]) then
		msg("Button["..b.."] in menu1 with title: "..t);
	elseif (t == l["menu2"][1]) then
		msg("Button["..b.."] in menu2 with title: "..t);
	end
end
§2.1 - No needless and/or doubled posts (spam)
§2.1 - No needless and/or doubled posts (spam)
§4.3 - Only English/German (depending on section) is allowed
§5.3 - No memes, ASCII art or comparable fun pictures
mozilla1 has written