function twojafunkcja(theVehicle)
if isVehicleDamageProof(theVehicle) == true then
outputChatBox("Ten pojazd nie jest podatny teraz na uderzenia", source)
else
outputChatBox("Ten pojazd jest podatny na uderzenia", source)
end
end
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), twojafunkcja )
function onVehicleEnter(veh, seat)
if seat == 0 then
setVehicleDamageProof(veh, true)
end
end
addEventHandler("onPlayerVehicleEnter", getRootElement(), onVehicleEnter)
function onVehicleExit(veh, seat)
if seat == 0 then
setVehicleDamageProof(veh, false)
end
end
addEventHandler("onPlayerVehicleExit", getRootElement(), onVehicleExit)
Dzia?a na 100 procent, testowa?em. Kod musi by? po stronie servera. Skrypt w momencie wej?cia do pojazdu jako kierowca ustawi mu niezniszczalno?? natomiast przy wysiadaniu pojazd stanie si? zniszczalny
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach