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

Wysłany: 2018-07-15, 17:58


adisonboss







Wiek: 23
Na forum: 3331 dni
Posty: 237

Piwa: 6

Respekt: 50

Witam. Skrypt na barierki mi nie dzia?a. DB3 https://imgur.com/a/Oq0HCGG . Za pomoc :piwo: i R*

KOD

barierki = {}

addCommandHandler "b", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then return end 
x,y,getElementPosition plr )
r1,r2,r3 getElementRotation plr )
barierka createObject 1459xyzr1r2r3 )
table.insert barierkibarierka )
end)


addCommandHandler "busun", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then return end 
for k,v in ipairs barierki ) do
destroyElement )
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-15, 18:18


Hades.

Łiiiiiiiiii






Wiek: 22
Na forum: 4699 dni
Posty: 372
Nick w MP: Hades

Piwa: 3214

Respekt: 337,8
Respekt: 337,8Respekt: 337,8Respekt: 337,8


barierki = {}

addCommandHandler "b", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then return end 
x,y,getElementPosition plr )
r1,r2,r3 getElementRotation plr )
barierka[plr] = createObject 1459xyzr1r2r3 )
end)


addCommandHandler "busun", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then return end 
destroyElement barierki[plr] )
end)



Co do DB3, jeste? pewien ?e masz w mecie ustawiony type na "server"?

Podpis
Skrypty/Grafiki na zamówienie!
Kontakt: Discord R35#5507

Discord związany z pomocą: https://discord.gg/ttkQTsc
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-15, 18:43


adisonboss







Wiek: 23
Na forum: 3331 dni
Posty: 237

Piwa: 6

Respekt: 50

W mecie jest server oraz mam

barierki = {}

addCommandHandler "b", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then return end 
x,y,getElementPosition plr )
r1,r2,r3 getElementRotation plr )
barierka[plr] = createObject 1459xyzr1r2r3 )
end)


addCommandHandler "busun", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then return end 
destroyElement barierki[plr] )
end)


Nadal nic nawet nic w db3 nie ma

[ Dodano: 2018-07-15, 18:44 ]
A meta to
<meta>
<info name="Barierki" author="adwokatPL" version="1.1" type="script" />
<script src="barierki.lua" type="server"/>
</meta>

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-15, 18:51


Hades.

Łiiiiiiiiii






Wiek: 22
Na forum: 4699 dni
Posty: 372
Nick w MP: Hades

Piwa: 3214

Respekt: 337,8
Respekt: 337,8Respekt: 337,8Respekt: 337,8



barierki = {}

addCommandHandler "b", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then return end 
x,y,getElementPosition plr )
r1,r2,r3 getElementRotation plr )
barierki[plr] = createObject 1459xyzr1r2r3 )
end)


addCommandHandler "busun", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then return end 
destroyElement barierki[plr] )
end)


Podpis
Skrypty/Grafiki na zamówienie!
Kontakt: Discord R35#5507

Discord związany z pomocą: https://discord.gg/ttkQTsc
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
adisonboss
Wysłany: 2018-07-15, 18:53


adisonboss







Wiek: 23
Na forum: 3331 dni
Posty: 237

Piwa: 6

Respekt: 50

To samo nic w DB3 i nie stawia barierki

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-15, 18:56


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

adisonboss, Czego si? dziwisz jak anulujesz funkcje jak jeste? w ACL PSP? XDDDDD
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then return end 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-15, 18:59


adisonboss







Wiek: 23
Na forum: 3331 dni
Posty: 237

Piwa: 6

Respekt: 50

Zrobi?em takie co? ale nadal nie dzia?a

barierki = {}

addCommandHandler "b", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then 
x,y,getElementPosition plr )
r1,r2,r3 getElementRotation plr )
barierki[plr] = createObject 1459xyzr1r2r3 )
end)


addCommandHandler "busun", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then
destroyElement barierki[plr] )
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-15, 19:00


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

powiedz mi gdzie masz enda od tej instrukcji warunkowej?
if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then 

dopisz go i b?dzie dzia?a?

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
adisonboss
Wysłany: 2018-07-15, 19:01


Hades.

Łiiiiiiiiii






Wiek: 22
Na forum: 4699 dni
Posty: 372
Nick w MP: Hades

Piwa: 3214

Respekt: 337,8
Respekt: 337,8Respekt: 337,8Respekt: 337,8

@Kalizman, o kurde nawet nie zwr?ci?em uwagi na return end XD

Podpis
Skrypty/Grafiki na zamówienie!
Kontakt: Discord R35#5507

Discord związany z pomocą: https://discord.gg/ttkQTsc
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-15, 19:01


adisonboss







Wiek: 23
Na forum: 3331 dni
Posty: 237

Piwa: 6

Respekt: 50

Dobra dzia?a a jak naprawi? to ?e jak bior? /busun to usuwa mi tylko ostatni? barierke a nie wszystkie ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-15, 19:03


Hades.

Łiiiiiiiiii






Wiek: 22
Na forum: 4699 dni
Posty: 372
Nick w MP: Hades

Piwa: 3214

Respekt: 337,8
Respekt: 337,8Respekt: 337,8Respekt: 337,8


barierki = {}

addCommandHandler "b", function(plr)
    local accountName=getAccountName(getPlayerAccount(plr))
    if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then 
        x,y,getElementPosition plr )
        r1,r2,r3 getElementRotation plr )
        barierka createObject 1459xyzr1r2r3 )
        table.insert(barierkibarierka)
    end
end)


addCommandHandler "busun", function(plr)
local accountName=getAccountName(getPlayerAccount(plr))
    if isObjectInACLGroup("user."..accountNameaclGetGroup("PSP")) then
        for k,v in ipairs(barierki) do
            destroyElement(v)
        end
    end
end)


Podpis
Skrypty/Grafiki na zamówienie!
Kontakt: Discord R35#5507

Discord związany z pomocą: https://discord.gg/ttkQTsc
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
adisonboss
Wysłany: 2018-07-15, 19:06


adisonboss







Wiek: 23
Na forum: 3331 dni
Posty: 237

Piwa: 6

Respekt: 50

Dzi?ki wielkie za pomoc. Do zamkni?cia

Postaw piwo autorowi tego posta
 

 
Tagi: barierki
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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