Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: sprzątanie
1. sprzątanie pojazdów
Heja, da sie to jako? inaczej zrobi?? Zdaje sobie sprawe ze ten timer to s?abe rozwi?zanie, do tego skrypt dzia?a w zale?no?ci od humoru, raz auto usunie, a raz nie xD.

function deleteorRespawn()
    if 
getElementData(pojazd, "spawnowany") == true then
    setTimer
(destroyElement, 450000, pojazd)
else
    
setTimer(respawnVehicle, 450000, pojazd)
end
end
addEventHandler
('onPlayerVehicleExit', getRootElement(), deleteorRespawn)

function 
eksPLOOZJA()
    if 
getElementData(pojazd, "spawnowany") == true then
    setTimer
(destroyElement, 15000, 1, pojazd)
else
    
setTimer(respawnVehicle, 15000, 1, pojazd)
end
end
addEventHandler
('onVehicleExplode', getRootElement(), eksPLOOZJA)


pojazd, poniewaz

pojazd 
= createVehicle (modele, x+0.2, y+0.2, z-0.5, rot)