Spoiler addhook("serveraction","dm_sa")
function dm_sa(id,act)
x = player(id,"x")
y = player(id,"y")
if (act==1) then
spawn_men(id)
end
end
function spawn_men(id)
p1 = player(1,"name")
p2 = player(2,"name")
p3 = player(3,"name")
p4 = player(4,"name")
p5 = player(5,"name")
p6 = player(6,"name")
p7 = player(7,"name")
p8 = player(8,"name")
p9 = player(9,"name")
p10 = player(10,"name")
p11 = player(11,"name")
p12 = player(12,"name")
p13 = player(13,"name")
p14 = player(14,"name")
p15 = player(15,"name")
p16 = player(16,"name")
p17 = player(17,"name")
p18 = player(18,"name")
p19 = player(19,"name")
p20 = player(20,"name")
p21 = player(21,"name")
p22 = player(22,"name")
p23 = player(23,"name")
p24 = player(24,"name")
p25 = player(25,"name")
p26 = player(26,"name")
p27 = player(27,"name")
p28 = player(28,"name")
p29 = player(29,"name")
p30 = player(30,"name")
p31 = player(31,"name")
p32 = player(32,"name")
pnm = player(id,"name")
menu(id,"Spawn Player,'..p1..','..p2..','..p3..','..p4..','..p5..','..p6..','..p7..','..p8..','..p9..','..p10..','..p11..','..p12..','..p13..','..p14..','..p15..','..p16..','..p17..','..p18..','..p19..','..p20..','..p21..','..p22..','..p23..','..p24..','..p25..','..p26..','..p27..','..p28..','..p29..','..p30..','..p31..','..p32..'")
end
addhook("menu","dm_menu")
function dm_menu(id,men,sel)
x = player(id,"x")
y = player(id,"y")
if (men=="Spawn Player") then
if (sel<=1) then
parse("spawnplayer 1 "..x.." "..y)
end
if (sel==2) then
parse("spawnplayer 2 "..x.." "..y)
end
if (sel==3) then
parse("spawnplayer 3 "..x.." "..y)
end
if (sel==4) then
parse("spawnplayer 4 "..x.." "..y)
end
if (sel==5) then
parse("spawnplayer 5 "..x.." "..y)
end
if (sel==6) then
parse("spawnplayer 6 "..x.." "..y)
end
if (sel==7) then
parse("spawnplayer 7 "..x.." "..y)
end
if (sel==8) then
parse("spawnplayer 8 "..x.." "..y)
end
if (sel==9) then
parse("spawnplayer 9 "..x.." "..y)
end
if (sel==10) then
parse("spawnplayer 10 "..x.." "..y)
end
if (sel==11) then
parse("spawnplayer 11 "..x.." "..y)
end
if (sel==12) then
parse("spawnplayer 12 "..x.." "..y)
end
if (sel==13) then
parse("spawnplayer 13 "..x.." "..y)
end
if (sel==14) then
parse("spawnplayer 14 "..x.." "..y)
end
if (sel==15) then
parse("spawnplayer 15 "..x.." "..y)
end
if (sel==16) then
parse("spawnplayer 16 "..x.." "..y)
end
if (sel==17) then
parse("spawnplayer 17 "..x.." "..y)
end
if (sel==18) then
parse("spawnplayer 18 "..x.." "..y)
end
if (sel==19) then
parse("spawnplayer 19 "..x.." "..y)
end
if (sel==20) then
parse("spawnplayer 20 "..x.." "..y)
end
if (sel==21) then
parse("spawnplayer 21 "..x.." "..y)
end
if (sel==22) then
parse("spawnplayer 22 "..x.." "..y)
end
if (sel==23) then
parse("spawnplayer 23 "..x.." "..y)
end
if (sel==24) then
parse("spawnplayer 24 "..x.." "..y)
end
if (sel==25) then
parse("spawnplayer 25 "..x.." "..y)
end
if (sel==26) then
parse("spawnplayer 26 "..x.." "..y)
end
if (sel==27) then
parse("spawnplayer 27 "..x.." "..y)
end
if (sel==28) then
parse("spawnplayer 28 "..x.." "..y)
end
if (sel==29) then
parse("spawnplayer 29 "..x.." "..y)
end
if (sel==30) then
parse("spawnplayer 30 "..x.." "..y)
end
if (sel==31) then
parse("spawnplayer 31 "..x.." "..y)
end
if (sel==32) then
parse("spawnplayer 32 "..x.." "..y)
end
end
end