Patrix100
Amator LUA.
Wiek: 26 Na forum: 3887 dni Posty: 182
Nick w MP: .:Patrix:.
Piwa : 952
Witam, mam taki kod:
Kod: wejscie1 = createMarker ( -1605.47, 711.93, 13.87, "arrow", 1.2, 255, 255, 0, 255 ) --tworzymy wejscie
wyjscie1 = createMarker ( -230.58, 1172.47, 57.26, "arrow", 1.2, 255, 255, 0, 255 ) --tworzymy wyjscie
function onstart()
setElementInterior ( wyjscie0, 1 ) --interior, w ktorym jest wyjscie
end
addEventHandler ( "onResourceStart", getRootElement(), onstart )
function warptopoli( hitElement, matchingDimension )
if getElementType(hitElement) == "player" then
if not isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement, -230.58, 1172.47, 57.26) --kiedy wejdziemy w marker wejscia, ma nas teleportowac do miejsca, ktore jest tutaj podane
setElementInterior ( hitElement, 1 ) --te miejsce jest w interiorze 1 (w tym przypadku)
end
end
end
addEventHandler( "onMarkerHit", wejscie1, warptopoli)
function warptokgp(source)
setElementInterior ( source, 1 ) --te miejsce jest w interiorze 1 (w tym przypadku)
setElementPosition ( source, -1605.47, 711.93, 13.87) --kiedy wejdziemy w marker wyjscia, ma nas teleportowac do miejsca, ktore jest tutaj podane
e
addEventHandler( "onMarkerHit", wyjscie0, warptokgp)
I problem jest w tym ?e jak ju? tepne si? z normalnej mapy na interior 1 to w interior 1 nie ma blipu na tepniecie si? na normaln? mape. Pomo?e kto? ;/