• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Tp Tile

Dekon

Zerenia.net Owner
Joined
Feb 4, 2008
Messages
235
Reaction score
3
Location
Sweden
Anyone got a tp tile script that u only can use if u got a special storage id?
/Danne
 
PHP:
newPos = {x=123, y=123, z=7}
Storage = 8080 
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		if getPlayerStorageValue(cid, Storage) == TRUE then
			 doTeleportThing(cid, newPos, TRUE)
			 doSendMagicEffect(position, 12)
			 doSendMagicEffect(newPos, 12)
		else
		doPlayerSendCancel(cid, "Only special players can be teleported")
		doTeleportThing(cid, fromPosition, TRUE)
		end
	end
	return TRUE
end

Not tested!
 
PHP:
newPos = {x=123, y=123, z=7}
Storage = 8080 
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		if getPlayerStorageValue(cid, Storage) == TRUE then
			 doTeleportThing(cid, newPos, TRUE)
			 doSendMagicEffect(position, 12)
			 doSendMagicEffect(newPos, 12)
		else
		doPlayerSendCancel(cid, "Only special players can be teleported")
		doTeleportThing(cid, fromPosition, TRUE)
		end
	end
	return TRUE
end

Not tested!

Gonna try it i will reports bugs if there are any :)
rep++
 
Back
Top