Ir para conteúdo

Featured Replies

Postado

.Qual servidor ou website você utiliza como base? 

tfs 0.4

Qual o motivo deste tópico? 

Erro.

Está surgindo algum erro? Se sim coloque-o aqui. 

  Citar

Não está funcionando.

 

Você tem o código disponível? Se tiver publique-o aqui: 

function onKill(cid, target, lastHit)
local level = getPlayerLevel(cid)-getPlayerLevel(target)

if(isPlayer(target) ~= true) then
return true
end

if (isInArray({1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 28, 29, 30, 31, 32, 33, 34, 35}, getPlayerVocation(cid)) and (isInArray({17, 18, 19, 20, 21, 22, 36, 37, 38, 39}, getPlayerVocation(target)) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce HUMANO matou um ORC e nao pegou frag.")
elseif level <= 500 then
    addPlayerFrag(cid, 1)
return true
end

if (isInArray({1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 28, 29, 30, 31, 32, 33, 34, 35}, getPlayerVocation(cid)) and (isInArray({23, 24, 25, 26, 27, 40, 41, 42, 43}, getPlayerVocation(target)) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce HUMANO matou um ELF e nao pegou frag.")
elseif level <= 500 then
    addPlayerFrag(cid, 1)
return true
end

if (isInArray({17, 18, 19, 20, 21, 22, 36, 37, 38, 39}, getPlayerVocation(cid)) and (isInArray({1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 28, 29, 30, 31, 32, 33, 34, 35}, getPlayerVocation(target)) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce ORC matou um HUMANO e nao pegou frag.")
elseif level <= 500 then
    addPlayerFrag(cid, 1)
return true
end

if (isInArray({17, 18, 19, 20, 21, 22, 36, 37, 38, 39}, getPlayerVocation(cid)) and (isInArray({23, 24, 25, 26, 27, 40, 41, 42, 43}, getPlayerVocation(target)) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce ORC matou um ELF e nao pegou frag.")
elseif level <= 500 then
    addPlayerFrag(cid, 1)
return true
end

if (isInArray({23, 24, 25, 26, 27, 40, 41, 42, 43}, getPlayerVocation(cid)) and (isInArray({1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 28, 29, 30, 31, 32, 33, 34, 35}, getPlayerVocation(target)) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce ELF matou um HUMANO e nao pegou frag.")
elseif level <= 500 then
    addPlayerFrag(cid, 1)
return true
end

if (isInArray({23, 24, 25, 26, 27, 40, 41, 42, 43}, getPlayerVocation(cid)) and (isInArray({17, 18, 19, 20, 21, 22, 36, 37, 38, 39}, getPlayerVocation(target)) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce ELF matou um ORC e nao pegou frag.")
elseif level <= 500 then
    addPlayerFrag(cid, 1)
return true
end

if (isPlayer(cid) == true) and (isPlayer(target) == true) then
if getPlayerSkullType(target) == SKULL_WHITE then
addPlayerFrag(cid, 1)
elseif getPlayerSkullType(target) == SKULL_YELLOW then
addPlayerFrag(cid, 1)
elseif getPlayerSkullType(target) == SKULL_RED then
addPlayerFrag(cid, 1)
elseif getPlayerSkullType(target) == SKULL_BLACK then
addPlayerFrag(cid, 1)
elseif getPlayerSkullType(target) == SKULL_NONE then
addPlayerFrag(cid, 1)
end
return TRUE
end
end 

 

Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 

 

Postado

@Lokyskiller 

 

Mostrar conteúdo oculto

 

Postado
  • Autor

Bem Ago

  Em 06/05/2020 em 21:29, Storm disse:

@Lokyskiller 

 

Mostrar conteúdo oculto

 

 

Agora os monsters e players não morrem... e da erro na linha 11 e 2.

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