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

Wysłany: 2016-04-18, 17:37


Axmell

E-Commerce






Wiek: 24
Na forum: 3810 dni
Posty: 279
Nick w MP: %Axmell

Piwa: 224

Respekt: 50

Witam jak zrobic miganie mryga?ek na czas np co 1s.

local premier1 createVehicle(560, -1600.423828125692.369140625, -5.46000)
removeVehicleSirens(premier1)
addVehicleSirens(premier155truefalsefalsetrue)
setVehicleSirens(premier11, -0.9, -2.40.12551280255255local velocity 5000.00
local acceleration 50
local slock 40. -- (Promienlocal trac 0.95
setVehicleHandling(premier1"tractionMultiplier"trac)
setVehicleHandling(premier1"steeringLock"slock)
setVehicleHandling(premier1"maxVelocity"velocity)
setVehicleHandling(premier1"engineAcceleration"acceleration)
setElementFrozen(premier1false)
addVehicleUpgrade(premier11025)
addVehicleUpgrade(premier11158)
addVehicleUpgrade(premier11033)
addVehicleUpgrade(premier11041)
addVehicleUpgrade(premier11069)
addVehicleUpgrade(premier11029)
setVehicleColor(premier1000)
setVehiclePlateText(premier1"SAPD#01")

jak podpi?c do tego kazy pojazd o id 560

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-19, 14:29


MIKAELmta







Wiek: 24
Na forum: 3978 dni
Posty: 311

Piwa: 10617

Respekt: 355,3
Respekt: 355,3Respekt: 355,3Respekt: 355,3Respekt: 355,3

Warunek na pojazd o id 560, najlepiej w oddzielnym kodzie..

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-19, 19:23


Barcioo

Kiedyś to było ST






Wiek: 26
Na forum: 4048 dni
Posty: 458
Nick w MP: Bartek.

Piwa: 1887

Respekt: 460
Respekt: 460

Nwm czy oto ci chodzi kiedy? tego wykorzystywa?em do Frakcji jak nie umia?em bardziej msql to jest Premier syreny s? podpisane pod grupe acl Lv-Poli

unction createVeh4(model,x,y,zrx,ry,rz) 

if model and and and and rx and ry and rz then 

local veh createVehicle(model,x,y,zrxryrzremoveVehicleSirens(veh)

addVehicleSirens(veh62falsefalsefalsetruesetVehicleSirens veh10.8002.4000.00000255255255 )
setVehicleSirens veh2, -0.8002.4000.00000255255255 )
setVehicleSirens veh3, -0.800, -2.7000.00025500255255 )
setVehicleSirens veh40.800, -2.7000.00025500255255 )
setVehicleSirens veh50.100, -1.9000.30025500255255 )
setVehicleSirens veh60.100, -1.9000.30000255255255 )
setVehicleSirens veh70.7000.8000.30000255255255 )


setElementData(veh"pojazd_paliwo"100)
setElementFrozen(vehtrue)
setVehicleColor(veh00)
addVehicleUpgrade (veh1096 )
setVehicleHandling(veh,"maxVelocity"180)
setVehicleHandling(veh"engineAcceleration"21)
setVehicleHandling(veh"ABS"true )
setVehicleHandling(veh"steeringLock"55 )
setVehicleHandling(veh"driveType""awd")

end 
end 

function veh() 
createVeh4(4262263.81,2474.90,2.90,0.0,0.0,358.0)
createVeh4(4262267.98,2474.90,2.91,0.0,0.0,1.4)
createVeh4(4262272.36,2474.90,2.90,0.0,360.0,2.1)
createVeh4(4262276.89,2474.90,2.90,0.0,0.0,358.4)
createVeh4(4262281.21,2474.90,2.90,0.0,0.0,358.0)
createVeh4(4262285.92,2474.90,2.90,0.0,0.0,1.5)

end 
addEventHandler("onVehicleStartEnter"resourceRoot, function(plr,seat)
if seat == 0 then
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("Lv-Poli")) then return end
outputChatBox("* Nie jeste? pracownikiem tej frakcji."plr255255255)
cancelEvent()
return
end
end)
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),veh


Podpis
Kanał Youtube;
A tu zapraszam
, pomogłem Ci? Wynagrodź mnie :piwo: :)


SUPPORT TEAM- 2016-09-03 do 2018-05-25
Test Mod- 2018-05-25
1k dni na Forum - 2018-01-28


GG: 62111935
Postaw piwo autorowi tego posta
 

 
Tagi: czas :: coś
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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