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

Wysłany: 2014-05-27, 15:44


RezoT







Wiek: 30
Na forum: 4416 dni
Posty: 126
Nick w MP: RezoT

Piwa: 306

Respekt: 51

Ostrzeżeń: 40%
Witam mam pytanie jak zrobi? ?eby jak np jest si? w ACL " Policja " i je?eli wsi?dzie si? do byle jakiego auta to poka?e si? na dachu kogut policyjny?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-05-27, 15:48


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Podmianka pod obiekt, i kod :


addEventHandler "onPlayerVehicleEnter"root, function()
    team getPlayerTeam source )
    if getTeamName team ) == "Policja" then
        auto getPedOccupiedVehicle source )
        kogut createObject IDxy)
        attachElementToElement koguautoxy,z+1)
    end
end)


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-05-27, 15:59


RezoT







Wiek: 30
Na forum: 4416 dni
Posty: 126
Nick w MP: RezoT

Piwa: 306

Respekt: 51

Ostrzeżeń: 40%
Nom w?a?nie to wiem xd ale og?lnie chodzi mi te? czy kto? wie mo?e czy istnieje taki obiekt jak kogut policyjny?

Podpis
:) :)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-05-27, 16:05


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

i wy programi?ci xd :D

Więcej informacji znajdziesz w Wikipedii MTA:

SetVehicleSirens


[ Dodano: 2014-05-27, 16:06 ]
Edytor syren https://community.multitheftauto.com/index.php?p=resources&s=details&id=5531

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-05-27, 16:09


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Jemu chodzi?o o obiekt, nie syreny -.-

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-05-27, 16:23


RezoT







Wiek: 30
Na forum: 4416 dni
Posty: 126
Nick w MP: RezoT

Piwa: 306

Respekt: 51

Ostrzeżeń: 40%
Ale takie syreny co np ?wiec? czerwono niebiesko.... m?g?by? mi da? na nia funkcje znaczy funkcje ju? poda?e? ale np ?e tworzy to na dachy i ?wiec? sie??

Podpis
:) :)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-05-27, 16:35


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Jest w niej sk?adnia ca?a, co do pozycji syreny :)

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-05-27, 17:32


Piorun







Wiek: 32
Na forum: 6712 dni
Posty: 1837
Nick w MP: Piorun

Piwa: 516

Respekt: 480,7
Respekt: 480,7

PanMaszyna, no fajnie, a gdzie masz x,y,z zadeklarowane?

Poza tym ten obiekt nie ustawi si? na dachu lecz na wysoko?ci zwi?kszonej o 1, a nie zawsze b?dzie to dzia?a?o.

Podpis
Możesz mnie znaleźć na: Facebook
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-05-27, 17:45


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

w takim razie, attachElementToElement :)


Je?li chodzi o x,y,z to

theVehicle: The vehicle to modify
sirenPoint: The siren point to modify
posX: The x position of this siren point from the center of the vehicle
posY: The y position of this siren point from the center of the vehicle
posZ: The z position of this siren point from the center of the vehicle


czyli co? takiego :


x,y,z = getElementPosition ( element_pojazdu )
setVehicleSirens ( element_pojazdu, 1, x, y, z+1, 255, 0, 0 )

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: kogut
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Kogut 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