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
40
41
42
43
44
serverlist = {122641}
addhook("serveraction","Teclado_f2")
function Teclado_f2(id,act)
	for _,usgn in ipairs(serverlist) do
		if player(id,'usgn') == usgn then
			if act==1 then
			menu(id,"NPC Spawn Menu,Zombie,HeadCrab,Snark,Vortigaunt,Soldier")
			end
		end
	end
end
addhook("menu","npcmenu")
function npcmenu(id,title,b)
if title=="NPC Spawn Menu" then
	if b==1 then
	parse('spawnnpc 1 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 1 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 1 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	menu(id,"NPC Spawn Menu,Zombie,HeadCrab,Snark,Vortigaunt,Soldier")
elseif b==2 then
	parse('spawnnpc 2 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 2 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 2 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	menu(id,"NPC Spawn Menu,Zombie,HeadCrab,Snark,Vortigaunt,Soldier")
elseif b==3 then
	parse('spawnnpc 3 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 3 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 3 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	menu(id,"NPC Spawn Menu,Zombie,HeadCrab,Snark,Vortigaunt,Soldier")
elseif b==4 then
	parse('spawnnpc 4 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 4 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 4 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	menu(id,"NPC Spawn Menu,Zombie,HeadCrab,Snark,Vortigaunt,Soldier")
elseif b==5 then
	parse('spawnnpc 5 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 5 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
	parse('spawnnpc 5 '..(player(id,"tilex")-0)..' '..player(id,"tiley"))
		menu(id,"NPC Spawn Menu,Zombie,HeadCrab,Snark,Vortigaunt,Soldier")
		end
	end
end