Ir para conteúdo

Featured Replies

Postado

Oi pessoal queria saber como eu tiro o honra dessa bike por exemplo.. somente pessoas vip podem usar ela mais o ot que eu to editando não era meu e eu não sei como adquirir vip ,-, [ burro eu ]

 

então ajudem aqui ver se é esse por favor..

 

OBS: eu queria que as pessoas que não forem vip também poderem usar a bike.

 

-- [[ Bike Sistema 100% -- By SmiX ^}^ ]] --
--[[ • Ela deixa você mais rápido a partir da volocidade determinada no script + sua estamina.]]--
--[[ • Adiciona e remove outfit do player.]]--
--[[ #Lembrando todos os campos com variaveis escritas são preechidas com {"sim" ou "nao"}]]--
 
 
local config = {
textoAvisandoSuaVelocidade = "sim", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele
premiumAccount = "no", -- Se precisa de premium
velocidadeDaSuaBike = 80, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta.
outfitMale = 1581, -- Outfit male
outfitFemale = 1581, -- Outfit female
efeito = 18, -- Efeito que ira aparescer quando der use.
storageValue = 5602, -- Storage Para a bike
usaVipSystem = "no", -- Caso alguem use algum tipo de vip system bote sim
storageUsadaNoVipSystem = 33339, -- Aqui boata a storage do vip system caso use
}
 
function onUse(cid, item, itemEx, fromPosition, toPosition)
 
if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end
   if getPlayerStorageValue(cid, config.storageValue) <= 0 then
          setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."")
          if config.premiumAccount == "sim" and isPremium(cid) or config.usaVipSystem == "sim" and getPlayerStorageValue(cid, config.storageUsadaNoVipSystem) >= 1 then
                 a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
                 b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
                 doSendMagicEffect(getThingPos(cid), config.efeito)
                speedRate = config.velocidadeDaSuaBike * 1000
                 doChangeSpeed(cid, speedRate + getPlayerStorageValue(cid, 3624))
                 setPlayerStorageValue(cid, config.storageValue, 1)
                   if getPlayerSex(cid) == 0 then
                          doSetCreatureOutfit(cid, b, -1)
                   else
                          doSetCreatureOutfit(cid, a, -1)
                   end
                   if config.textoAvisandoSuaVelocidade == "sim" then
                          doPlayerSendTextMessage(cid, 27, "Sua velocidade agora é: "..getPlayerStorageValue(cid, 3624).."")
                   end  
          else
                  if config.usaVipSystem == "sim" then
                   doPlayerSendCancel(cid, "Desculpe apenas membros de honra podem usar a bike.")
                  else
                   doPlayerSendCancel(cid, "Desculpe apenas membros de honra podem usar a bike.")
                  end
          return TRUE
          end
   else
           setPlayerStorageValue(cid, config.storageValue, 0)
           doSendMagicEffect(getThingPos(cid), config.efeito)
           doRemoveCondition(cid, CONDITION_OUTFIT)
           retireSpeedRate = config.velocidadeDaSuaBike * 100
           playerSpeedNow = -retireSpeedRate - getPlayerStorageValue(cid, 3624)
           doChangeSpeed(cid, playerSpeedNow)
   end
return TRUE
end 
 
 

Resolvido por Wend

Ir para solução
  • Respostas 6
  • Visualizações 483
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Tenta esse::   function onUse(cid, item, frompos, itemEx, topos)   local bike = {lookType = 1394} --- LookType do player em cima da bike.    homem local bike1 = {lookType = 1393} --- LookType do p

  • Jamison Collins
    Jamison Collins

    Tente isso: -- [[ Bike Sistema 100% -- By SmiX ^}^ ]] -- --[[ • Ela deixa você mais rápido a partir da volocidade determinada no script + sua estamina.]]-- --[[ • Adiciona e remove outfit do player.

  • @Gerson achei o erro   Abra spoiler e copie oque estiver dentro e ponha no bike.lua !

Postado

Tente isso:

-- [[ Bike Sistema 100% -- By SmiX ^}^ ]] --
--[[ • Ela deixa você mais rápido a partir da volocidade determinada no script + sua estamina.]]--
--[[ • Adiciona e remove outfit do player.]]--
--[[ #Lembrando todos os campos com variaveis escritas são preechidas com {"sim" ou "nao"}]]--
 
 
local config = {
textoAvisandoSuaVelocidade = "sim", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele
premiumAccount = "no", -- Se precisa de premium
velocidadeDaSuaBike = 80, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta.
outfitMale = 1581, -- Outfit male
outfitFemale = 1581, -- Outfit female
efeito = 18, -- Efeito que ira aparescer quando der use.
storageValue = 5602, -- Storage Para a bike
usaVipSystem = "no", -- Caso alguem use algum tipo de vip system bote sim
storageUsadaNoVipSystem = 33339, -- Aqui boata a storage do vip system caso use
}
 
function onUse(cid, item, itemEx, fromPosition, toPosition)
 
if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end
   if getPlayerStorageValue(cid, config.storageValue) <= 0 then
          setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."")
          if config.premiumAccount == "sim" and isPremium(cid) or config.usaVipSystem == "sim" and getPlayerStorageValue(cid, config.storageUsadaNoVipSystem) >= 1 then
                 a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
                 b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
                 doSendMagicEffect(getThingPos(cid), config.efeito)
                speedRate = config.velocidadeDaSuaBike * 1000
                 doChangeSpeed(cid, speedRate + getPlayerStorageValue(cid, 3624))
                 setPlayerStorageValue(cid, config.storageValue, 1)
                   if getPlayerSex(cid) == 0 then
                          doSetCreatureOutfit(cid, b, -1)
                   else
                          doSetCreatureOutfit(cid, a, -1)
                   end
                   if config.textoAvisandoSuaVelocidade == "sim" then
                          doPlayerSendTextMessage(cid, 27, "Sua velocidade agora é: "..getPlayerStorageValue(cid, 3624).."")
                   end  
          else
          return TRUE
          end
   else
           setPlayerStorageValue(cid, config.storageValue, 0)
           doSendMagicEffect(getThingPos(cid), config.efeito)
           doRemoveCondition(cid, CONDITION_OUTFIT)
           retireSpeedRate = config.velocidadeDaSuaBike * 100
           playerSpeedNow = -retireSpeedRate - getPlayerStorageValue(cid, 3624)
           doChangeSpeed(cid, playerSpeedNow)
   end
return TRUE
end 
Postado

@Gerson achei o erro

 

Abra spoiler e copie oque estiver dentro e ponha no bike.lua !

-- [[ Bike Sistema 100% -- By SmiX ^}^ ]] --


--[[ • Ela deixa você mais rápido a partir da volocidade determinada no script + sua estamina.]]--
--[[ • Adiciona e remove outfit do player.]]--
--[[ #Lembrando todos os campos com variaveis escritas são preechidas com {"sim" ou "nao"}]]--


local config = {
textoAvisandoSuaVelocidade = "sim", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele
premiumAccount = "sim", -- Se precisa de premium
velocidadeDaSuaBike = 80, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta.
outfitMale = 1581, -- Outfit male
outfitFemale = 1581, -- Outfit female
efeito = 18, -- Efeito que ira aparescer quando der use.
storageValue = 5602, -- Storage Para a bike
usaVipSystem = "nao", -- Caso alguem use algum tipo de vip system bote sim
storageUsadaNoVipSystem = 33339, -- Aqui boata a storage do vip system caso use
}

function onUse(cid, item, itemEx, fromPosition, toPosition)

if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end
if getPlayerStorageValue(cid, config.storageValue) <= 0 then
setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."")
if config.premiumAccount == "sim" and isPremium(cid) or config.usaVipSystem == "sim" and getPlayerStorageValue(cid, config.storageUsadaNoVipSystem) >= 1 then
a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
doSendMagicEffect(getThingPos(cid), config.efeito)
speedRate = config.velocidadeDaSuaBike * 1000
doChangeSpeed(cid, speedRate + getPlayerStorageValue(cid, 3624))
setPlayerStorageValue(cid, config.storageValue, 1)
if getPlayerSex(cid) == 0 then
doSetCreatureOutfit(cid, b, -1)
else
doSetCreatureOutfit(cid, a, -1)
end
if config.textoAvisandoSuaVelocidade == "sim" then
doPlayerSendTextMessage(cid, 27, "Sua velocidade agora é: "..getPlayerStorageValue(cid, 3624).."")
end
else
if config.usaVipSystem == "sim" then
doPlayerSendCancel(cid, "Desculpe apenas membros de honra podem usar a bike.")
else
doPlayerSendCancel(cid, "Desculpe apenas membros de honra podem usar a bike.")
end
return TRUE
end
else
setPlayerStorageValue(cid, config.storageValue, 0)
doSendMagicEffect(getThingPos(cid), config.efeito)
doRemoveCondition(cid, CONDITION_OUTFIT)
retireSpeedRate = config.velocidadeDaSuaBike * 100
playerSpeedNow = -retireSpeedRate - getPlayerStorageValue(cid, 3624)
doChangeSpeed(cid, playerSpeedNow)
end
return TRUE
end

Editado por Nildson (veja o histórico de edições)

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo