Postado Abril 26, 2021 4 anos Alguém poderia disponibilizar um script (movements).Tile que so passa 1 mc ? O cara tem 10 char logado no server. Eu so queria que passasse 1 nesse tile. Ja o segundo ..3...4...5 não conseguiriam passar pela tile. Pq os que eu achei aqui eles tem q deslogar os mcs pra poderem deslogar. tfs 0.4 Editado Abril 26, 2021 4 anos por Doidodepeda (veja o histórico de edições)
Postado Abril 27, 2021 4 anos Solução Tenta esse script: Spoiler local ips = {} function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end local player_ip = getPlayerIp(cid) if table.count(ips, player_ip) == 1 then doPlayerSendTextMessage(cid, 27, "There is already one player with the same IP as yours in the event.") doTeleportThing(cid, fromPosition) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Welcome to the event area.") table.insert(ips, player_ip) return true end Em movements.xml adicione: Spoiler <movevent type="StepIn" uniqueid="id_pra_colocar_no_tile" event="script" value="nome_do_script.lua"/> Creditos pelo script: @Nysman Editado Abril 27, 2021 4 anos por WhiteBubble (veja o histórico de edições)
Postado Abril 27, 2021 4 anos Autor 13 minutos atrás, WhiteBubble disse: Tenta esse script: Ocultar conteúdo local ips = {} function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end local player_ip = getPlayerIp(cid) if table.count(ips, player_ip) == 1 then doPlayerSendTextMessage(cid, 27, "There is already one player with the same IP as yours in the event.") doTeleportThing(cid, fromPosition) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Welcome to the event area.") table.insert(ips, player_ip) return true end Em movements.xml adicione: Ocultar conteúdo <movevent type="StepIn" uniqueid="id_pra_colocar_no_tile" event="script" value="nome_do_script.lua"/> Creditos pelo script: @Nysman FUNCIONOU MAN, MUITO OBRIGADO !!!!!!! Editado Abril 27, 2021 4 anos por Doidodepeda (veja o histórico de edições)
Postado Abril 27, 2021 4 anos 4 minutos atrás, Doidodepeda disse: FUNCIONOU MAN, MUITO OBRIGADO !!!!!!! De nada, marca a resposta como melhor resposta pra ajudar caso alguém tenha o mesmo problema
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.