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
unlock = {}
addhook("join","_join")
function _join(id)
unlock[id]=0
end
addhook("leave","_leave")
function _leave(id)
unlock[id]=0
end
addhook("walkover","_collect")
function _collect(id,iid,type,ain,a,mode)
	if type == 2 then
		if unlock[id]==0 then
		unlock[id]=1
	parse("equip "..id.." 2")
	parse("removeitem "..iid)
	parse("setammo "..id.." 2 20 0")
	return 1
		elseif unlock[id]==1 then
	parse("setammo "..id.." 2 1000 "..a+20 .."")
	parse("removeitem "..iid)
	return 1
		end
	end
end
addhook("drop","_drop")
function _drop(id)
return 1
end