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
wpn_used = {}
for i = 1, 32 do
	wpn_used[i] = 1
end
addhook("attack", "att")
function att(id)
	if ( player(id, "weapon") == some_weapon_id ) then
		wpn_used[id] = -1;
	end
emd
addhook("hit", "hit_", 100)
function hit_(id, source, wpn)
	if ( wpn == some_weapon_id ) then
		if ( wpn_used[source] != 0 ) then
			if ( wpn_used[source] == -1 ) then
				wpn_used[source] = 0
			end
			return 0
		else
			return 1
		end
	else
		return 0
	end
end