Forum

> > CS2D > Scripts > No teleport in "Info_NoBuild" entity
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch No teleport in "Info_NoBuild" entity

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt No teleport in "Info_NoBuild" entity

DarkX
User Off Offline

Zitieren
Hey guys, i need your help to finish my own script. This is the code

1
2
3
4
5
6
7
8
9
elseif b == 2 then
	-- If player position are not in "Info_NoBuild" entity then
		telx[id] = player(id,"x")
		tely[id] = player(id,"y")
		savepos[id] = 1
		msg2(id,server.."Position saved!")
	else
		msg2(id,error.."You can't save position here!")
	end

I need the code for "If player position are not in Info_NoBuild entity then".

alt Re: No teleport in "Info_NoBuild" entity

DarkX
User Off Offline

Zitieren
But it doesn't work, this is the code

1
2
3
4
5
6
7
8
9
10
elseif b == 2 then
	if not entity(x,y,type) == 18 then
		telx[id] = player(id,"x")
		tely[id] = player(id,"y")
		savepos[id] = 1
		msg2(id,server.."Position saved!")
	else
		msg2(id,error.."You can't save position here!")
		return 1
	end

Error :
Spoiler >
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht