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
28
29
30
31
32
33
34
35
36
37
38
39
function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
fail_per=initArray(32)
fail=false
mod_close=false
mod_spammarks=false
dc_rage=false
community_flame=false
addhook("ms100","fail")
function fail()
	for id=1,32 do
		if fail_per[id]>=75 then
			fail=true
		else
			fail=false
		end
	end
	if fail==true then
		mod_close=true
	end
	if mod_close==true then
		mod_spammarks=true
		community_flame=true
	end
	if community_flame==true then
		dc_rage=true
	end
	if fail==true and mod_close==true and mod_spammarks==true and dc_rage==true and community_flame==true then
		msg2(id,"Stop making threads about Tibia/RP shit in here!")
		parse('banusgn(player(id,"usgn"))') -- not sure about that, though
	end
end