Wysłany: 2019-01-27, 13:02
Pyrek24
Wiek: 25 Na forum: 3438 dni Posty: 546
Nick w MP: Pyrek
Piwa : 10
Ogarnie kto? mi co? takiego, ?e nie jak lekko walniemy w s?upek to oblewamy egzamin tylko np jak pojazd ma 800/1000 hp. Daje piwko oraz Respekt
addEventHandler ( "onVehicleDamage" , resourceRoot , function( loss )
local kierowca = getVehicleController ( source )
if not kierowca then return end
if not getElementData ( source , "vehicle:lic" ) then return end
destroyElement ( source )
outputChatBox ( "* Uszkodzi?e?(a?) pojazd, nie zdajesz egzaminu!" , kierowca , 255 , 0 , 0 )
triggerClientEvent ( kierowca , "license:finish" , resourceRoot , true )
end )
Wysłany: 2019-01-27, 13:10
THEGizmo
Modeler/Uczeń Lua
Wiek: 27 Na forum: 4141 dni Posty: 255
Nick w MP: THEGizmo
Piwa : 3072
Pyrek24 , addEventHandler ( "onVehicleDamage" , resourceRoot , function( loss )
if getElementHealth ( source ) < 800 then
local kierowca = getVehicleController ( source )
if not kierowca then return end
if not getElementData ( source , "vehicle:lic" ) then return end
destroyElement ( source )
outputChatBox ( "* Uszkodzi?e?(a?) pojazd, nie zdajesz egzaminu!" , kierowca , 255 , 0 , 0 )
triggerClientEvent ( kierowca , "license:finish" , resourceRoot , true )
end
end )
Sprawd? czy dzia?a
Podpis
Modeler Corporation Sp. Z.O.O
Więcej szczegółów
Wystawiono 1 piw(a):Pyrek24
Wysłany: 2019-01-27, 13:17
Pyrek24
Wiek: 25 Na forum: 3438 dni Posty: 546
Nick w MP: Pyrek
Piwa : 10
Tak dzia?a ! Dzi?kuje a dorobisz mi jeszcze, ?e jak si? zniszczy auto to tepa na jakie? kordy
Wysłany: 2019-01-27, 13:23
THEGizmo
Modeler/Uczeń Lua
Wiek: 27 Na forum: 4141 dni Posty: 255
Nick w MP: THEGizmo
Piwa : 3072
Pyrek24 , addEventHandler ( "onVehicleDamage" , resourceRoot , function( loss )
if getElementHealth ( source ) < 800 then
local kierowca = getVehicleController ( source )
if not kierowca then return end
if not getElementData ( source , "vehicle:lic" ) then return end
destroyElement ( source )
setElementPosition ( kierowca , 0 , 0 , 6 )
outputChatBox ( "* Uszkodzi?e?(a?) pojazd, nie zdajesz egzaminu!" , kierowca , 255 , 0 , 0 )
triggerClientEvent ( kierowca , "license:finish" , resourceRoot , true )
end
end ) nie wiem b?dzie dzia?a? poprawnie ale sprawd?
Podpis
Modeler Corporation Sp. Z.O.O
Ostatnio zmieniony przez THEGizmo 2019-01-27, 13:26, w całości zmieniany 2 razy
Wysłany: 2019-01-27, 13:23
Wilq
Wiek: 24 Na forum: 4429 dni Posty: 3410
Piwa : 739
addEventHandler ( "onVehicleDamage" , resourceRoot , function( loss )
if getElementHealth ( source ) < 800 then
local kierowca = getVehicleController ( source )
if not kierowca then return end
if not getElementData ( source , "vehicle:lic" ) then return end
destroyElement ( source )
outputChatBox ( "* Uszkodzi?e?(a?) pojazd, nie zdajesz egzaminu!" , kierowca , 255 , 0 , 0 )
triggerClientEvent ( kierowca , "license:finish" , resourceRoot , true )
setElementPosition ( kierowca , pozycjaX , pozycjaY , pozycjaZ )
end
end )
Podmie? pozycjaX, Y, Z na koordynaty.
Więcej szczegółów
Wystawiono 1 piw(a):Pyrek24
Wysłany: 2019-01-27, 14:32
Pyrek24
Wiek: 25 Na forum: 3438 dni Posty: 546
Nick w MP: Pyrek
Piwa : 10
Dzi?kuje temat do zamkni?cia.
Tagi: zniszczenie :: pojazdu
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: