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

Wysłany: 2022-01-07, 09:44


Wujaszek1







Wiek: 28
Na forum: 1761 dni
Posty: 5
Nick w MP: Wujaszek1

Piwa: 384

Respekt: 50

Siema mam pytanie wie ktos mo?e jak zablokowa? podmienianie pojazd?w w przechowywalni poprzez zmiane nicku?

kilka os?b chodzi po serwerach i podmienia pojazdy na czo?gi itp

kod zapisu auta w przechowywalni


Kod:

addEventHandler("onColShapeHit", root, function(el,md)
local id_chow = getElementData(source,"przecho:chowanie:id")
if not id_chow then return end
if getElementType(el) == "player" then
local veh=getPedOccupiedVehicle(el)
if not veh then return end
if getVehicleController(veh) ~= el then return end
local id=getElementData(veh,"vehicle:id")
if not id then return end
if chowalnie[id_chow][4][getVehicleType(veh)] then
if isTimer(timeroddania) then return end
setElementFrozen(veh,true)
toggleControl(el,"enter_exit",false)
timeroddania=setTimer(function()
setElementFrozen(veh,false)
local id=getElementData(veh,"vehicle:id")
if not id then return end
setElementData(veh, "vehicle:desc", " ")
exports["pystories-vehicles"]:onSaveVehicle(veh)
destroyElement(veh)
exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET parking=1,tp_to_parking=? WHERE id=?","Schowany recznie", id)
toggleControl(el,"enter_exit",true)
end, 1, 1)
end
elseif getElementType(el) == "vehicle" then
local gracz=getVehicleController(el)
if gracz then return end
local id=getElementData(el,"vehicle:id")
if not id then return end
if chowalnie[id_chow][4][getVehicleType(veh)] then
if isTimer(timeroddania) then return end
timeroddania=setTimer(function()
setElementFrozen(el,false)
local id=getElementData(el,"vehicle:id")
if not id then return end
setElementData(veh, "vehicle:desc", " ")
exports["pystories-vehicles"]:onSaveVehicle(el)
destroyElement(el)
exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET parking=1,tp_to_parking=? WHERE id=?","Schowany bez kierowcy", id)
end, 3000, 1)
setElementFrozen(el,true)
setVehicleLocked(el,true)
end
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2022-01-10, 22:34


Eitho







Wiek: 24
Na forum: 3489 dni
Posty: 330
Nick w MP: Eitho

Piwa: 746

Respekt: 256,5
Respekt: 256,5Respekt: 256,5Respekt: 256,5

To nie ten event, szukaj dalej ( ͡? ͜ʖ ͡?)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2022-01-11, 00:04


IOS

erho






Wiek: 20
Na forum: 2593 dni
Posty: 27
Nick w MP: erho

Piwa: 2308

Respekt: 50

Ostrzeżeń: 40%
"Eitho" napisał/a:

To nie ten event, szukaj dalej ( ͡? ͜ʖ ͡?)
on nawet nie wie co to event ( ͡? ͜ʖ ͡?) usu? event derby zadzia?a

Postaw piwo autorowi tego posta
 

 
Wysłany: 2022-01-11, 10:03


Wujaszek1







Wiek: 28
Na forum: 1761 dni
Posty: 5
Nick w MP: Wujaszek1

Piwa: 384

Respekt: 50

dobra temat do zamkni?cia problem rozwi?zany

Postaw piwo autorowi tego posta
 

 
Tagi: podmienianie :: aut :: przecho
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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