Postado Julho 21, 2014 10 anos Tenta com esse: function onStepIn(cid, item, position, fromPosition) if getPlayerPremiumDays(cid) < 1 then doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid, 25, "MSG SE NAO FOR VIP.") else doPlayerSendTextMessage(cid, 25, "MSG SE FOR VIP.") end return true end Editado Julho 21, 2014 10 anos por Rusherzin (veja o histórico de edições) Ajudei? De nada \o/ Att Rusherzin
Postado Julho 21, 2014 10 anos Autor dbug de novo =/ tá dando dbug mas não ta dando nem um erro na distro =/ Editado Julho 21, 2014 10 anos por NathanAmaro (veja o histórico de edições) Oi
Postado Julho 21, 2014 10 anos Tenta esse, é só adicionar a posição pra onde serão teletransportados. function onStepIn(cid, item, position, fromPosition) local position1 = {x= 439, y=49, z=7} if isPremium(cid) == false then doTeleportThing(cid, position1) doPlayerSendTextMessage(cid, 25, "Only vip accounts can acess this area.") else doPlayerSendTextMessage(cid, 25, "Welcome to Vip Area.") end return true end Ajudei? De nada \o/ Att Rusherzin
Postado Julho 21, 2014 10 anos Tente: function onStepIn(cid, item, position, fromPosition) if isPremium(cid) == FALSE then doTeleportThing(cid, fromPosition, false) doSendMagicEffect(position, CONST_ME_MAGIC_BLUE) doPlayerSendCancel(cid, "Somente players Que tem Acesso VIP podem passar.") end return TRUE end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.