Wysłany: 2020-05-21, 01:14
Matikmontana
Modern Stories
Wiek: 22 Na forum: 2473 dni Posty: 423
Nick w MP: Mazeusz*
Piwa : 1015
Dobry. Chcia?bym zrobi? aby pojazd kt?ry przekroczy dany przebieg nie m?g? odpali? zrobi?em tak ↓ , ale auto nadal odpala wy?wietla si? tylko powiadomienie. W db brak b??d?w.
addEvent ( "switchENGINE" , true )
addEventHandler ( "switchENGINE" , resourceRoot , function( veh )
setVehicleEngineState ( veh , not getVehicleEngineState ( veh ))
local veh = getPedOccupiedVehicle ( client )
if veh then
local switchENGINE = getVehicleEngineState ( veh )
if switchENGINE == true then
if type ( getElementData ( veh , 'vehicle:mileage' )) == "string" then
outputDebugString ( getPlayerName ( client ))
end
if getElementData ( veh , 'vehicle:mileage' ) and getElementData ( veh , 'vehicle:mileage' )> 98000 then
outputChatBox ( '* Nie mozna odpalic silnik, zbyt duzy przebieg...' , client )
return
end
end
if not tick [ client ] or tick [ client ] and ( getTickCount () - tick [ client ]) > 3000 then
tick [ client ] = getTickCount ()
elseif tick [ client ] and ( getTickCount () - tick [ client ]) < 3000 then
return
end
local text = getVehicleEngineState ( veh ) ~= true and "gasi" or "odpala"
end )
Wysłany: 2020-05-21, 08:06
Wilq
Wiek: 24 Na forum: 4429 dni Posty: 3410
Piwa : 739
Tam gdzie masz powiadomienie wy??czasz silnik za pomoc?
Więcej szczegółów
Wystawiono 1 piw(a):Matikmontana
Wysłany: 2020-05-21, 22:49
Matikmontana
Modern Stories
Wiek: 22 Na forum: 2473 dni Posty: 423
Nick w MP: Mazeusz*
Piwa : 1015
Tagi: przebieg :: interakcji
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: