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

Wysłany: 2019-08-13, 14:21


SebeKK







Wiek: 35
Na forum: 2637 dni
Posty: 3
Nick w MP: SebeKK



Respekt: 60

Siemka, mam problem poniewa? nie wiem jak zrobi? ucho do mta jestem w tym ciemny wiec jak by mi ktos pom?g? to by by?o spoko.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-08-13, 21:08


Wilq







Wiek: 24
Na forum: 4570 dni
Posty: 3409

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

Co to jest ucho?
Chcesz zrobi? model narz?du s?uchu czy co?
Wyja?niaj zawsze dosadnie to, w czym potrzebujesz pomocy.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-08-14, 11:43


SebeKK







Wiek: 35
Na forum: 2637 dni
Posty: 3
Nick w MP: SebeKK



Respekt: 60

"Wilq" napisał/a:

Co to jest ucho?
Chcesz zrobi? model narz?du s?uchu czy co?
Wyja?niaj zawsze dosadnie to, w czym potrzebujesz pomocy.

Logi serwerowe? Tak zwane ucho

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-08-14, 12:54


Wilq







Wiek: 24
Na forum: 4570 dni
Posty: 3409

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

W jaki spos?b chcesz zapisywa? te logi serwerowe?
Chcesz je wy?wietla? na czacie, zapisywa? do pliku, do bazy danych?

Napisa?em przecie? wcze?niej:
Cytat:

Wyja?niaj zawsze dosadnie to, w czym potrzebujesz pomocy.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-08-15, 13:36


SebeKK







Wiek: 35
Na forum: 2637 dni
Posty: 3
Nick w MP: SebeKK



Respekt: 60

"Wilq" napisał/a:

W jaki spos?b chcesz zapisywa? te logi serwerowe?
Chcesz je wy?wietla? na czacie, zapisywa? do pliku, do bazy danych?

Napisa?em przecie? wcze?niej:
Cytat:

Wyja?niaj zawsze dosadnie to, w czym potrzebujesz pomocy.



po lewej stronie ekranu tak jak po prawej masz sciane rapsow tak po prawej logi serwerowe

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-08-15, 14:37


koko7864

PSEUDO SKRYPTER






Wiek: 22
Na forum: 3371 dni
Posty: 41
Nick w MP: Mar0x

Piwa: 1

Respekt: 50

Wgraj to pod logami serwerowymi c_utility.lua odrazu z schowanie raportow

function raporcik2()
    if not getElementData(localPlayer,"logi") or not getElementData( localPlayer, "player:ucho" ) then return end
    local tt={}
    reportView=getElementData(scianatekstu,"sciana:text")
    for i,c in ipairs(reportView) do
        if c[1] then table.insert(tt,c[1]) end
    end
    concat=table.concat(tt, "\n")
    dxDrawText(concat, sx*(10)/1024, sy*(279)/768, sx*(326)/1024, sy*(497)/768, white, 1.00, "default-bold", "left", "top", false, false,false,true)
end
addEventHandler("onClientRender", root, raporcik2)

addCommandHandler( "ucho", function( ) 
    if getElementData( localPlayer, "player:level" ) >= 1 then
        if getElementData( localPlayer, "logi" ) == false then
            setElementData( localPlayer, "logi", true );
            setElementData( localPlayer, "player:ucho", true );
            triggerEvent( "onClientAddNotification", localPlayer, "Pomy?lnie w??czy?e? logi serwerowe.", "success" );
        elseif getElementData( localPlayer, "logi" ) == true then
            setElementData( localPlayer, "logi", false );
            setElementData( localPlayer, "player:ucho", false );
            triggerEvent( "onClientAddNotification", localPlayer, "Pomy?lnie wy??czy?e? logi serwerowe.", "success" );
        end
    end
end);

addCommandHandler( "raporty", function(  )
    if getElementData( localPlayer, "player:level" ) >= 1 then
        if getElementData( localPlayer, "raporciki" ) then
            setElementData( localPlayer, "raporciki", false );
            triggerEvent( "onClientAddNotification", localPlayer, "Pomy?lnie w??czy?e? ?cian? raport?w.", "success" );
        elseif not getElementData( localPlayer, "raporciki" ) then
            setElementData( localPlayer, "raporciki", true );
            triggerEvent( "onClientAddNotification", localPlayer, "Pomy?lnie wy??czy?e? ?ciane raport?w.", "success" );
        end
    end
end);

addEvent("admin:rendering", true)
addEventHandler("admin:rendering", root, function(text)
    xtext=text
    if isEventHandlerAdded("onClientRender",root,renderingInfo) then
        removeEventHandler ( "onClientRender", root, renderingInfo)
    end
    addEventHandler("onClientRender", root, renderingInfo)
    setTimer(function()
        removeEventHandler("onClientRender", root, renderingInfo)
    end, 8000, 1)
end)

addEvent("admin:addText", true)
addEventHandler("admin:addText", root, function(text)
    table.insert(gameView, text)    
    if #gameView > 10 then
        table.remove(gameView, 2)
    end
end)
function raporcik2()
    if not getElementData(localPlayer,"player:ucho") then return end
    local tt={}
    reportView=getElementData(scianatekstu,"sciana:text")
    for i,c in ipairs(reportView) do
        if c[1] then table.insert(tt,c[1]) end
    end
    concat=table.concat(tt, "\n")
    dxDrawText(concat, sx*(10)/1024, sy*(279)/768, sx*(326)/1024, sy*(497)/768, white, 1.00, "default-bold", "left", "top", false, false,false,true)
end
addEventHandler("onClientRender", root, raporcik2)

addEvent("admin:rendering2", true)
addEventHandler("admin:rendering2", root, function(text)
    xtext=text
    if isEventHandlerAdded("onClientRender",root,renderingInfo2) then
        removeEventHandler ( "onClientRender", root, renderingInfo2)
    end
    addEventHandler("onClientRender", root, renderingInfo2)
    setTimer(function()
        removeEventHandler("onClientRender", root, renderingInfo2)
    end, 8000, 1)
end)


Jak by by?o co? nie tak to prosze podes?a? ca?y kod

Postaw piwo autorowi tego posta
 

 
Tagi: jak :: zrobic :: ucho
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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