• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[SCRIPT] When acces * step on sqm...

Blue Identity

Member
Joined
Feb 20, 2009
Messages
174
Reaction score
15
Location
Netherlands
Dear community,

I am looking for a scrip, altough if it excists. That will allow me when I have acces 5 (admin acces) to step on a certain sqm.

I have found a simular script but it is used for premium players instead..
Code:
function onStepIn(cid, item, position, fromPosition)
	local newPos = {x = 1000, y = 1000, z = 7, stackpos = 1}
	if isPremium(cid) == false then
		doTeleportThing(cid, newPos)
	end
	return true
end

Please help is needed..

Kind regards,
+REP
 
LUA:
function onStepIn(cid, item, position, fromPosition)
	local newPos = {x = xxxx, y = xxxx, z = xx} --Tp if acces lower from 5
	if getPlayerGroupId(cid) >= 5 then
		doTeleportThing(cid, newPos)
	end
	return true
end
 
Thanks alot already,

Is it also posible to make something like this?

Code:
function onStepIn(cid, item, position, fromPosition)
	local newPos = {x = xxxx, y = xxxx, z = xx} --Tp if acces lower from 5
	if getPlayerGroupId(cid) >= 5 then
else
		doTeleportThing(cid, newPos)
	end
	return true
end

Means if you are NOT acces 5 you will be teleported... instead of getting teleported if your acces 5.
And everything lower than acces 5 needs to be teleported.

Also added: if posible when a player walks over the tile and isnt acces 5 they get tped and get the message "You are not a gamemaster"
 
Last edited:
LUA:
function onStepIn(cid, item, position, fromPosition)
	if getPlayerGroupId(cid) >= 5 then
                doSendMagicEffect(getCreaturePosition(cid),14)
else
		doTeleportThing(cid, fromPosition, true)
                doSendMagicEffect(getCreaturePosition(cid),13)
                doCreatureSay(cid, "You need to be gamemaster to enter this area.", TALKTYPE_ORANGE_1)
	end
	return true
end
check this ;d
//i add some custom from me
 
Thanks mate works perfectly the way I wanted it to work :D
(Y)

anim_6e9ac707-029f-0fa4-1df7-36446f5bbb68.gif
 
Back
Top