Movements/scripts:
local level = 20 -- Level to pass (Caso queira colocar)
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then return true end
if getPlayerLevel(cid) < level then
return doTeleportThing(cid, fromPosition, true) and doPlayerSendTextMessage(cid, 27, "Only players level "..level.." can enter here!")
elseif not isPremium(cid) then
return doTeleportThing(cid, fromPosition) and doPlayerSendCancel(cid, "Only VIP to pass here.")
else
doSendAnimatedText(getCreaturePosition(cid), "", math.random(1,255))
end
return true
end
movements.xml
<movevent type="StepIn" actionid="1234" event="script" value="nome_do_arquivo.lua"/>
O número do ACTIONID é o que você vai colocar no chão pro player que tiver a VIP passar, e, vice-versa.
Lembrando que no seu config.lua, precisa estar:
freePremium = false