Forum

> > CS2D > Scripts > set spawn point script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch set spawn point script

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt set spawn point script

sadswsww
User Off Offline

Zitieren
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

alt Re: set spawn point script

Rainoth
Moderator Off Offline

Zitieren
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..
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht