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

Wysłany: 2016-12-06, 20:49


Kibol1908.

Good Boy






Wiek: 27
Na forum: 4111 dni
Posty: 69
Nick w MP: Hello_Boy

Piwa: 99

Respekt: 65,3

Ostrzeżeń: 60%
Witam, mam skrypt na prac?, gdzie panel wyboru jest w formie DX. Mam ustawione tam buttony zrobione za pomoc? DX i mam te?, ?e je?eli kliknie w dan? pozycj? (ta pozycja to tam gdzie s? buttony) to tworzy mu tam dan? rzecz i wgl, i ten DX draw pokazuje si? tylko w markerze, ale jak gracz wyjdzie z markera i wci?nie na t? pozycj? to robi to co jakby by? w tym markerze i niby "s?" te buttony, kt?rych nie wida?, a nie b?d?c w markerze nie powinno mu tworzy? pojazdu itp, chodzi mi o to

 
addEventHandler("onClientClick",  getRootElement(), function(btn,state)
    if btn=="left" and state=="down" then
        if isMouseInPosition(sx*220/1025sy*280/769sx*130/1025sy*50/767then
        addEventHandler("onClientRender",root,Info)
        end
        if isMouseInPosition(sx*220/1025sy*190/769sx*130/1025sy*50/767then
    triggerServerEvent("nadaj",resourceRoot,nadaj)
        removeEventHandler("onClientRender",root,tlo)
        removeEventHandler("onClientRender",root,przyciski)
        removeEventHandler("onClientRender",root,texty)
        removeEventHandler("onClientRender",root,Info)
        showChat(true)
        showCursor(false)
        removeEventHandler("onClientCursorMove",getRootElement(),pokaz)
        end
        if isMouseInPosition(sx*655/1025sy*575/769sx*130/1025sy*50/767then
        removeEventHandler("onClientRender",root,tlo)
        removeEventHandler("onClientRender",root,przyciski)
        removeEventHandler("onClientRender",root,texty)
        removeEventHandler("onClientRender",root,Info)
        showChat(true)
        showCursor(false)
        removeEventHandler("onClientCursorMove",getRootElement(),pokaz)
    end
    end
end)
 


I tutaj jest, ?e je?eli kliknie w pozycj? x,y na monitorze (za pomoc? kursora) to zrobi mu tam co?, a ja chce, ?e jak wyjdzie z markeru to jak kliknie w t? pozycj? to nie robi?o si? to, kto? co? ogarnia to co napisa?em?XD

Licze na pomoc, stawiam :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-12-06, 20:57


zabijaka2000







Wiek: 26
Na forum: 4983 dni
Posty: 147
Nick w MP: aleks556

Piwa: 13

Respekt: 80

Ostrzeżeń: 20%
Nie wiem czy dobrze zrozumia?em.

addEventHandler("onClientClick",  getRootElement(), function(btn,state)
    if(isElementWithinMarker(localPlayerTUTAJ_DAJESZ_TEN_MARKER) == falsethen return end
    if btn=="left" and state=="down" then
        if isMouseInPosition(sx*220/1025sy*280/769sx*130/1025sy*50/767then
        addEventHandler("onClientRender",root,Info)
        end
        if isMouseInPosition(sx*220/1025sy*190/769sx*130/1025sy*50/767then
    triggerServerEvent("nadaj",resourceRoot,nadaj)
        removeEventHandler("onClientRender",root,tlo)
        removeEventHandler("onClientRender",root,przyciski)
        removeEventHandler("onClientRender",root,texty)
        removeEventHandler("onClientRender",root,Info)
        showChat(true)
        showCursor(false)
        removeEventHandler("onClientCursorMove",getRootElement(),pokaz)
        end
        if isMouseInPosition(sx*655/1025sy*575/769sx*130/1025sy*50/767then
        removeEventHandler("onClientRender",root,tlo)
        removeEventHandler("onClientRender",root,przyciski)
        removeEventHandler("onClientRender",root,texty)
        removeEventHandler("onClientRender",root,Info)
        showChat(true)
        showCursor(false)
        removeEventHandler("onClientCursorMove",getRootElement(),pokaz)
    end
    end
end)


Podpis
San Fierro Stories Roleplay
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-12-06, 21:12


Kibol1908.

Good Boy






Wiek: 27
Na forum: 4111 dni
Posty: 69
Nick w MP: Hello_Boy

Piwa: 99

Respekt: 65,3

Ostrzeżeń: 60%
Dobrze zrozumia?e?, dzi?ki :) Do lock

Postaw piwo autorowi tego posta
 

 
Tagi: wyjście :: marker :: brak :: dx?
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