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

Wysłany: 2015-01-10, 17:57


Dryfter







Wiek: 36
Na forum: 4428 dni
Posty: 27

Piwa: 6

Respekt: 50

Mam panel pd z forum ale on nie dzia?a.Fixuje ale jak wybiore gracza z listy i daje ?eby zmieni?o mu felgi to skrypt zmienia te felgi mi a nie jemu.
addEvent("fix", true) 
addEventHandler("fix", getRootElement(), function(player, potem) 
local player = getPlayerFromName ( player )
        takePlayerMoney ( player , 300 )
        local car = getPedOccupiedVehicle(player)
        fixVehicle(car)
end)


addEvent("1010", true)
addEventHandler("1010", getRootElement(),
       
local player = getPlayerFromName ( player )
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1010)
end
)
-----
addEvent("1009", true)
addEventHandler("1009", getRootElement(),
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1009)
end
end
)
--
addEvent("1008", true)
addEventHandler("1008", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1008)

end
end
)
---------------------
addEvent("1087", true)
addEventHandler("1087", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1087)
end
end
)
----------
addEvent("1025", true)
addEventHandler("1025", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1025)
end
end
)
addEvent("1078", true)
addEventHandler("1078", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1078)
end
end
)
addEvent("1084", true)
addEventHandler("1084", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1084)
end
end
)
addEvent("1085", true)
addEventHandler("1085", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1085)
end
end
)
addEvent("1096", true)
addEventHandler("1096", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1096)
end
end
)
-------------------
addEvent("1097", true)
addEventHandler("1097", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1097)
end
end
)
addEvent("1079", true)
addEventHandler("1079", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1079)
end
end
)
addEvent("1073", true)
addEventHandler("1073", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1073)
end
end
)
addEvent("1080", true)
addEventHandler("1080", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1080)
end
end
)
addEvent("1074", true)
addEventHandler("1074", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1074)
end
end
)
addEvent("1081", true)
addEventHandler("1081", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1081)
end
end
)
addEvent("1075", true)
addEventHandler("1075", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1075)
end
end
)
addEvent("1082", true)
addEventHandler("1082", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1082)
end
end
)
addEvent("1076", true)
addEventHandler("1076", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1076)
end
end
)

addEvent("1098", true)
addEventHandler("1098", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1098)
end
end
)

addEvent("1077", true)
addEventHandler("1077", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1077)
end
end
)

addEvent("1083", true)
addEventHandler("1083", getRootElement(),
  function()
    if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1083)
end
end
)





Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-01-10, 20:56


MeeShuffle

Programista/Grafik






Wiek: 33
Na forum: 4536 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

Respekt: 535,3
Respekt: 535,3

if isPedInVehicle(source) then

        addVehicleUpgrade(getPedOccupiedVehicle(source),1010)


player to gracz wybrany zapewne a source to Ty. Dalej zapewne wiesz co zrobic.

Podpis

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

 
Wysłany: 2015-01-10, 22:27


Dryfter







Wiek: 36
Na forum: 4428 dni
Posty: 27

Piwa: 6

Respekt: 50

Nie jestem pewien czy wiem.
if isPedInVehicle(thePlayer) then

        addVehicleUpgrade(getPedOccupiedVehicle(thePlayer),1010)


Hmm?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-01-10, 22:38


Wittx

8===D






Wiek: 27
Na forum: 4935 dni
Posty: 121
Nick w MP: wittula

Piwa: 1906

Respekt: 120
Respekt: 120

Nie thePlayer tylko player. Zanim co? wstawisz na forum - sprawd? samemu.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-01-10, 22:56


Dryfter







Wiek: 36
Na forum: 4428 dni
Posty: 27

Piwa: 6

Respekt: 50

Teraz te? nie dzia?a...Zamieni?em wszystkie suorce na Player i nie dzia?a

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-01-10, 23:01


Albert221

MLG NOSCOPER






Wiek: 26
Na forum: 4316 dni
Posty: 50
Nick w MP: Albert221

Piwa: 14

Respekt: 34,3

BTW zamiast miec po jednym evemcie na upgrade po prostu do JEDNEGO eventu przekaz parametr z id upgrade'u

Podpis
i7 4790k @ 4.6GHz - Macho HR-02 - Crucial Ballistix 2x8GB 1600MHz - GTX 970 SLI
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-01-10, 23:10


Piorun







Wiek: 33
Na forum: 6853 dni
Posty: 1837
Nick w MP: Piorun

Piwa: 516

Respekt: 480,7
Respekt: 480,7

Dryfter, najpierw poczytaj nieco o optymalizacji kodu, a dopiero potem b?dziemy Ci pomaga? ;) .

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

 
Wysłany: 2015-01-10, 23:36


Dryfter







Wiek: 36
Na forum: 4428 dni
Posty: 27

Piwa: 6

Respekt: 50

No to akurat jest skrypt z tego forum.By? w dl to ?ci?gn??em wypr?bowa? ale niestety nie dzia?a.Nie jestem jeszcze taki dobry w lua.Ucze si? gdy mam czas

Postaw piwo autorowi tego posta
 

 
Tagi: panel
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