Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2021-04-04, 23:34


NoNamik







Wiek: 35
Na forum: 2186 dni
Posty: 289
Nick w MP: JestemNoNamem

Piwa: 374

Respekt: 60

Witam posiadam scoreboard lecz na nim jak ktos ma element date p:inv to widac go na scorebordzie a chce by nie bylo widac kod
https://pastebin.com/Ed3kq2eA

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-04-05, 00:57


Matikmontana

Modern Stories






Wiek: 22
Na forum: 2473 dni
Posty: 423
Nick w MP: Mazeusz*

Piwa: 1015

Respekt: 130
Respekt: 130

Ostrzeżeń: 60%
W rysowaniu graczy dodaj

if not getElementData(gracz"p:inv"then

--[[ KOD ]] 

end



Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-04-05, 16:22


NoNamik







Wiek: 35
Na forum: 2186 dni
Posty: 289
Nick w MP: JestemNoNamem

Piwa: 374

Respekt: 60

Matikmontana, tylko wlasnie nie wiem gdzie to dac

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-04-05, 17:33


Matikmontana

Modern Stories






Wiek: 22
Na forum: 2473 dni
Posty: 423
Nick w MP: Mazeusz*

Piwa: 1015

Respekt: 130
Respekt: 130

Ostrzeżeń: 60%
Spr?buj tutaj

function scoreboard:LoadPlayers()
  self["players"] = {}
 
  for i,v in pairs(getElementsByType("player")) do
    if((self.page == and getElementData(v"player:premium")) or self.page == 1)then
      if string.len(self["edit_text"]) > 0 then
        if(string.find(string.gsub(getPlayerName(v):lower(),"#%x%x%x%x%x%x"""), self["edit_text"]:lower(), 1true) or string.find(getElementData(v"user:id"), self["edit_text"], 1true))then
          table.insert(self["players"], {
            id=(getElementData(v"id") or 0),
            name=(getElementData(v"player:sid") and getPlayerName(v) or "Niezalogowany"),
            organization=(getElementData(v"player:organization") or "brak"),
            faction=(getElementData(v"player:duty") or "brak"), 
            ping=getPlayerPing(v),
            hex=self:GetPlayerHEX(v),
            rp=(getElementData(v"player:srp") or "0"),
          })
        end
      else
        table.insert(self["players"], {
          id=(getElementData(v"id") or 0),
          name=(getElementData(v"player:sid") and getPlayerName(v) or "Niezalogowany"),
          organization=(getElementData(v"player:organization") or "brak"),
          faction=(getElementData(v"player:duty") or "brak"), 
          ping=getPlayerPing(v),
          hex=self:GetPlayerHEX(v),
          rp=(getElementData(v"player:srp") or "0"),
 
        })    
      end;
    end;
  end;
end;


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
NoNamik
Wysłany: 2021-04-05, 18:32


NoNamik







Wiek: 35
Na forum: 2186 dni
Posty: 289
Nick w MP: JestemNoNamem

Piwa: 374

Respekt: 60

Matikmontana,
Kod:

function scoreboard:LoadPlayers()
self["players"] = {}

for i,v in pairs(getElementsByType("player")) do
if((self.page == 2 and getElementData(v, "player:premium")) or self.page == 1)then
if string.len(self["edit_text"]) > 0 then

if(string.find(string.gsub(getPlayerName(v):lower(),"#%x%x%x%x%x%x", ""), self["edit_text"]:lower(), 1, true) or string.find(getElementData(v, "user:id"), self["edit_text"], 1, true))then
if not getElementData(v, "p:inv") then
table.insert(self["players"], {

id=(getElementData(v, "id") or 0),
name=(getElementData(v, "player:sid") and getPlayerName(v) or "Niezalogowany"),
organization=(getElementData(v, "player:organization") or "brak"),
faction=(getElementData(v, "player:faction") or "brak"),
ping=getPlayerPing(v),
hex=self:GetPlayerHEX(v),
rp=(getElementData(v, "player:srp") or "0"),
})
end
end

else
if not getElementData(v, "p:inv") then
table.insert(self["players"], {
id=(getElementData(v, "id") or 0),
name=(getElementData(v, "player:sid") and getPlayerName(v) or "Niezalogowany"),
organization=(getElementData(v, "player:organization") or "brak"),
faction=(getElementData(v, "player:faction") or "brak"),
ping=getPlayerPing(v),
hex=self:GetPlayerHEX(v),
rp=(getElementData(v, "player:srp") or "0"),

})
end;
end;
end;
end;


zrobilem tak i dziala daje piwko za pomoc
ZAMYKAM

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-04-05, 19:53


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

[clo]

Postaw piwo autorowi tego posta
 

 
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » vanish scorebaord Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku