DR
tfs 0.3

tile somente 2player por ip passa

Por Dragon Ball Hiper, 30 de jul. de 2016 em Scripts

0.4
tile
movement
ip
5
1.5k
Dragon Ball HiperD
30 de julho de 2016 às 15:57

Ola Nao Sei se estou Postando area correta =): se estiver errado Desculpa me

 

Bom Preciso de Um Script que Onde apenas 2 player por ip passa no tile para ir no evento !

 

Ja Procurei MUITOs Script Nao estao funfando !

 

 

se alguem tiver fico gradecido =):

obg 

Editado Agosto 15 por Daniel

1 mês depois...
AdministradorA
15 de agosto de 2016 às 17:21

Movido para Tutoriais e Suporte - Tutoriais de Scripting - Suporte Scripting.

zipter98Z
15 de agosto de 2016 às 20:21
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) == 2 then        doPlayerSendTextMessage(cid, 27, "There is already two players 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 trueend

 

JosegvbJ
15 de agosto de 2016 às 21:19
56 minutos atrás, zipter98 disse:
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) == 2 then        doPlayerSendTextMessage(cid, 27, "There is already two players 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 trueend

 

 

fico feliz de olhar q vc ta dnovo ajudando aki no forum, + ativo do q vc ja tava ^^

1 favor pessoal, ajuda eu com o server dpx =x fikei comparando e a grande maioria dos arquevos do server sao iguais ao pda ^^ 

zipter98Z
15 de agosto de 2016 às 21:25

Mesmo sendo um assunto desconexo do tópico (peço desculpas ao autor), estava me questionando justamente quanto a esse tema. Por ter ficado um tempo desligado do mundo poketibiano, não me atualizei sobre as bases mais usadas atualmente (se é esse tal DPX ou outro). Se puder responder-me em meu perfil, agradeço.

Editado Agosto 15 por zipter98