Postado Março 11, 2017 8 anos Spoiler --[[ script By Subwat Reparar soft e firewalker!]]-- function onSay(cid, words, param) local config = { price = 100000, new_soft = 6132, -- id da nova soft boots worn_soft = 10021, -- id da velha soft boots new_firewalker = 9933, -- id da firewalker boots worn_firewalker = 10022, -- id da velha firewalker boots needPremium = true -- se precisa ser premium (true or false) } local boots = 0; if (config.needPremium == true) and (not isPremium(cid)) then doPlayerSendTextMessage(cid, 23, "desculpe apenas Premium players podem recarregar Suas Botas.") return TRUE end if ((getPlayerItemCount(cid, config.worn_soft) < 1)) and (getPlayerItemCount(cid, config.worn_firewalker) < 1)) then doPlayerSendTextMessage(cid, 23, "Voce precisa de uma soft ou uma firewalker boots") return TRUE end if param == "soft" then if getPlayerItemCount(cid, config.worn_soft) >= 1 then if doPlayerRemoveMoney(cid,config.price) == TRUE then doPlayerRemoveItem(cid,config.worn_soft,1) doPlayerAddItem(cid,config.new_soft, 1) doPlayerSendTextMessage(cid, 23, "Sua soft foi renovada.") else doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.") end end return TRUE end if param == "firewalker" then if getPlayerItemCount(cid, config.worn_firewalker) >= 1 then if doPlayerRemoveMoney(cid,config.price) == TRUE then doPlayerRemoveItem(cid,config.worn_firewalker,1) doPlayerAddItem(cid,config.new_firewalker, 1) doPlayerSendTextMessage(cid, 23, "Sua firewalker foi renovada") else doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.") end end return TRUE end end Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestões?
Postado Março 11, 2017 8 anos Autor 1 hora atrás, rogaforyn2 disse: Ocultar conteúdo --[[ script By Subwat Reparar soft e firewalker!]]-- function onSay(cid, words, param) local config = { price = 100000, new_soft = 6132, -- id da nova soft boots worn_soft = 10021, -- id da velha soft boots new_firewalker = 9933, -- id da firewalker boots worn_firewalker = 10022, -- id da velha firewalker boots needPremium = true -- se precisa ser premium (true or false) } local boots = 0; if (config.needPremium == true) and (not isPremium(cid)) then doPlayerSendTextMessage(cid, 23, "desculpe apenas Premium players podem recarregar Suas Botas.") return TRUE end if ((getPlayerItemCount(cid, config.worn_soft) < 1)) and (getPlayerItemCount(cid, config.worn_firewalker) < 1)) then doPlayerSendTextMessage(cid, 23, "Voce precisa de uma soft ou uma firewalker boots") return TRUE end if param == "soft" then if getPlayerItemCount(cid, config.worn_soft) >= 1 then if doPlayerRemoveMoney(cid,config.price) == TRUE then doPlayerRemoveItem(cid,config.worn_soft,1) doPlayerAddItem(cid,config.new_soft, 1) doPlayerSendTextMessage(cid, 23, "Sua soft foi renovada.") else doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.") end end return TRUE end if param == "firewalker" then if getPlayerItemCount(cid, config.worn_firewalker) >= 1 then if doPlayerRemoveMoney(cid,config.price) == TRUE then doPlayerRemoveItem(cid,config.worn_firewalker,1) doPlayerAddItem(cid,config.new_firewalker, 1) doPlayerSendTextMessage(cid, 23, "Sua firewalker foi renovada") else doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.") end end return TRUE end end Deu esse erro: (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
Postado Março 11, 2017 8 anos Solução Spoiler --[[ script By Subwat Reparar soft e firewalker!]]-- function onSay(cid, words, param) local config = { price = 100000, new_soft = 6132, -- id da nova soft boots worn_soft = 10021, -- id da velha soft boots new_firewalker = 9933, -- id da firewalker boots worn_firewalker = 10022, -- id da velha firewalker boots needPremium = true -- se precisa ser premium (true or false) } local boots = 0; if (config.needPremium == true) and (not isPremium(cid)) then doPlayerSendTextMessage(cid, 23, "desculpe apenas Premium players podem recarregar Suas Botas.") return TRUE end if (getPlayerItemCount(cid, config.worn_soft) < 1) and (getPlayerItemCount(cid, config.worn_firewalker) < 1) then doPlayerSendTextMessage(cid, 23, "Voce precisa de uma soft ou uma firewalker boots") return TRUE end if param == "soft" then if getPlayerItemCount(cid, config.worn_soft) >= 1 then if doPlayerRemoveMoney(cid,config.price) == TRUE then doPlayerRemoveItem(cid,config.worn_soft,1) doPlayerAddItem(cid,config.new_soft, 1) doPlayerSendTextMessage(cid, 23, "Sua soft foi renovada.") else doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.") end end return TRUE end if param == "firewalker" then if getPlayerItemCount(cid, config.worn_firewalker) >= 1 then if doPlayerRemoveMoney(cid,config.price) == TRUE then doPlayerRemoveItem(cid,config.worn_firewalker,1) doPlayerAddItem(cid,config.new_firewalker, 1) doPlayerSendTextMessage(cid, 23, "Sua firewalker foi renovada") else doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.") end end return TRUE end end Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestões?
Postado Março 12, 2017 8 anos Autor @rogaforyn2 Obrigado pela atenciosidade, funcionou perfeitamente, você foi devidamente reputado. (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
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.