Postado Outubro 24, 2018 7 anos Então galera, tenho esse script, ele fica saindo do personagem o nome [VIP], porem ele so sai na cor ''desejada'' >> Amarelo <<Gostaria que alguém modificasse para ele ficar saindo outras cores ( Cores Aleatórias )Agradeço desde de Ja local storage = 23569 -- Storage que o player precisa ter local tempo = 2 -- Tempo em segundos function onLogin(cid) if getPlayerStorageValue(cid, storage) - os.time() >= 1 then SendEffect(cid) end return TRUE end function SendEffect(cid) if not isCreature(cid) then return LUA_ERROR end doSendAnimatedText(getPlayerPosition(cid), "[VIP]", 215) addEvent(SendEffect, tempo*1000, cid) return TRUE end
Postado Outubro 24, 2018 7 anos local storage = 23569 -- Storage que o player precisa ter local tempo = 2 -- Tempo em segundos local colors = { TEXTCOLOR_RED, TEXTCOLOR_BLUE, TEXTCOLOR_PINK, TEXTCOLOR_GREEN, TEXTCOLOR_ORANGE, TEXTCOLOR_YELLOW } function onLogin(cid) if getPlayerStorageValue(cid, storage) - os.time() >= 1 then SendEffect(cid) end return true end function SendEffect(cid) if (not isCreature(cid)) then return LUA_ERROR end doSendAnimatedText(getPlayerPosition(cid), "[VIP]", colors[math.random(1, #colors)]) addEvent(SendEffect, tempo*1000, cid) return true end @Jinx Editado Outubro 24, 2018 7 anos por KOLISAO (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.