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

Wysłany: 2018-10-06, 21:50


adisonboss







Wiek: 23
Na forum: 3332 dni
Posty: 237

Piwa: 6

Respekt: 50

Witam mam bardzo prosty problem ale tak dawno tego nie robi?em ?e si? zapomnia?o.
Ot?? brama na ACL nie dzia?a w og?le si? nawet nie pojawia


Brama createObject (2933, -1571.8661.707.900090)
function OtworzBrame ()
if not getPlayerAccount(plrthen return end
local accName getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama10000, -1571.86717.90 )
addCommandHandler("otworzpoli2"OtworzBrame )
end

function ZamknijBrame ()
if not getPlayerAccount(plrthen return end
local accName getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama10000, -1571.8661.707.90 )
addCommandHandler("zamknijpoli2"ZamknijBrame )
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-06, 21:56


_jvneczek







Wiek: 22
Na forum: 4326 dni
Posty: 1513
Nick w MP: _jvneczek

Piwa: 3949

Respekt: 337,5
Respekt: 337,5Respekt: 337,5Respekt: 337,5

adisonboss, Jakie? b??dy w db3|?

Podpis

Support Team: 04.10.2020 - 01.09.2020
Test Moderator: 03.05.2021 - 01.09.2021
Moderator: 01.09.2021 - 23.10.2021

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-07, 00:17


Allansso







Wiek: 24
Na forum: 3938 dni
Posty: 386

Piwa: 1537

Respekt: 180
Respekt: 180Respekt: 180

Ostrzeżeń: 100%
Za ma?o end?w, jedno z drugim si? gry?ie :eye:

Brama createObject (2933, -1571.8661.707.900090)
function OtworzBrame ()
if not getPlayerAccount(plrthen return end
local accName getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama10000, -1571.86717.90 )
addCommandHandler("otworzpoli2"OtworzBrame )
end
end

function ZamknijBrame ()
if not getPlayerAccount(plrthen return end
local accName getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama10000, -1571.8661.707.90 )
addCommandHandler("zamknijpoli2"ZamknijBrame )
end
end


Podpis
https://www.youtube.com/TheMikol
https://www.facebook.com/TheMikol1337
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-07, 10:13


adisonboss







Wiek: 23
Na forum: 3332 dni
Posty: 237

Piwa: 6

Respekt: 50

Bramy s? ale si? nie otwieraj? ani nie zamykaj?

https://imgur.com/a/3e0rch1


local Brama createObject (2933, -1701.5684.2925.6000270)
function OtworzBrame ()
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama10000, -1701.5675.9025.60)
end
end
addCommandHandler("opoli1"OtworzBrame )

function ZamknijBrame ()
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama10000, -1701.5684.2925.60)
end
end
addCommandHandler("zpoli1"ZamknijBrame )

Brama1 createObject (2933, -1571.8661.707.900090)
function OtworzBrame1 ()
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama110000, -1571.86717.90 )
addCommandHandler("opoli2"OtworzBrame )
end
end

function ZamknijBrame1 ()
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama110000, -1571.8661.707.90 )
addCommandHandler("zpoli2"ZamknijBrame )
end
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-07, 10:22


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

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

Do ka?dej funkcji dopisz argument gracza o nazwie thePlayer

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-07, 10:48


adisonboss







Wiek: 23
Na forum: 3332 dni
Posty: 237

Piwa: 6

Respekt: 50

Okej pierwsza brama si? otwiera ale ta druga ju? nie

Brama1 createObject (2933, -1571.8661.707.900090)
function OtworzBrame1 (thePlayer)
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama110000, -1571.86717.90 )
addCommandHandler("opoli2"OtworzBrame )
end
end

function ZamknijBrame1 (thePlayer)
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama110000, -1571.8661.707.90 )
addCommandHandler("zpoli2"ZamknijBrame )
end
end

W db3 nic nie ma

[ Dodano: 2018-10-07, 10:50 ]

Brama1 createObject (2933, -1571.8661.707.900090)
function OtworzBrame1 (thePlayer)
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama110000, -1571.86717.90 )
addCommandHandler("opoli2"OtworzBrame1 )
end
end

function ZamknijBrame1 (thePlayer)
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama110000, -1571.8661.707.90 )
addCommandHandler("zpoli2"ZamknijBrame1 )
end
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-07, 12:53


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

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

Powinno dzia?a?:
local Brama createObject (2933, -1701.5684.2925.6000270)
function OtworzBrame (thePlayer)
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama10000, -1701.5675.9025.60)
end
end
addCommandHandler("opoli1"OtworzBrame )

function ZamknijBrame (thePlayer)
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama10000, -1701.5684.2925.60)
end
end
addCommandHandler("zpoli1"ZamknijBrame )

local Brama1 createObject (2933, -1571.8661.707.900090)
function OtworzBrame1 (thePlayer)
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama110000, -1571.86717.90 )
end
end
addCommandHandler("opoli2"OtworzBrame1 )

function ZamknijBrame1 (thePlayer)
if not getPlayerAccount(thePlayerthen return end
local accName getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..accNameaclGetGroup "Policja") ) then 
moveObject Brama110000, -1571.8661.707.90 )
end
end
addCommandHandler("zpoli2"ZamknijBrame1 )


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
adisonboss
Wysłany: 2018-10-07, 13:11


adisonboss







Wiek: 23
Na forum: 3332 dni
Posty: 237

Piwa: 6

Respekt: 50

Dzia?a dzi?ki. Co zmieni?e? ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-07, 13:43


czlowiekjaja







Wiek: 20
Na forum: 2850 dni
Posty: 76
Nick w MP: czlowiekjaja

Piwa: 324

Respekt: 50

Najpierw dajesz end a potem addCommandHandler

Postaw piwo autorowi tego posta
 

 
Tagi: brama :: acl
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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