Forum

> > CS2D > Scripts > No teleport in "Info_NoBuild" entity
Forums overviewCS2D overview Scripts overviewLog in to reply

English No teleport in "Info_NoBuild" entity

4 replies
To the start Previous 1 Next To the start

old No teleport in "Info_NoBuild" entity

DarkX
User Off Offline

Quote
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".

old Re: No teleport in "Info_NoBuild" entity

DarkX
User Off Offline

Quote
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 >
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview