Wysłany: 2017-01-19, 17:34
polaczkos
Wiek: 25 Na forum: 4085 dni Posty: 168
Nick w MP: polaczkos
Piwa : 3
jak zrobic by w checkpoint na prawo jazdy by?a scza?ka pokazuj?ca kierunek???
Wysłany: 2017-01-19, 17:48
_Haze
Peace Yo!
Wiek: 24 Na forum: 4185 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
polaczkos , 1argument to marker a reszta to x,y,z
Wysłany: 2017-01-20, 16:05
polaczkos
Wiek: 25 Na forum: 4085 dni Posty: 168
Nick w MP: polaczkos
Piwa : 3
ale jak to zrobi? by by?o z strza?k? ?
Wysłany: 2017-01-20, 16:25
_Haze
Peace Yo!
Wiek: 24 Na forum: 4185 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
polaczkos , robisz marker i tak jak ci da?em funkcje podajesz marker i x y z gdzie ma wskazywa? i juz strzalka jest
Wysłany: 2017-01-22, 15:46
polaczkos
Wiek: 25 Na forum: 4085 dni Posty: 168
Nick w MP: polaczkos
Piwa : 3
function stworzNowyCheckpoint ( source )
if isElement ( punkt ) then
removeEventHandler ( "onClientMarkerHit" , punkt , onCheckpointHit )
destroyElement ( punkt )
destroyElement ( blip )
end
punkt = createMarker ( trasa [ checkpoint ][ 1 ], trasa [ checkpoint ][ 2 ], trasa [ checkpoint ][ 3 ] + 38 , "checkpoint" , 5 , 255 , 0 , 0 , 150 )
blip = createBlip ( trasa [ checkpoint ][ 1 ], trasa [ checkpoint ][ 2 ], trasa [ checkpoint ][ 3 ], trasa [ checkpoint ][ 4 ], trasa [ checkpoint ][ 5 ], 41 , 2 , 255 , 0 , 0 , 255 , 0 , 350 )
addEventHandler ( "onClientMarkerHit" , punkt , onCheckpointHit )
end
function usunOstatniCheckpoint ()
if isElement ( punkt ) then
removeEventHandler ( "onClientMarkerHit" , punkt , onCheckpointHit )
destroyElement ( punkt )
destroyElement ( blip )
end
end
function onCheckpointHit ( hitElement )
if localPlayer == hitElement then
checkpoint = checkpoint + 1
if checkpoint > #trasa then
triggerServerEvent ( "egzaminZdany" , localPlayer )
zakonczEgzamin ()
else
stworzNowyCheckpoint ()
end
end
end
function onVehicleCollision ( element , loss )
if loss > 50 then
triggerServerEvent ( "egzaminOblany" , localPlayer )
zakonczEgzamin ()
end
end
function zakonczEgzamin ()
removeEventHandler ( "onClientVehicleCollision" , SAVEVEH , onVehicleCollision )
usunOstatniCheckpoint ()
checkpoint = false
SAVEVEH = false
end
i jak to zrobi? bo cie nie rozumiem
Wysłany: 2017-01-22, 16:12
_Haze
Peace Yo!
Wiek: 24 Na forum: 4185 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
polaczkos , setMarkerTarget ( punkt , trasa [ checkpoint + 1 ][ 1 ], trasa [ checkpoint + 1 ][ 2 ], trasa [ checkpoint + 1 ][ 3 ] + 38 ) dajesz pod tworzeniem markera punkt
Wysłany: 2017-01-22, 22:46
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
maciek3286 , Jest to client side. Ka?dy go ma o ile wejdzie na odpowiedni serwer.
Podpis
"amited" napisał/a :
Tagi: prawko
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: