É mais ou menos assim:
local playerPosition = {x = 94, y = 129, z = 7, stackpos = STACKPOS_TOP_CREATURE}
local player = {0, 0, 0, 0}
local failed = FALSE
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
failed = TRUE
player = getThingfromPos(playerPosition)
if player.itemid > 0 then
if isPlayer(player.uid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'HELLO FUNCIONOU!!')
if(item.id == 1945) then
doTransformItem(item.uid, 1946)
else
doTransformItem(item.uid, 1945)
end
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Player Fora')
if(item.id == 1945) then
doTransformItem(item.uid, 1946)
else
doTransformItem(item.uid, 1945)
end
end
end
return TRUE
end
Acho que foi isso que era sua dúvida neh? Se quiser com mais de um tile da uma olhadinha no script da anihi, não vou dar esse código facil vc vai ter que pesquisar x)



info
Grupo: Campones
Registrado: 01/08/11
Posts: 1
Reputação: 0
me deem um exemplo de script ou me falem como eu faço para q se o player usar uma alavanca e um Segundo Player n Estiver no Tile do lado apareça uma menssagem Dizendo : è necessario 2 Players....