Postado Maio 26, 2016 9 anos local delay = 3000 --Intervalo de tempo entre o efeito, em milésimos de segundo. function sendVipEffect(cid) if isPlayer(cid) and getPlayerStorageValue(cid, 13500) > os.time() then doSendAnimatedText(getThingPos(cid), "GOLDENVIP", math.random(1, 255)) addEvent(sendVipEffect, delay, cid) end end function onLogin(cid) sendVipEffect(cid) return true end Não dou suporte via PM, crie um tópico caso tenha dúvidas. Isso previne que outras pessoas com a mesma dúvida criem tópicos desnecessários.
Postado Maio 26, 2016 9 anos function sendVipEffect(cid) if not isCreature(cid) or getPlayerStorageValue(cid, 13500) - os.time() <= 0 then return LUA_ERROR end doSendAnimatedText(getThingPos(cid), "GOLDENVIP", math.random(1, 255)) addEvent(sendVipEffect, 2000, cid) end function onLogin(cid) sendVipEffect(cid) return true end [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Maio 27, 2016 9 anos Autor Em 26/05/2016 at 22:40, Talesigorvr disse: local delay = 3000 --Intervalo de tempo entre o efeito, em milésimos de segundo. function sendVipEffect(cid) if isPlayer(cid) and getPlayerStorageValue(cid, 13500) > os.time() then doSendAnimatedText(getThingPos(cid), "GOLDENVIP", math.random(1, 255)) addEvent(sendVipEffect, delay, cid) end end function onLogin(cid) sendVipEffect(cid) return true end Vlw mano Funfo aqui. REP+ Em 26/05/2016 at 00:04, Vodkart disse: function sendVipEffect(cid) if not isCreature(cid) or getPlayerStorageValue(cid, 13500) - os.time() <= 0 then return LUA_ERROR end doSendAnimatedText(getThingPos(cid), "GOLDENVIP", math.random(1, 255)) addEvent(sendVipEffect, 2000, cid) end function onLogin(cid) sendVipEffect(cid) return true end Vlw por ajudar
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.