Wysłany: 2016-09-11, 14:13
ReZuS
Wiek: 25 Na forum: 3703 dni Posty: 26
Piwa : 1041
Witam . Mam pewien problem bo mam kod i chc? aby pojazd zrespi? si? w interiorze o id 0 , lecz nei wiem jak to zrobi? ;V
local x , y , z = getElementPosition ( el )
local autbus = createVehicle ( 431 , - 2148.87 , - 91.08 , 35.43 + 1 , 359.5 , 0.0 , 268.8 )
setElementInterior ( client , 0 )
setElementDimension ( client , 0 )
Prosz? o pomoc!
Wysłany: 2016-09-11, 14:45
GabWas
Wiek: 24 Na forum: 3881 dni Posty: 289
Nick w MP: GabWas
Piwa : 65
local autbus = createVehicle ( 431 , - 2148.87 , - 91.08 , 35.43 + 1 , 359.5 , 0.0 , 268.8 )
Tyle.
Wysłany: 2016-09-11, 15:21
ReZuS
Wiek: 25 Na forum: 3703 dni Posty: 26
Piwa : 1041
ale posta? i marker rozpoczynaj?cy jest w interiorze o id 3 ...
Wysłany: 2016-09-11, 15:22
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
ReZuS , to w jakim interiorze ma by? ten marker ?
Wysłany: 2016-09-11, 15:24
ReZuS
Wiek: 25 Na forum: 3703 dni Posty: 26
Piwa : 1041
Marker znajduje sie w interiorze 3 a jak wchodze w marker respi pojazd te? w int 3 a chce aby w id 0
Wysłany: 2016-09-11, 15:32
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
ReZuS , local autbus = createVehicle ( 431 , - 2148.87 , - 91.08 , 35.43 + 1 , 359.5 , 0.0 , 268.8 )
setElementInterior ( autbus , 0 )
setElementDimension ( autbus , 0 )
Wysłany: 2016-09-11, 15:51
ReZuS
Wiek: 25 Na forum: 3703 dni Posty: 26
Piwa : 1041
Wysłany: 2016-09-11, 20:42
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
Niemo?liwe, ?e Ci si? to tworzy w int = 3 ;o
Musisz tez wiedziec, ?e jak respisz pojazd w aktualnych x,y,z gracza, a On jest w jakim? interiorze, to w sumie niewiadomo, gdzie s? te x,y,z na mapie gdy int = 0
Podpis
Jedyny kontakt ze mną to PW forum
Kod:
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Wysłany: 2016-09-11, 21:22
ReZuS
Wiek: 25 Na forum: 3703 dni Posty: 26
Piwa : 1041
addEventHandler ( "onMarkerHit" , m1 , function( el , md )
if not md or getElementType ( el ) ~= "player" or getPedOccupiedVehicle ( el ) then return end
if getElementData ( el , "player:job" ) then return end
if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("*Parking zaj?ty czekaj a? wyjedzie!",el) return end
local x , y , z = getElementPosition ( el )
local autbus = createVehicle ( 431 , - 2148.87 , - 91.08 , 35.43 + 1 , 359.5 , 0.0 , 268.8 )
setElementInterior ( autbus , 0 )
setElementDimension ( autbus , 0 )
setElementFrozen ( el , true )
local linia = math . random ( 1 , #linie)
setElementData ( autbus , "vehicle:linia" , linie [ linia ])
setElementData ( autbus , "vehicle_job_owner" , el )
setElementData ( autbus , "vehicle:fuel" , 100000 )
setElementData ( autbus , "vehicle:mileage" , math . random ( 50000 , 80000 ))
setVehicleHandling ( autbus , "maxVelocity" , 80.0 )
setElementData ( el , "player:job" , code )
setTimer ( warpPedIntoVehicle , 2000 , 1 , el , autbus )
setTimer ( setElementFrozen , 2000 , 1 , el , false )
triggerClientEvent ( el , "STARTJobBus" , resourceRoot , autbus , linie [ linia ])
vehs [ el ] = autbus
end )
Tutaj masz cz??? kodu i respi mnie w busie , i jestem w interiorze 3
[ Dodano : 2016-09-12, 07:10 ]
Sam sobie poradzi?em . Z autbus na el i dzia?a (Da??m sobie Fade Camere jeszcze i jest picu? glancu? )
Tagi: create :: vehicle :: interior
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: