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

Wysłany: 2014-12-12, 22:07


PanPrezes







Wiek: 32
Na forum: 4555 dni
Posty: 63
Nick w MP: PanPrezes

Piwa: 979

Respekt: 111,2
Respekt: 111,2

Witam chce zrobi? skrypt na siren editor wszystko jest ok siren editor dobrze odpala mam taki
removeVehicleSirens(veh)
addVehicleSirens(veh62falsetruetruefalse)
setVehicleSirens(veh1, -0.73.11.625500255255)
setVehicleSirens(veh20.63.11.625500255255)
setVehicleSirens(veh303.11.6255255255255255)
setVehicleSirens(veh4, -0.74.3, -0.1255255255255255)
setVehicleSirens(veh50.64.3, -0.1255255255255255)
setVehicleSirens(veh60.6, -31.6255255255255255)


Jak Zrobi? by mi to dzia?a?o skryptem?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 22:27


Loop

Inspektor






Wiek: 27
Na forum: 4290 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

Kod:

function syrenki(thePlayer)
local x,y,z = getElementPosition(thePlayer)
local rx,ry,rz = getElementRotation(thePlayer)
local veh = createVehicle(Tu wpisz id pojazdu,x+3,y,z+0.1,rx,ry,rz)
if veh then
removeVehicleSirens(veh)
addVehicleSirens(veh, 6, 2, false, true, true, false)
setVehicleSirens(veh, 1, -0.7, 3.1, 1.6, 255, 0, 0, 255, 255)
setVehicleSirens(veh, 2, 0.6, 3.1, 1.6, 255, 0, 0, 255, 255)
setVehicleSirens(veh, 3, 0, 3.1, 1.6, 255, 255, 255, 255, 255)
setVehicleSirens(veh, 4, -0.7, 4.3, -0.1, 255, 255, 255, 255, 255)
setVehicleSirens(veh, 5, 0.6, 4.3, -0.1, 255, 255, 255, 255, 255)
setVehicleSirens(veh, 6, 0.6, -3, 1.6, 255, 255, 255, 255, 255)
end
end
addCommandHandler("test",syrenki)




To jest kod na zrespienie pojazdu obok siebie w tymi syrenami.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 22:35


PanPrezes







Wiek: 32
Na forum: 4555 dni
Posty: 63
Nick w MP: PanPrezes

Piwa: 979

Respekt: 111,2
Respekt: 111,2

nie dzia?a.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 22:43


Dixers

No-Life






Wiek: 26
Na forum: 4313 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

M?j kod, nie musisz sobie respi? obok, tylko dajesz kordy gdzie ma sta?:


function createVeh4(model,x,y,zrx,ry,rz)
if model and and and and rx and ry and rz then
local premier1 createVehicle(model,x,y,zrxryrz)
setVehicleColor(premier100,000) -- Kolor pojazduja akurat zastosowa?em czarny (pierwsze 3 zera to kolor nr 1kolejne 3 to kolor nr2)
removeVehicleSirens(premier1) --Usuwa tak jakby stare syreny...
addVehicleSirens(premier162falsefalsetruetrue) -- Tutaj sopcje jakie majbyzastosowane do tych syrenw sensie czy s?ychasyreny czy nie itptutaj akurat nie b?dzie s?ycha?...
setVehicleSirens(premier110.62.2000255191.3191.3) -- W tym nawiasie skordy syren na samochdziewklej swoje (te dostosowane s? do premiera)
setVehicleSirens(premier12, -0.72.4000255191.3191.3) -- W tym nawiasie skordy syren na samochdziewklej swoje (te dostosowane s? do premiera)
setVehicleSirens(premier13, -0.7, -2.5000255191.3191.3) -- W tym nawiasie skordy syren na samochdziewklej swoje (te dostosowane s? do premiera)
setVehicleSirens(premier140.6, -2.5000255191.3191.3) -- W tym nawiasie skordy syren na samochdziewklej swoje (te dostosowane s? do premiera)
end
end

function premier()
createVeh4(426, -1632.8000488281691.90002441406, -5.400000095367400359.75) -- ID POJAZDU kordy spawnu WA?NE aby "createVeh4" by?o nazwfuncki wy?ejczyli "createVeh4".
end
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),premier)


My?l?, ?e w opisach do?? opisa?em :) Je?li nie to napisz, spr?buj? lepiej wyt?umaczy? :) Pozdrawiam.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 22:47


PanPrezes







Wiek: 32
Na forum: 4555 dni
Posty: 63
Nick w MP: PanPrezes

Piwa: 979

Respekt: 111,2
Respekt: 111,2

czekaj bo nic nie rozumiem :D

[ Dodano: 2014-12-12, 22:52 ]
albo zle jest zrobione lub ja to ze robie bo podalem kordy i ten premier sie nie spawni

Podpis
Reaktywacja zapomnianego serwera YL-Games!


Prace nad serwerem 54/100%

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 22:52


Loop

Inspektor






Wiek: 27
Na forum: 4290 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

To dzia?a po stronie serwer


Kod:

function autozsyren(thePlayer)
local x,y,z = getElementPosition(thePlayer)
local rx,ry,rz = getElementRotation(thePlayer)
local veh = createVehicle(Tu id pojazdy,x+2,y,z+0.6,rx,ry,rz)
if veh then
removeVehicleSirens(veh)
addVehicleSirens(veh, 6, 2, false, true, true, false)
setVehicleSirens(veh, 1, -0.7, 3.1, 1.6, 255, 0, 0, 255, 255)
setVehicleSirens(veh, 2, 0.6, 3.1, 1.6, 255, 0, 0, 255, 255)
setVehicleSirens(veh, 3, 0, 3.1, 1.6, 255, 255, 255, 255, 255)
setVehicleSirens(veh, 4, -0.7, 4.3, -0.1, 255, 255, 255, 255, 255)
setVehicleSirens(veh, 5, 0.6, 4.3, -0.1, 255, 255, 255, 255, 255)
setVehicleSirens(veh, 6, 0.6, -3, 1.6, 255, 255, 255, 255, 255)
end
end
addCommandHandler("pojazd",autozsyren)


Ostatnio zmieniony przez Loop 2014-12-13, 08:17, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 22:59


PanPrezes







Wiek: 32
Na forum: 4555 dni
Posty: 63
Nick w MP: PanPrezes

Piwa: 979

Respekt: 111,2
Respekt: 111,2

Pikaczu91, tylko mam tam da? id pojazdu?

Podpis
Reaktywacja zapomnianego serwera YL-Games!


Prace nad serwerem 54/100%

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 23:01


Loop

Inspektor






Wiek: 27
Na forum: 4290 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

tak

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 23:03


PanPrezes







Wiek: 32
Na forum: 4555 dni
Posty: 63
Nick w MP: PanPrezes

Piwa: 979

Respekt: 111,2
Respekt: 111,2

zrobilem tak i nic.

Podpis
Reaktywacja zapomnianego serwera YL-Games!


Prace nad serwerem 54/100%

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 23:06


Loop

Inspektor






Wiek: 27
Na forum: 4290 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

Pokarz mete

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 23:09


PanPrezes







Wiek: 32
Na forum: 4555 dni
Posty: 63
Nick w MP: PanPrezes

Piwa: 979

Respekt: 111,2
Respekt: 111,2

dzia?a :D y jeszcze pytanko jak dodac teraz funkcje jak podam kordy to sie tam zrespi?

Podpis
Reaktywacja zapomnianego serwera YL-Games!


Prace nad serwerem 54/100%

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 23:13


Loop

Inspektor






Wiek: 27
Na forum: 4290 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

To wtedy uzyj kodu Dixera i tam masz createVeh4(id pojazdy i kordy)

Ostatnio zmieniony przez Loop 2014-12-13, 08:19, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 23:19


PanPrezes







Wiek: 32
Na forum: 4555 dni
Posty: 63
Nick w MP: PanPrezes

Piwa: 979

Respekt: 111,2
Respekt: 111,2

a jak to ma mniej wiecej wyglada??

Podpis
Reaktywacja zapomnianego serwera YL-Games!


Prace nad serwerem 54/100%

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-12, 23:37


Loop

Inspektor






Wiek: 27
Na forum: 4290 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

Kod:



function createVeh4(model,x,y,z, rx,ry,rz)

if model and x and y and z and rx and ry and rz then

local veh = createVehicle(model,x,y,z, rx, ry, rz)

removeVehicleSirens(veh) --Usuwa stare syreny

addVehicleSirens(veh, 6, 2, false, true, true, false)

setVehicleSirens(veh, 1, -0.7, 3.1, 1.6, 255, 0, 0, 255, 255)
setVehicleSirens(veh, 2, 0.6, 3.1, 1.6, 255, 0, 0, 255, 255)
setVehicleSirens(veh, 3, 0, 3.1, 1.6, 255, 255, 255, 255, 255)
setVehicleSirens(veh, 4, -0.7, 4.3, -0.1, 255, 255, 255, 255, 255)
setVehicleSirens(veh, 5, 0.6, 4.3, -0.1, 255, 255, 255, 255, 255)
setVehicleSirens(veh, 6, 0.6, -3, 1.6, 255, 255, 255, 255, 255)
end
end

function veh()
createVeh4(407, -1979, 886, 47, 0, 0, 359.75) -- ID POJAZDU + kordy spawnu np.Respi pojazd na Spawnie w SF

-- createVeh4(ID pojazdu, kord x, kord y ,kord z, obr?t x, obr?t y, obr?t z)
end
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),veh)



[ Dodano: 2014-12-13, 00:12 ]
PanPrezes, takie to trudne?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-13, 16:24


PanPrezes







Wiek: 32
Na forum: 4555 dni
Posty: 63
Nick w MP: PanPrezes

Piwa: 979

Respekt: 111,2
Respekt: 111,2

nie dzia?a.

Podpis
Reaktywacja zapomnianego serwera YL-Games!


Prace nad serwerem 54/100%

Postaw piwo autorowi tego posta
 

 
Tagi: sirenki
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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