Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2016-01-16, 22:43


sebik2303

Mapper :)






Wiek: 25
Na forum: 4160 dni
Posty: 298
Nick w MP: sebik2303

Piwa: 899

Respekt: 55,3

Witam, mam kod na syreny co kiedy? pyta?em si?, lecz nie chc? pod ID pojazdu tylko na
 local pojazd <-- Na to :) = createVehicle(v[1], v[2], v[3], v[4], v[5], v[6], v[7])



function add(thePlayerseatjacked )
    if ( getElementModel source ) == 597 then
        addVehicleSirens(source62falsetruetruefalsesetVehicleSirens(source1, -0.52.5025500198.9198.9)
setVehicleSirens(source20.42.500255255200200)
setVehicleSirens(source30.4, -0.50.80255255200200)
setVehicleSirens(source4, -0.5, -0.50.825500200200)
setVehicleSirens(source50.6, -2.8025500200200)
setVehicleSirens(source6, -0.7, -2.8025500200200)    end
end
addEventHandler "onVehicleEnter"getRootElement(), add)


Za pomoc stawiam :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-16, 22:47


#404







Wiek: 26
Na forum: 4772 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%

 local pojazd createVehicle(v[1], v[2], v[3], v[4], v[5], v[6], v[7])
 setElementData(pojazd"Syreny"true)



function add(thePlayerseatjacked )
    if getElementData(source"Syreny"then
        addVehicleSirens(source62falsetruetruefalsesetVehicleSirens(source1, -0.52.5025500198.9198.9)
setVehicleSirens(source20.42.500255255200200)
setVehicleSirens(source30.4, -0.50.80255255200200)
setVehicleSirens(source4, -0.5, -0.50.825500200200)
setVehicleSirens(source50.6, -2.8025500200200)
setVehicleSirens(source6, -0.7, -2.8025500200200)    
end
end
addEventHandler "onVehicleEnter"getRootElement(), add)


Co? takiego, b?dzie najpro?ciej.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-16, 22:56


sebik2303

Mapper :)






Wiek: 25
Na forum: 4160 dni
Posty: 298
Nick w MP: sebik2303

Piwa: 899

Respekt: 55,3

DestroY, nie chce aby to tworzy?o nowych bo to jest do aut frakcyjnych :) I chc? aby da? do kodu tego pojazd i tylko do nich by?o :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-17, 00:31


#404







Wiek: 26
Na forum: 4772 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
No to zrobmy tak: w skrypcie tworzysz pojazdy - w pliku lua, nie .map czy co? - i dorzucasz ten kod do pliku, b?dzie to dzia?a?o tylko dla pojazd?w utworzonych przez ten skrypt.


function add(thePlayerseatjacked )
        addVehicleSirens(source62falsetruetruefalsesetVehicleSirens(source1, -0.52.5025500198.9198.9)
setVehicleSirens(source20.42.500255255200200)
setVehicleSirens(source30.4, -0.50.80255255200200)
setVehicleSirens(source4, -0.5, -0.50.825500200200)
setVehicleSirens(source50.6, -2.8025500200200)
setVehicleSirens(source6, -0.7, -2.8025500200200)    
end
end
addEventHandler "onVehicleEnter"resourceRootadd)


Postaw piwo autorowi tego posta
 

 
Tagi: syreny
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » syreny Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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
Dodaj temat do Ulubionych
Wersja do druku