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
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 / 1025 , sy * 280 / 769 , sx * 130 / 1025 , sy * 50 / 767 ) then
addEventHandler ( "onClientRender" , root , Info )
end
if isMouseInPosition ( sx * 220 / 1025 , sy * 190 / 769 , sx * 130 / 1025 , sy * 50 / 767 ) then
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 / 1025 , sy * 575 / 769 , sx * 130 / 1025 , sy * 50 / 767 ) then
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
Wysłany: 2016-12-06, 20:57
zabijaka2000
Wiek: 26 Na forum: 4983 dni Posty: 147
Nick w MP: aleks556
Piwa : 13
Nie wiem czy dobrze zrozumia?em.
addEventHandler ( "onClientClick" , getRootElement (), function( btn , state )
if( isElementWithinMarker ( localPlayer , TUTAJ_DAJESZ_TEN_MARKER ) == false ) then return end
if btn == "left" and state == "down" then
if isMouseInPosition ( sx * 220 / 1025 , sy * 280 / 769 , sx * 130 / 1025 , sy * 50 / 767 ) then
addEventHandler ( "onClientRender" , root , Info )
end
if isMouseInPosition ( sx * 220 / 1025 , sy * 190 / 769 , sx * 130 / 1025 , sy * 50 / 767 ) then
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 / 1025 , sy * 575 / 769 , sx * 130 / 1025 , sy * 50 / 767 ) then
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
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
Dobrze zrozumia?e?, dzi?ki Do lock
Tagi: wyjście :: marker :: brak :: dx?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: