Postado Janeiro 31, 2017 8 anos 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 Quem puder ajudar obg
Postado Janeiro 31, 2017 8 anos 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.
Postado Janeiro 31, 2017 8 anos 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 Janeiro 31, 2017 8 anos por Vodkart (veja o histórico de edições)
Postado Janeiro 31, 2017 8 anos 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.