That is if pl_clos[id] then not spawn
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
pl_closed = {} addhook("join","join_") function join_(id) pl_closed[id]=true end addhook("spawn","spawn_") function spawn_(id) if pl_closed[id] then --not spawn end end