Wysłany: 2016-08-13, 09:15
MartinPanZycia
Zielony w LUA
Wiek: 27 Na forum: 3728 dni Posty: 476
Nick w MP: Rodzaje
Piwa : 878
elo znowu mam problem , pastonowi?em zrobi? nowy skrypt i now? lokalizacje markera , na db3 nic nie pokazuje .Nie widze markera .
addEventHandler ( "onClientResourceStart" , root , function()
napad = guiCreateWindow ( 415 , 222 , 543 , 390 , "" , false )
guiWindowSetSizable ( napad , false )
buy = guiCreateButton ( 38 , 108 , 105 , 33 , "Ak47" , false , napad )
end )
local marker = createMarker ( 2295.04639 , - 1686.69812 , 13.62975 , "cylinder" )
addEventHandler ( "onClientMarkerHit" , marker ,
function( hitElement , md )
if hitElement ~= localPlayer then return end
if not md then return end
if source ~= marker then return end
guiSetVisible ( napad , true )
showCursor ( true , false )
end )
function getElementsWithinMarker ( marker )
if ( not isElement ( marker ) or getElementType ( marker ) ~= "marker" ) then
return false
end
local markerColShape = getElementColShape ( marker )
local elements = getElementsWithinColShape ( markerColShape )
return elements
end
function podmien ()
if source == buttak then
if isElementWithinMarker ( localPlayer , marker ) then
dff = engineLoadDFF ( "ak47.dff" , 355 )
engineReplaceModel ( dff , 355 )
txd = engineLoadTXD ( "ak47.txd" )
engineImportTXD ( txd , 355 )
if guiGetVisible ( napad ) == true then
guiSetVisible ( napad , false )
showCursor ( false )
end
end
end
end
addEventHandler ( "onClientGUIClick" , root , podmien )
Wysłany: 2016-08-13, 10:57
ZZiomek
..::LUA::..
Wiek: 26 Na forum: 3867 dni Posty: 134
Nick w MP: NexBoy
Piwa : 5961
local marker = createMarker ( 2295.04639 , - 1686.69812 , 13.62975 , "cylinder" , 1 , 250 , 0 , 0 , 255 )
Wysłany: 2016-08-14, 14:53
MartinPanZycia
Zielony w LUA
Wiek: 27 Na forum: 3728 dni Posty: 476
Nick w MP: Rodzaje
Piwa : 878
helloooo , problem nie zosta? rozwi?zany !
Podpis
Cześć w MTA jestem jako Rodzaje.
Wszystko jest po staremu nie zamierzam stawiać RPG.
Wysłany: 2016-08-14, 15:05
AteX
Wiek: 26 Na forum: 4015 dni Posty: 927
Nick w MP: #AteX
Piwa : 8360
Przetestowa?em kod i marker jest widoczny w podanym miejscu. MAGIA
Wysłany: 2016-08-14, 20:51
MartinPanZycia
Zielony w LUA
Wiek: 27 Na forum: 3728 dni Posty: 476
Nick w MP: Rodzaje
Piwa : 878
ok m ite? dzia?a , thx i dostajesz piwo , zamykam
Podpis
Cześć w MTA jestem jako Rodzaje.
Wszystko jest po staremu nie zamierzam stawiać RPG.
Tagi: nie :: widzę :: markera
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: