Forum

> > CS2D > Scripts > set spawn point script
Forums overviewCS2D overview Scripts overviewLog in to reply

English set spawn point script

3 replies
To the start Previous 1 Next To the start

old set spawn point script

sadswsww
User Off Offline

Quote
Hello guy, i'm having trouble with my script:
Spoiler >

I want this lua to teleport people to the position i want when they spawn at the spawnpoint
It doesn't work. Help

old Re: set spawn point script

Rainoth
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
addhook("spawn","snowspawn")
function snowspawn(id)
	if player(id,"team") == 1 then
		parse("setpos "..id.." 2160 435")
	elseif player(id,"team") == 2 then
		parse("setpos "..id.." 1360 108")
	end
end

Spawning a player in spawn function will result in stack overflow for ya..
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview