Postado Julho 26, 2013 11 anos /\ agora acho que vai Ajudei? REP+ http://www.youtube.com/watch?v=xHa6-y2hqrk&feature=youtu.be
Postado Julho 27, 2013 11 anos function onUse(cid, item, frompos, item2, topos, acc, days) if getPlayerStorageValue(cid, 22930) == -1 then if days > 0 then local daysValue = 3 * 24 * 60 * 60 local vipTime = getVipTimeByAccount(acc) local timeNow = os.time() local time = getVipDaysByAccount(acc) == 0 or > and (timeNow + daysValue) or (vipTime + daysValue) setVipTimeByAccount(acc, time) else doPlayerSendTextMessage(cid,22,"Você já pegou sua recompensa.") return FALSE end end não testei por completo, pois não uso seu script vip, no console não deu nenhum erro teste no seu e me fale OBS peguei o script daqui, caso não seja o correto me fale function onUse(cid, item, frompos, item2, topos, acc, days) if getPlayerStorageValue(cid, 22930) == -1 then if days > 0 then local daysValue = 3 * 24 * 60 * 60 local vipTime = getVipTimeByAccount(acc) local timeNow = os.time() local time = getVipDaysByAccount(acc) == 0 or > and (timeNow + daysValue) or (vipTime + daysValue) setVipTimeByAccount(acc, time) else doPlayerSendTextMessage(cid,22,"Você já pegou sua recompensa.") return TRUE end return FALSE end Tenta assim. Editado Julho 27, 2013 11 anos por KekezitoLHP (veja o histórico de edições)
Postado Julho 29, 2013 11 anos Autor Esse não vai, eu consegui montar um aqui porem só não consigo colocar uma mensagem de cancel tipo: doPlayerSendTextMessage(cid,22,"Você já pegou sua recompensa.") Vou colocar meu script abaixo caso voce saiba como colocar: function onUse(cid, item, frompos, item2, topos) if item.uid == 13540 then queststatus = getAccountStorageValue(getPlayerAccountId(cid), 7275) if queststatus == 1 then else doPlayerSendTextMessage(cid,22,"Você recebeu 2 Dias de VIP. ") doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) setAccountStorageValue(getPlayerAccountId(cid), 7275, 1) addVipDaysByAccount(getPlayerAccountId(cid), 2) end return 0 end return 1 end
Postado Julho 29, 2013 11 anos function onUse(cid, item, frompos, item2, topos) if item.uid == 13540 then queststatus = getAccountStorageValue(getPlayerAccountId(cid), 7275) if queststatus == 1 then doPlayerSendTextMessage(cid,22,"Você recebeu 2 Dias de VIP. ") doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) setAccountStorageValue(getPlayerAccountId(cid), 7275, 1) addVipDaysByAccount(getPlayerAccountId(cid), 2) else doPlayerSendTextMessage(cid,22,"Você já pegou sua recompensa.") end return 0 end return 1 end Assinatura removida. Publicidade indevida
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.