Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: destoryelement
1. DestoryElement
Witam pisa?em ju? temat ale nie uzyska?em mojej odpowiedzi na ten problem ot?? polega on na tym ?e po wje?dzie pojazdem w ostatni marker nie usuwa si? on kod:


function WMarker(hemd)
if 
not md then return end
if he ~= localPlayer then return end
if not getElementData(source"Egzamin"then return end
if not getPedOccupiedVehicle(localPlayerthen return end
if postep == #tablica then
if getElementType(he) == "player" then
local auto 
getPedOccupiedVehicle(he)
destroyElement(auto)
end
destroyElement
(source)
return 
end
destroyElement
(source)
postep postep 1
local x
,y,tablica[postep][1], tablica[postep][2], tablica[postep][3]
local marker createMarker(x,y,z"checkpoint"325500source)
setElementData(marker"Egzamin"true)
end