Ir para conteúdo

BackOfTheHell

Posts Recomendados

Olá Galerinha Aqui Estou Eu De novo O Sistema De Tv Do Meu Poketibia Não Esta Funfando A Camera Esta Funfando Mas A TV Não Tipo A Camera Cria o chat é Tudo Mias Na hora Que Vai Clicar Na Tv Não Da Nada Queria Uma Ajuda Ai Quem Ajudar REP + !!

 

Script Da Minha Tv é Camera !!

 

camera :

 

function onUse(cid, item, frompos, item2, topos)

if getPlayerStorageValue(cid, 99284) == 2 then
doPlayerSendCancel(cid, "You have to close your private chat to create a TV channel.")
return true
end
if getPlayerStorageValue(cid, 99284) == 1 then
doPlayerSendCancel(cid, "You are already on air! Currently on channel: "..getPlayerStorageValue(cid, 99285).."")
doPlayerSendChannel(cid, getPlayerChannelId(cid), getPlayerStorageValue(cid, 99285))
return true
end
doPlayerPopupFYI(cid, "Choose a channel name")
end

 

Tv :

 

function onUse(cid, item, frompos, item2, topos)

if getPlayerStorageValue(cid, 99284) == 1 then
doPlayerSendCancel(cid, "You can't watch TV while recording.")
return true
end
if #getCreatureSummons(cid) >= 1 then
doPlayerSendCancel(cid, " Nao pode ver tv com um pokémon sumonado" )
return true
end
local a = getThingPos(cid)
if item.itemid >= 11416 and item.itemid <= 11418 then
if a.y <= topos.y then
doPlayerSendCancel(cid, "Please, stay in front of the television.")
doPlayerSetVocation(cid, 1)
return true
end
end
if item.itemid == 11418 then
if a.x < topos.x then
doPlayerSendCancel(cid, "Please, stay in front of the television.")
doPlayerSetVocation(cid, 1)
return true
end
elseif item.itemid == 11416 then
if a.x > topos.x then
doPlayerSendCancel(cid, "Please, stay in front of the television.")
doPlayerSetVocation(cid, 1)
return true
end
end
doPlayerSetVocation(cid, 2)
if not checkChannelsList(cid) then
doPlayerSendCancel(cid, "There aren't any channels on air right now.")
doPlayerSetVocation(cid, 1)
return true
end
if #getCreatureSummons(cid) >= 1 then
doReturnPokemon(cid, getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8), pokeballs[getPokeballType(getPlayerSlotItem(cid, 8).itemid)].effect)
end
openChannelDialog(cid)
return true
end

 

Desculpa Pessoal é Que So Novo Nessa Aria !!

Link para o comentário
Compartilhar em outros sites

Televison.lua

function onUse(cid, item, frompos, item2, topos)

if getPlayerStorageValue(cid, 99284) == 1 then
doPlayerSendCancel(cid, "You can't watch TV while recording.")
return true
end

local a = getThingPos(cid)

if item.itemid >= 11416 and item.itemid <= 11418 then
if a.y <= topos.y then
doPlayerSendCancel(cid, "Please, stay in front of the television.")
doPlayerSetVocation(cid, 1)
return true
end
end

if getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 or getPlayerStorageValue(cid, 75846) >= 1 or getPlayerStorageValue(cid, 5700) >= 1 then --alterado v1.9 <<
doPlayerSendCancel(cid, "Please leave fly, ride, surf or duels.")
return true
end

if #getCreatureSummons(cid) >= 1 then
doPlayerSendCancel(cid, "Puxe o seu pokemon antes de assistir TV.")
return true
end

if item.itemid == 11418 then
if a.x < topos.x then
doPlayerSendCancel(cid, "Please, stay in front of the television.")
doPlayerSetVocation(cid, 1)
return true
end
elseif item.itemid == 11416 then
if a.x > topos.x then
doPlayerSendCancel(cid, "Please, stay in front of the television.")
doPlayerSetVocation(cid, 1)
return true
end
end

doPlayerSetVocation(cid, 2)
setPlayerStorageValue(cid, 950000, 1)

if not checkChannelsList(cid) then
doPlayerSendCancel(cid, "There aren't any channels on air right now.")
doPlayerSetVocation(cid, 1)
setPlayerStorageValue(cid, 950000, -1)
return true
end

if #getCreatureSummons(cid) >= 1 then
doReturnPokemon(cid, getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8), pokeballs[getPokeballType(getPlayerSlotItem(cid, 8).itemid)].effect)
end

openChannelDialog(cid)

return true
end

 

 

Camera.lua

 

function onUse(cid, item, frompos, item2, topos)

if getPlayerStorageValue(cid, 99284) == 2 then
doPlayerSendCancel(cid, "You have to close your private chat to create a TV channel.")
return true
end

if getPlayerStorageValue(cid, 99284) == 1 then
doPlayerSendCancel(cid, "You are already on air! Currently on channel: "..getPlayerStorageValue(cid, 99285).."")
doPlayerSendChannel(cid, getPlayerChannelId(cid), getPlayerStorageValue(cid, 99285))
return true
end

if not isPremium(cid) then
doPlayerSendCancel(cid, "Only premium members are allowed to record videos.")
return true
end

doPlayerPopupFYI(cid, "Choose a channel name")

end

Link para o comentário
Compartilhar em outros sites

tenta esse aqui:

 

 

function onUse(cid, item, frompos, item2, topos)

if getPlayerStorageValue(cid, 99284) == 1 then
doPlayerSendCancel(cid, "You can't watch TV while recording.")
return true
end

local a = getThingPos(cid)

if item.itemid >= 11416 and item.itemid <= 11418 then
if a.y <= topos.y then
doPlayerSendCancel(cid, "Please, stay in front of the television.")
doPlayerSetVocation(cid, 1)
return true
end
end

if item.itemid == 11418 then
if a.x < topos.x then
doPlayerSendCancel(cid, "Please, stay in front of the television.")
doPlayerSetVocation(cid, 1)
return true
end
elseif item.itemid == 11416 then
if a.x > topos.x then
doPlayerSendCancel(cid, "Please, stay in front of the television.")
doPlayerSetVocation(cid, 1)
return true
end
end

doPlayerSetVocation(cid, 2)

if not checkChannelsList(cid) then
doPlayerSendCancel(cid, "There aren't any channels on air right now.")
doPlayerSetVocation(cid, 1)
return true
end

if #getCreatureSummons(cid) >= 1 then
doReturnPokemon(cid, getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8), pokeballs[getPokeballType(getPlayerSlotItem(cid, 8).itemid)].effect)
end

openChannelDialog(cid)

return true
end

 

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...