جرب
Markers = {
[1] = { 2306.02466, 2445.57080, 10.8203 },
}
addEventHandler ( "onResourceStart", resourceRoot,
function ( )
for _, TheMarkers in ipairs ( Markers ) do
TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 )
end
end
)
addEventHandler( "onMarkerHit", TheMarker,
function (player)
if (getElementType(player) == ("player")) then
setPedArmor (player, 100)
setElementHealth (player,200)
end
end
)
مشكور يا داوي , بس كودي شغال ا