1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
password = "asdf"
allowed = {}
addhook("join","a")
function a(id)
	allowed[id] = false
end
addhook("say","b")
function b(id,txt)
	if txt:sub(1,5) == "!pass" then
		if txt:sub(7,7+#password) == password then
			msg2(id,"©000255000You have entered the correct password!")
			allowed[id] = true
			return 1
		end
		msg2(id,"©255000000Incorrect pass!")
		return 1
	end
end
addhook("team","c")
function c(id,t)
	if t == 2 then
		if allowed[id] then
			return 0
		end
		return 1
	end
end
Works, change the variable "password" to the password you want.