Forum




spawn place with usgn id
5 replies



1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
function moveUSID(usid,x,y) 	for _,id in pairs(player(0,"tableliving")) do 		if player(id,"usgn")==usid then 			parse("setpos "..id.." "..x.." "..y) 		end 	end end moveUSID(52331,480,640)
I'm not really sure what you mean though.

Like this?
I'm not really sure what you mean though.
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
function moveUSID(usid,x,y) 	for _,id in pairs(player(0,"tableliving")) do 		if player(id,"usgn")==usid then 			parse("setpos "..id.." "..x.." "..y) 		end 	end end moveUSID(52331,480,640)
I'm not really sure what you mean though.
is it that like when you die you will spawn on these coordinates
1
2
3
4
5
6
2
3
4
5
6
addhook("die","_die") function _die(id) 	local x,y=randomentity(player(id,"team")) 	parse("spawnplayer "..id.." "..(x*32+16).." "..(y*32+16)) end
Or maybe different spawn positions?
1
2
3
4
5
2
3
4
5
addhook("spawn","_spawn") function _spawn(id) 	parse("setpos "..id.." 480 640") end
Please explain, one sentence isn't going to help.


@OP: Was this the same question or is it something different?



