Nexembers
Wiek: 33 Na forum: 4343 dni Posty: 27
Nick w MP: Nexembers
Piwa : 17
Witam.
Prosz? o wyja?nienie, i w razie konieczno?ci mojej nierozumno?ci (y), dopisa?, jak to zrobi?.
Mam dany kod:
----------------------------------------------------
function psp1 ( model , x , y , z , rx , ry , rz , numberplate , direction , variant1 , variant2 )
if model and x and y and z and rx and ry and rz then
local psp = createVehicle ( model , x , y , z , rx , ry , rz , numberplate , direction , variant1 , variant2 )
removeVehicleSirens ( psp )
addVehicleSirens ( psp , 6 , 2 , true , false , false , true )
setVehicleSirens ( psp , 1 , - 0.7 , 3.3 , 1.5 , 255 , 0 , 0 , 191.3 , 191.3 )
setVehicleSirens ( psp , 2 , 0.7 , - 3.1 , 1.4 , 255 , 0 , 0 , 255 , 255 )
setVehicleSirens ( psp , 3 , - 1 , 0.8 , - 0.4 , 0 , 76.5 , 255 , 255 , 255 )
setVehicleSirens ( psp , 4 , 1 , 0.8 , - 0.4 , 0 , 76.5 , 255 , 255 , 255 )
setVehicleSirens ( psp , 5 , 0.7 , 3.3 , 1.5 , 0 , 76.5 , 255 , 255 , 255 )
setVehicleSirens ( psp , 6 , - 0.7 , - 3.1 , 1.4 , 0 , 76.5 , 255 , 255 , 255 )
setVehicleColor ( psp , 155 , 0 , 0 , 245 , 245 , 245 )
end
end
function psp2 ()
psp1 ( 407 , - 2800 , - 444 , 12 , 0 , 0 , 270 , "PSP TEST" , false , 0 , 0 )
end
addEventHandler ( 'onResourceStart' , getResourceRootElement ( getThisResource ()), psp2 )
--------------------------
Prosz? mi powiedzie?, jak zrobi?, ?e podczas gdy odjedziemy gdzie? pojazdem, nast?pnie z niego wysi?dziemy i przez nie wsiadanie do niego przez np. kolejne 30 minut, ma on po np. 30 minutach wr?ci? na pierwotne miejsce (spawn pojazdu)? Chodzi mi o "respawnVehicles", ale przy tym skrypcie..
Je?eli jest to mo?liwe, przekszta??cie mi ten kod, poniewa? na wszystkie sposoby ju? pr?bowa?em, ale nie dziala...
Za pomoc oczywi?cie stawiam PIWO.
Ostatnio zmieniony przez Nexembers 2014-12-05, 19:57, w całości zmieniany 1 raz