peeuowfe 0 Postado Maio 1, 2013 Share Postado Maio 1, 2013 Eu tenho esse action do pokemon, que é a camera que grava para aparecer na TV. function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 99285) == 2 then doPlayerSendCancel(cid, "You have to close your private chat to create a TV channel.") return true end if getPlayerStorageValue(cid, 99285) == 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 Eu queria que ele fosse so pra vip usar, ele so usa se for premium, mais eu queria VIP. Minha VIP que eu uso é essa http://www.xtibia.com/forum/topic/151189-vip-system-by-mock-100/ Link para o comentário Compartilhar em outros sites More sharing options...
SkyLigh 453 Postado Maio 1, 2013 Share Postado Maio 1, 2013 function onUse(cid, item, frompos, item2, topos) local storage = 13540 -- storage da vip if getPlayerStorageValue(cid, storage) == TRUE then doPlayerSendCancel(cid, "You no have vip") return true end if getPlayerStorageValue(cid, 99285) == 2 then doPlayerSendCancel(cid, "You have to close your private chat to create a TV channel.") return true end if getPlayerStorageValue(cid, 99285) == 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 Link para o comentário Compartilhar em outros sites More sharing options...
peeuowfe 0 Postado Maio 2, 2013 Autor Share Postado Maio 2, 2013 function onUse(cid, item, frompos, item2, topos) local storage = 13540 -- storage da vip if getPlayerStorageValue(cid, storage) == TRUE then doPlayerSendCancel(cid, "You no have vip") return true end if getPlayerStorageValue(cid, 99285) == 2 then doPlayerSendCancel(cid, "You have to close your private chat to create a TV channel.") return true end if getPlayerStorageValue(cid, 99285) == 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 Nao pego =/, fico pra free Link para o comentário Compartilhar em outros sites More sharing options...
Vodkart 1514 Postado Maio 2, 2013 Share Postado Maio 2, 2013 troca essa linha: if not isPremium(cid) then por essa if vip.hasVip(cid) == FALSE then Link para o comentário Compartilhar em outros sites More sharing options...
Slicer 1070 Postado Maio 2, 2013 Share Postado Maio 2, 2013 (editado) function onUse(cid, item, frompos, item2, topos) local storage = 13540 -- storage da vip if getPlayerStorageValue(cid, storage) == TRUE then doPlayerSendCancel(cid, "You no have vip") return true end if getPlayerStorageValue(cid, 99285) == 2 then doPlayerSendCancel(cid, "You have to close your private chat to create a TV channel.") return true end if getPlayerStorageValue(cid, 99285) == 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 mais uma prova q tu n devia ta nesse cargo... ;/ pequena aula... if getPlayerStorageValue(cid, storage) == TRUE then isso SEMPRE vai dar false, ja q tas comparando um numero com um booleano... ( -1 == true? ) tens q comparar com algum valor pra dai ser true ou false... if getPlayerStorageValue(cid, storage) == -1 then Editado Maio 2, 2013 por Slicer Link para o comentário Compartilhar em outros sites More sharing options...
SkyLigh 453 Postado Maio 2, 2013 Share Postado Maio 2, 2013 @Stylo Negativado por flood Link para o comentário Compartilhar em outros sites More sharing options...
StyloMaldoso 330 Postado Maio 2, 2013 Share Postado Maio 2, 2013 (editado) @Stylo Negativado por flood creio que esse teu post agora é flood não? não é mais facil da rep - e fica queto kk? function onUse(cid, item, frompos, item2, topos) local storage = 13540 -- storage da vip if getPlayerStorageValue(cid, storage) == TRUE then doPlayerSendCancel(cid, "You no have vip") return true end if getPlayerStorageValue(cid, 99285) == 2 then doPlayerSendCancel(cid, "You have to close your private chat to create a TV channel.") return true end if getPlayerStorageValue(cid, 99285) == 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 mais uma prova q tu n devia ta nesse cargo... ;/ pequena aula... if getPlayerStorageValue(cid, storage) == TRUE then isso SEMPRE vai dar false, ja q tas comparando um numero com um booleano... ( -1 == true? ) tens q comparar com algum valor pra dai ser true ou false... if getPlayerStorageValue(cid, storage) == -1 then poha tbm tinha essa duvida do "==-1", valeu (: @alias isso é duvida de servidor derivados, Editado Maio 2, 2013 por StyloMaldoso Link para o comentário Compartilhar em outros sites More sharing options...
Slicer 1070 Postado Maio 2, 2013 Share Postado Maio 2, 2013 @Stylo Negativado por flood unico q devia levar REP- aki eh TU --' isso sim eh um flood sem fla no script todo errado q tu postou ¬¬ abuso de poder eh osso n? ;/ @alias isso é duvida de servidor derivados² Link para o comentário Compartilhar em outros sites More sharing options...
Stigal 584 Postado Abril 21, 2018 Share Postado Abril 21, 2018 A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. + Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda. * Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado. Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados