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

Wysłany: 2021-12-31, 02:59


GamesOverXD







Wiek: 22
Na forum: 1683 dni
Posty: 1



Respekt: 50

Kod:

addCommandHandler("barierka",function(plr)
x,y,z = getElementPosition(plr)
r1,r2,r3 = getElementRotation(plr)
barierka=createObject(1228, x, y, z, r1, r2 ,r3, false)
setElementPosition(plr, x, y, z+1)
end)

addCommandHandler ("usun", function(plr)
destroyElement (barierka)
end)


witam dopiero zaczynam przygode z lua i chcialbym aby mi ktos zrobil aby barierki nie spadaly tylko staly nie ruchomo

[ Dodano: 2021-12-31, 02:59 ]
Kod:

addCommandHandler("barierka",function(plr)
x,y,z = getElementPosition(plr)
r1,r2,r3 = getElementRotation(plr)
barierka=createObject(1228, x, y, z, r1, r2 ,r3, false)
setElementPosition(plr, x, y, z+1)
end)

addCommandHandler ("usun", function(plr)
destroyElement (barierka)
end)


witam dopiero zaczynam przygode z lua i chcialbym aby mi ktos zrobil aby barierki nie spadaly tylko staly nie ruchomo

Postaw piwo autorowi tego posta
 

 
Wysłany: 2022-01-13, 00:29


ButlaPiwa







Wiek: 30
Na forum: 2144 dni
Posty: 2
Nick w MP: ButlaPiwa



Respekt: 50

Witajcie, mam tak? pro?b?, chcia?bym aby lampy policyjne co np 30 sekund zapala?y obie naraz, gas?y, zapala?y obie, gas?y

LINK>>: https://www.mediafire.com...lampki.zip/file

Pomoc wynagrodz? respektem i zimnym piwkiem :)

Dodano: 2022-02-18, 14:10
Witam, mam pro?b? o przerobienie skryptu lamp policyjnych. Zale?y mi na tym, aby lampy jak mrugaj? na zmian?, po paru sekundach zapalaj? si? obie wy??czaj? i si? zapalaj? obie.
[lua]
-- Simple Police-Lights by MuLTi!

p_lights = {}
p_timer = {}
p_lvar = {}
p_pvar = {}
p_lvar2 = {}
p_lvar3 = {}
p_lvar4 = {}






function toggleLights(thePlayer, cmd)
local veh = getPedOccupiedVehicle(thePlayer)
if not veh then return end
if getElementData(veh,"vehicle:duty") and getElementData(thePlayer, "player:faction") == "SAPD" then
if(p_lights[veh] == 0) or(p_lights[veh] == nil) then
p_pvar[veh] = 1
p_lights[veh] = 1
setVehicleOverrideLights ( veh, 2 )

p_timer[veh] = setTimer( function()
if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then
p_lvar[veh] = 1
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 0, 1)
setVehicleLightState ( veh, 3, 1)
setVehicleHeadLightColor(veh, 0, 0, 255)
else
setVehicleLightState ( veh, 3, 0)
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 1)
setVehicleLightState ( veh, 2, 1)
setVehicleHeadLightColor(veh, 255, 0, 0)
p_lvar[veh] = 0
end
end, 160, 0)
else
p_lights[veh] = 0
killTimer(p_timer[veh])
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 3, 0)
setVehicleHeadLightColor(veh, 255, 255, 255)
setVehicleOverrideLights ( veh, 2 )
end
elseif getElementData(veh,"vehicle:duty") and getElementData(thePlayer, "player:faction") == "SARA" then
if(p_lights[veh] == 0) or(p_lights[veh] == nil) then
p_pvar[veh] = 1
p_lights[veh] = 1
setVehicleOverrideLights ( veh, 2 )

p_timer[veh] = setTimer( function()
if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then
p_lvar[veh] = 1
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 0, 1)
setVehicleLightState ( veh, 3, 1)
setVehicleHeadLightColor(veh, 255, 155, 0)
else
setVehicleLightState ( veh, 3, 0)
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 1)
setVehicleLightState ( veh, 2, 1)
setVehicleHeadLightColor(veh, 255, 255, 255)
p_lvar[veh] = 0
end
end, 160, 0)
else
p_lights[veh] = 0
killTimer(p_timer[veh])
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 3, 0)
setVehicleHeadLightColor(veh, 255, 255, 255)
setVehicleOverrideLights ( veh, 2 )
end
elseif getElementData(veh,"vehicle:duty") and getElementData(thePlayer, "player:faction") == "SAFD" then
if(p_lights[veh] == 0) or(p_lights[veh] == nil) then
p_pvar[veh] = 1
p_lights[veh] = 1
setVehicleOverrideLights ( veh, 2 )

p_timer[veh] = setTimer( function()
if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then
p_lvar[veh] = 1
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 0, 1)
setVehicleLightState ( veh, 3, 1)
setVehicleHeadLightColor(veh, 255, 255, 255)
else
setVehicleLightState ( veh, 3, 0)
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 1)
setVehicleLightState ( veh, 2, 1)
setVehicleHeadLightColor(veh, 252, 3, 3)
p_lvar[veh] = 0
end
end, 160, 0)
else
p_lights[veh] = 0
killTimer(p_timer[veh])
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 3, 0)
setVehicleHeadLightColor(veh, 255, 255, 255)
setVehicleOverrideLights ( veh, 2 )
end
elseif getElementData(veh,"vehicle:duty") and getElementData(thePlayer, "player:faction") == "TAXI" then
if(p_lights[veh] == 0) or(p_lights[veh] == nil) then
p_pvar[veh] = 1
p_lights[veh] = 1
setVehicleOverrideLights ( veh, 2 )

p_timer[veh] = setTimer( function()
if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then
p_lvar[veh] = 1
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 0, 1)
setVehicleLightState ( veh, 3, 1)
setVehicleHeadLightColor(veh, 255, 255, 255)
else
setVehicleLightState ( veh, 3, 0)
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 1)
setVehicleLightState ( veh, 2, 1)
setVehicleHeadLightColor(veh, 255, 255, 0)
p_lvar[veh] = 0
end
end, 160, 0)
else
p_lights[veh] = 0
killTimer(p_timer[veh])
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 3, 0)
setVehicleHeadLightColor(veh, 255, 255, 255)
setVehicleOverrideLights ( veh, 2 )
end
end
end

for key, value in ipairs(getElementsByType("player")) do
bindKey(value,"n","down",toggleLights)
end

addEventHandler("onPlayerJoin",root,function ()
bindKey(source,"n","down",toggleLights)
end)



addEventHandler ( "onVehicleExplode", getRootElement(),
function()
if(p_lights[source] == 1) then
killTimer(p_timer[source])
end
end )

addEventHandler ( "onVehicleRespawn", getRootElement(),
function()
if(p_lights[source] == 1) then
killTimer(p_timer[source])
end
end )

addEventHandler("onElementDestroy", getRootElement(),
function ()
if getElementType(source) == "vehicle" then
if(p_lights[source] == 1) then
killTimer(p_timer[source])
end
end
end)

[/lua]
Oczywi?cie za przerobienie owego skryptu si? odwdzi?cz?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2022-04-03, 01:30


czesio1252







Wiek: 23
Na forum: 3320 dni
Posty: 1
Nick w MP: D3lta



Respekt: 50

Prosz? o przerobienie poni?szego skryptu.
Potrzebuj? zamieni? ?wiat?a z domy?lnego addVehicleSirens i setVehicleSirens na createMarker. Zale?y mi na tym, aby ?wiat?a by?y r??ne dla poszczeg?lnych variant?w. Sam pr?bowa?em lecz sko?czy?y mi si? pomys?y.


https://anonfiles.com/H0BffbT0xd/mrygalki_zip

Postaw piwo autorowi tego posta
 

 
Wysłany: 2022-07-05, 22:11


KesirVG







Wiek: 23
Na forum: 1679 dni
Posty: 7



Respekt: 50

Witam mia? bym pro?b? czy mo?na by?o by przerobi? ca?y ten skrypt ja si? nie znam a chc? aby by?o Zarz?d, Admin ROOT, Admin, Moderator, Support tylko o to mi chodzi i ewentualnie kolorki
Kod:

https://www.mediafire.com/file/8cfwws7o9hxs0x1/endless-admin.rar/file


Postaw piwo autorowi tego posta
 

 
Wysłany: 2022-07-22, 12:54


weqovsky







Wiek: 27
Na forum: 1418 dni
Posty: 2
Nick w MP: weqowsky

Piwa: 3

Respekt: 50

Ca?a praca magazynu dzia?a, lecz po wzi?ciu skrzynk? przyciskiem "E" nie mo?na si? ruszy? ani odpali? czatu, pozostaje tylko reconnect. umia?by kto? to naprawi?? Jeszcze chcia?bym prosi? o to aby branie skrzynki trwa?o 3 sekundy

Kod: Pobierz zawiera jedynie client i server


Postaw piwo autorowi tego posta
 

 
Wysłany: 2022-12-30, 11:35


Ratol







Wiek: 26
Na forum: 1252 dni
Posty: 4

Piwa: 2

Respekt: 50

Cze??! Chcia?bym sobie przerobi? owy skrypt na serwer Rescue Teama, czy m?g?by kto? mnie naprowadzi? od czego zacz???

https://www76.zippyshare.com/v/sSBMvEmz/file.html

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
borsuk
Wysłany: 2023-12-24, 00:02


Adamsenek







Wiek: 26
Na forum: 1059 dni
Posty: 16
Nick w MP: Adamsenek

Piwa: 17

Respekt: 50

Siemaka jest szansa by ktoś przerobił skrypt TR_taxi
https://www.mediafire.com...R_taxi.zip/file


W skrypcie nie widzę możliwości rozpoczęcia pracy

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
borsuk
Wysłany: 2024-05-27, 12:48


KesirVG







Wiek: 23
Na forum: 1679 dni
Posty: 7



Respekt: 50

Witam chciałbym prosić o przerobienie panelu logowania a chciałbym tylko aby po zalogowaniu się była opcja Dom w tym miejscu do domków używam lss-domy, do tego daję 2 skrypty od panelu logowania bo wiem że w tych dwóch się to znajduję z góry dziękuje za szybką odpowiedz i robotę
Link do pobrania: https://www.mediafire.com...wania_.rar/file

Postaw piwo autorowi tego posta
 

 
Wysłany: 2024-12-10, 18:09


RendeRowTV







Wiek: 23
Na forum: 3538 dni
Posty: 34
Nick w MP: RendeRowTV

Piwa: 112

Respekt: 45,3

Ostrzeżeń: 40%
Witam mam pytanie a zarazem zwracam sie z prośbą o pomoc mianowicie chodzi mi o skrypt na custom cars od borsuka np z paczki dafikosa chodzi mi o to ze fajnie elegancko ogarnalem sobie pojazdy itp ale za chiny nie wazne jaka to podmianka co sprawdzalem kilku krotnie rowniez nie wazne za jakie id bazowe ją podmienie to mam problem taki ze nie mozna wsiadac do pojazdu customowego w wiecej niz 2 osoby [kierowca/pasazer] tak jest z kazdym autem z kazda podmianka customową. Moze ktos mial podobny problem albo liznął troche tematu i zna sie na rzeczy to dajcie tu znac albo na pw to jakos sie dogadamy jesli pomoc bedzie owocna i dokladna ;)

Postaw piwo autorowi tego posta
 

 
Tagi: prośby :: przerobienie :: skryptu
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zasoby do MTA » PROŚBY O PRZEROBIENIE SKRYPTU Odpowiedz do tematu

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