Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Olá,galera estou com uma grande dificuldade :(

tou com 1 poketibia e queria fazer 1 area staff ingual do OTPOKEMON!

só staff pode passar pelo piso 

Link para o post
Compartilhar em outros sites
  • Respostas 9
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

function onStepIn(cid, item, position, fromPosition) if isMonster(cid) then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), 2) return true end if getPlayerGroupId(cid) == 1 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, 25, "ops você não é da staff!.") doSendMagicEffect(getThingPos(cid), 2) return false end doPlayerSendTextMessage(cid, 25, "Bem-vindo(a)!.") doSendMagicEffect(getThingPos(cid), 12) return true end   Muda is

tenta   function onStepIn(cid, item, position, fromPosition) if isMonster(cid) then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), 2) return true end if getPlayerGroup(cid) == 6 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, 25, "ops você não é da staff!.") doSendMagicEffect(getThingPos(cid), 2) return false end doPlayerSendTextMessage(cid, 25, "Bem-vindo(a)!.") doSendMagicEffect(getThingPos(cid), 12) return true end  

  • Sub-Admin

tenta

 

function onStepIn(cid, item, position, fromPosition)

if isMonster(cid) then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), 2)
return true
end

if getPlayerGroup(cid) == 6 then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, 25, "ops você não é da staff!.")
doSendMagicEffect(getThingPos(cid), 2)
return false
end
doPlayerSendTextMessage(cid, 25, "Bem-vindo(a)!.")
doSendMagicEffect(getThingPos(cid), 12)
return true
end

 

movements.xml

 

<movevent event="StepIn" uniqueid="3003" script="piso staff.lua"/> 

 

3003 é unique que vai no piso pelo mapa editor.

 

entra com player e tenta passar, depois passa com o god pois n testei só fiz!

Editado por alexxxxxxx (veja o histórico de edições)

 

20230912_034613.png.cf49b650c34dd7d7b1f79bd49c70f53c.png

Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código.  #OpenSource #Programação #Contribuição

 

Link para o post
Compartilhar em outros sites
  Em 30/05/2015 em 10:02, alexxxxxxx disse:

tenta

 

function onStepIn(cid, item, position, fromPosition)

if isMonster(cid) then

doTeleportThing(cid, fromPosition, true)

doSendMagicEffect(getThingPos(cid), 2)

return true

end

if getPlayerGroup(cid) == 6 then

doTeleportThing(cid, fromPosition, true)

doPlayerSendTextMessage(cid, 25, "ops você não é da staff!.")

doSendMagicEffect(getThingPos(cid), 2)

return false

end

doPlayerSendTextMessage(cid, 25, "Bem-vindo(a)!.")

doSendMagicEffect(getThingPos(cid), 12)

return true

end

 

movements.xml

 

<movevent event="StepIn" uniqueid="3003" script="piso staff.lua"/> 

 

3003 é unique que vai no piso pelo mapa editor.

 

entra com player e tenta passar, depois passa com o god pois n testei só fiz!

Expand   Mostrar mais  

não funcionou :/

não da nem 1 erro no distro

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96844
    Tópicos
    519597
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo