Wysłany: 2013-01-17, 16:25
Bilguun
Wiek: 26 Na forum: 5071 dni Posty: 133
Nick w MP: Bilguun
Piwa : 4
Witam mam skrypt na teleporty z innego serwera i co? nie dzia?a. Mo?ecie powiedziec gdzie co wpisac ? Chce zrobic nowy teleport i nie wiem gdzie wpisac koordynaty. Prosz? o napisanie komentarzy (--) przy tym co mam tam wpisac
Kod: marker2 = createMarker(609.169921875, -74.11328125, 997.9921875, "arrow", 0, 20, 2, 2)
setElementInterior ( marker2, 2)
setElementDimension ( marker2, 243 )
function teleport(hitElement, dim)
if getElementType(hitElement)=="player" and source == marker2 then
local vehicle = getPedOccupiedVehicle(hitElement)
if vehicle then
local seat = getPedOccupiedVehicleSeat(hitElement)
setElementDimension ( hitElement, 0 )
setElementDimension ( vehicle, 0 )
setElementInterior ( hitElement, 0, 1272.46484375, -1811.8994140625, 13.385084152222 )
setElementInterior ( vehicle, 0, 1272.46484375, -1811.8994140625, 13.385084152222 )
setElementPosition(hitElement, 1272.46484375, -1811.8994140625, 13.385084152222, 0)
setElementPosition(vehicle, 1272.46484375, -1811.8994140625, 13.385084152222, 243, 0)
warpPedIntoVehicle(hitElement, vehicle, seat)
end
end
end
addEventHandler("onMarkerHit", getRootElement(), teleport)
Wysłany: 2013-01-17, 17:37
pidbulxd
Wiek: 28 Na forum: 5230 dni Posty: 135
Nick w MP: Word
Piwa : 540
Bilguun , jak glosi polityka tego forum, nie pomagamy przy nie swoich skryptach.
Radze ci zrobi? to samemu, to nauczysz si? jak. Poszukaj wytlumaczen funkcji na wiki.
Pomoge ci zacz??:
markertele = createMarker ( x , y , z , "arrow" , ko , lo , r , alpha )
function telpnij ( hitElement )
if getElementType ( hitElement )== "player" and source == markertele then
setElementPositon ( hitElement , x , y , z )
setElementInterior ( hitElement , id )
setElementDimension ( hitElement , dimension )
outputChatBox ( "Tre?? Wiadomo??i" , hitElement , ko , lo , r )
end
end
addEventHandler ( "onMarkerHit" , getRootElement (), tepnij )
Wysłany: 2013-01-17, 18:31
Bilguun
Wiek: 26 Na forum: 5071 dni Posty: 133
Nick w MP: Bilguun
Piwa : 4
Ehh, teraz mi pisz?:
Kod: ERROR: Teleporty\tel.lua:7: attempt to call global 'setElementPositon' (a nil value)
Wysłany: 2013-01-17, 18:56
pidbulxd
Wiek: 28 Na forum: 5230 dni Posty: 135
Nick w MP: Word
Piwa : 540
Zamie?
na
Przepraszam, m?j b??d.
Tagi: teleporty
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: