Ir para conteúdo

Featured Replies

Postado

oi gente eu tenho esse script aqui mas tem um problema é o seguinte, ao dar look somente o outro player vê mas eu não posso ver meus proprios frags.

 

é esse script aqui

Citar

function onLook(cid, thing, position, lookDistance)
function getDeathsAndKills(cid, type) -- by vodka
local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0
if (query:getID() ~= -1) then 
repeat
d = d+1
until not query:next()
query:free()
end
return d 
end
if isPlayer(thing.uid) then
doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Killed: ["..getDeathsAndKills(thing.uid, "kill").."] Players.\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Died: ["..getDeathsAndKills(thing.uid, "death").."] Times")
end
return true
end

 

ultra.png

ultra2.png

 

Quem puder ajudar obg

Postado

Esta é uma mensagem automática! Este tópico foi movido para a área correta.
Pedimos que você leia as regras do fórum.

Spoiler

This is an automated message! This topic has been moved to the correct area.
Please read the forum rules.

 

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Postado

n testei

 

function onLook(cid, thing, position, lookDistance)
  function getDeathsAndKills(cid, type) -- by vodka
    local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0
    if (query:getID() ~= -1) then
      repeat
        d = d+1
      until not query:next()
      query:free()
    end
    return d
  end
  if isPlayer(thing.uid) and thing.uid ~= cid then
    doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Killed: ["..getDeathsAndKills(thing.uid, "kill").."] Players.\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Died: ["..getDeathsAndKills(thing.uid, "death").."] Times")
  elseif thing.uid == cid then
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, (getPlayerSex(cid) == 0 and "She" or "He").." has Killed: ["..getDeathsAndKills(cid, "kill").."] Players.\n"..(getPlayerSex(cid) == 0 and "She" or "He").." has Died: ["..getDeathsAndKills(cid, "death").."] Times")
  end
  return true
end

 

 

 

 

Editado por Vodkart (veja o histórico de edições)

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Postado
  • Autor
2 horas atrás, Vodkart disse:

n testei

 


function onLook(cid, thing, position, lookDistance)
  function getDeathsAndKills(cid, type) -- by vodka
    local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0
    if (query:getID() ~= -1) then
      repeat
        d = d+1
      until not query:next()
      query:free()
    end
    return d
  end
  if isPlayer(thing.uid) and thing.uid ~= cid then
    doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Killed: ["..getDeathsAndKills(thing.uid, "kill").."] Players.\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Died: ["..getDeathsAndKills(thing.uid, "death").."] Times")
  elseif thing.uid == cid then
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, (getPlayerSex(cid) == 0 and "She" or "He").." has Killed: ["..getDeathsAndKills(cid, "kill").."] Players.\n"..(getPlayerSex(cid) == 0 and "She" or "He").." has Died: ["..getDeathsAndKills(cid, "death").."] Times")
  end
  return true
end

 

 

 

 

ainda ta o mesmo problema.

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.8k

Informação Importante

Confirmação de Termo