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

Wysłany: 2015-12-29, 15:11


Toffiaaak.







Wiek: 23
Na forum: 4411 dni
Posty: 128
Nick w MP: Toffy.

Piwa: 1836

Respekt: 242
Respekt: 242Respekt: 242

local d1 createVehicle 5442169.3696289063609.4749755859411.440653800964 )


function enterVehicle playerseatjacked )
local accName getAccountName getPlayerAccount player ) ) 
if seat == 0 then
if d1 then
if not isObjectInACLGroup ("user."..accNameaclGetGroup "OSP" ) ) then 
cancelEvent() 
outputChatBox "*****"player end 
end
end 
end
addEventHandler "onVehicleStartEnter"getRootElement(), enterVehicle )

B??d tkwi w tym ?e nie moge wsiada? te? do innych pojazd?w nie tylko do "d1"
Licz? na pomoc.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 15:18


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

radz? zrobi? ci to innym sposobem.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 15:56


Toffiaaak.







Wiek: 23
Na forum: 4411 dni
Posty: 128
Nick w MP: Toffy.

Piwa: 1836

Respekt: 242
Respekt: 242Respekt: 242

Super, bardzo mi (nie) pomog?e?.

Podpis

Osiągnięcia:
- wygrana w konkursie LUA (kat. średnia) - 05.02.18
- 150 reputacji - 06.02.18
- 100 postów - 06.02.18

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 16:03


Reti







Wiek: 25
Na forum: 3811 dni
Posty: 2
Nick w MP: Reti

Piwa: 281

Respekt: 50

Ostrzeżeń: 100%
masz ;)



local d1 createVehicle 5442169.3696289063609.4749755859411.440653800964 )

pojazdy_OSP = {[544]=true}


addEventHandler "onVehicleStartEnter"getRootElement(), function ( thePlayerseatjacked )
    local accName getAccountName getPlayerAccount thePlayer ) ) 
    local auto getPedOccupiedVehicle(thePlayer)
    if seat == 0 then
    if not isObjectInACLGroup ("user."..accNameaclGetGroup "OSP" ) ) then
    if not pojazdy_OSP[getElementModel(auto)] then return end

           cancelEvent() 
           outputChatBox "*****"thePlayer ) 
        end 
    end
end 
)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 16:26


Toffiaaak.







Wiek: 23
Na forum: 4411 dni
Posty: 128
Nick w MP: Toffy.

Piwa: 1836

Respekt: 242
Respekt: 242Respekt: 242

Ale ja chce aby pojazd blokowa?o tylko dost?p do pojazdu d1 a nie do wszystkich, jesli poprawisz na taki to otrzymasz piwko i respa ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 17:16


marcin778

Krytyk serwerów MTA






Wiek: 24
Na forum: 4150 dni
Posty: 2268
Nick w MP: Marcineg

Piwa: 4662

Respekt: 1436,8
Respekt: 1436,8

Chodzi ci ,?e np jeden firetruck jest zablokowany a drugi nie?

Podpis
Moje prace: https://www.youtube.com/c...MuaWGHPp1mhlGnw

-- obecnie
-- obecnie
-- dawniej
-- dawniej
-- dawniej
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-29, 17:20


Toffiaaak.







Wiek: 23
Na forum: 4411 dni
Posty: 128
Nick w MP: Toffy.

Piwa: 1836

Respekt: 242
Respekt: 242Respekt: 242

Dok?adnie ;)

Podpis

Osiągnięcia:
- wygrana w konkursie LUA (kat. średnia) - 05.02.18
- 150 reputacji - 06.02.18
- 100 postów - 06.02.18

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-30, 10:34


#404







Wiek: 26
Na forum: 4772 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%

local d1 createVehicle 5442169.3696289063609.4749755859411.440653800964 )
setElementData(d1"Zablokowany"true)

pojazdy_OSP = {[544]=true}


addEventHandler "onVehicleStartEnter"getRootElement(), function ( thePlayerseatjacked )
    local accName getAccountName getPlayerAccount thePlayer ) ) 
    local auto getPedOccupiedVehicle(thePlayer)
    if seat == 0 then
    if not getElementData(source"Zablokowany"then return end
    if not isObjectInACLGroup ("user."..accNameaclGetGroup "OSP" ) ) then
    if not pojazdy_OSP[getElementModel(auto)] then return end

           cancelEvent() 
           outputChatBox "*****"thePlayer ) 
        end 
    end
end 
)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-30, 10:40


Toffiaaak.







Wiek: 23
Na forum: 4411 dni
Posty: 128
Nick w MP: Toffy.

Piwa: 1836

Respekt: 242
Respekt: 242Respekt: 242

Dzi?ki, do zamkni?cia.

Podpis

Osiągnięcia:
- wygrana w konkursie LUA (kat. średnia) - 05.02.18
- 150 reputacji - 06.02.18
- 100 postów - 06.02.18

Postaw piwo autorowi tego posta
 

 
Tagi: blokada :: wsiadania :: pojazdu
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