- I Already searched but i dont found one.
greaze
Admin = {xxxxx} addhook("say","_say") function _say(id,txt) for _, usgn in ipairs(Admin) do if player(id,'usgn') == usgn then local ct = player(0,"team2") local t = player(0,"team1") if txt == "!change" then for _,ctp in pairs(ct) do for _,tp in pairs(t) do parse("makect "..tp) parse("maket "..ctp) return 1 end end end end end end
Admin = {xxxxx} addhook("say","_say") function _say(id,txt) for _, usgn in ipairs(Admin) do if player(id,'usgn') == usgn then local ct = player(0,"team2") local t = player(0,"team1") if txt == "!change" then for _,ctp in pairs(ct) do for _,tp in pairs(t) do parse("makect "..tp) parse("maket "..ctp) return 1 end end end end end end
Admins = { 	[20877] = true } addhook('say', 'sayHook') function sayHook(id, txt) 	if txt:sub(1, 1) == '!' or txt:sub(1, 1) == '@' then 		if txt:sub(2) == 'change' and Admins[player(id, 'usgn')] then 			switchTeams() 		else 			msg2(id, '©255100100Not a saycommand') 		end 		return 1; 	end end function switchTeams() 	local a, b = player(0, 'team1'), player(0, 'team2') 	for _, id in pairs(a) do 		parse('makect '..id) 		parse('msg2 '..id..' "©000000255Your whole team has been switched to CT"') 	end 	for _, id in pairs(b) do 		parse('maket '..id) 		parse('msg2 '..id..' "©255000000Your whole team has been switched to T"') 	end end
-------------------CS:2D TEAM SWITCH-------------------- -------------------------------------------------------- addhook('say','SayCommands') function SayCommands(id,message) a = player(id,'usgn') 	for adm = 1,#admins do 		if a == admins[adm] and message == '@lock' then 		lock_ct=1 		lock_tt=1 		msg('©255000000All Teams are locked!') 		return 1 			elseif a == admins[adm] and message == '@unlock' then 			lock_ct=0 			lock_tt=0 			msg('©000255000All teams were unlocked!') 			return 1 		end 	end end addhook("team","OnTeam") function OnTeam(id,team) 	if team == 1 then 		if lock_tt == 1 then 		msg2(id,"©255000000Teams are unlocked!") 		return 1 	end 		elseif team == 2 then 			if lock_ct == 1 then 			msg2(id,"©255000000Teams are unlocked!") 			return 1 		end 	end end
for adm = 1,#[u]admins[/u] do 		if a == [u]admins[/u][adm] and message == '@lock' then
Admin = {xxxx}
admins = {2422 , xxxxx , xxxxx}