Ir para conteúdo

Featured Replies

Postado

alguém pode  fazer funcionar esses 2 creaturescripts, no tfs 0.4?

Spoiler

function onLogin(cid)
 local frags = getPlayerPoints(cid)
    if frags >= 10 and frags < 30 then
        doCreatureSetSkullType(cid, SKULL_YELLOW)
    elseif frags >= 30 and frags < 80 then 
        doCreatureSetSkullType(cid, SKULL_GREEN)
    elseif frags >= 80 and frags < 150 then
        doCreatureSetSkullType(cid, SKULL_WHITE)
    elseif frags >= 150 and frags < 300 then
        doCreatureSetSkullType(cid, SKULL_RED)
    elseif frags > 300 then
        doCreatureSetSkullType(cid, SKULL_BLACK)
    end
    return true
end

 

 

Spoiler

function onKill(cid, target, flags, damage)
    if isPlayer(target) then
                local frags = getPlayerPoints(cid)
                    if frags >= 10 and frags < 30 then
                        doCreatureSetSkullType(cid, SKULL_YELLOW)
                    elseif frags >= 30 and frags < 80 then 
                        doCreatureSetSkullType(cid, SKULL_GREEN)
                    elseif frags >= 80 and frags < 150 then
                        doCreatureSetSkullType(cid, SKULL_WHITE)
                    elseif frags >= 150 and frags < 300 then
                        doCreatureSetSkullType(cid, SKULL_RED)
                    elseif frags > 300 then
                        doCreatureSetSkullType(cid, SKULL_BLACK)
                end
    end
    return true
end

 

Rap+, @Vodkart, @Sekk

  • Respostas 9
  • Visualizações 306
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

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