• 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!

Lua How to make pacc tile?

bivan

New Member
Joined
Dec 18, 2008
Messages
125
Reaction score
1
I have a problem with script which allow to go players only with pacc, whats wrong with it: (for 0.3.6 tfs)
Code:
function onStepIn(cid, item, position, fromPosition)

if isPremium(cid) then
local newposition = {x=71, y=132, z=6}
  doTeleportThing(cid, newposition)
  doSendMagicEffect(newposition, 12)
else
  doPlayerSendTextMessage(cid,22,"You need to have a Premium Account to enter this area.")
end
    return TRUE
end
Sorry, but I'm newbie in Lua ;s
 
Does it show any error in console?
it either will not work or its the function
try with the full function it will return everything nill (only if u did it in a mod)
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
 
try
Code:
function onStepIn(cid, item, position, fromPosition)

if isPremium(cid)==false then
  doTeleportThing(cid, fromPosition)
  doPlayerSendTextMessage(cid,22,"You need to have a Premium Account to enter this area.")
end
end

well, a bit different way, but easier and should work
 
Back
Top