Wysłany: 2018-10-06, 21:50
adisonboss
Wiek: 23 Na forum: 3332 dni Posty: 237
Piwa : 6
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.8 , 661.70 , 7.90 , 0 , 0 , 90 )
function OtworzBrame ()
if not getPlayerAccount ( plr ) then return end
local accName = getAccountName ( getPlayerAccount ( plr ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama , 10000 , - 1571.8 , 671 , 7.90 )
addCommandHandler ( "otworzpoli2" , OtworzBrame )
end
function ZamknijBrame ()
if not getPlayerAccount ( plr ) then return end
local accName = getAccountName ( getPlayerAccount ( plr ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama , 10000 , - 1571.8 , 661.70 , 7.90 )
addCommandHandler ( "zamknijpoli2" , ZamknijBrame )
end
Wysłany: 2018-10-06, 21:56
_jvneczek
Wiek: 22 Na forum: 4326 dni Posty: 1513
Nick w MP: _jvneczek
Piwa : 3949
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
Wysłany: 2018-10-07, 00:17
Allansso
Wiek: 24 Na forum: 3938 dni Posty: 386
Piwa : 1537
Za ma?o end?w, jedno z drugim si? gry?ie
Brama = createObject ( 2933 , - 1571.8 , 661.70 , 7.90 , 0 , 0 , 90 )
function OtworzBrame ()
if not getPlayerAccount ( plr ) then return end
local accName = getAccountName ( getPlayerAccount ( plr ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama , 10000 , - 1571.8 , 671 , 7.90 )
addCommandHandler ( "otworzpoli2" , OtworzBrame )
end
end
function ZamknijBrame ()
if not getPlayerAccount ( plr ) then return end
local accName = getAccountName ( getPlayerAccount ( plr ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama , 10000 , - 1571.8 , 661.70 , 7.90 )
addCommandHandler ( "zamknijpoli2" , ZamknijBrame )
end
end
Wysłany: 2018-10-07, 10:13
adisonboss
Wiek: 23 Na forum: 3332 dni Posty: 237
Piwa : 6
Bramy s? ale si? nie otwieraj? ani nie zamykaj?
https://imgur.com/a/3e0rch1
local Brama = createObject ( 2933 , - 1701.5 , 684.29 , 25.60 , 0 , 0 , 270 )
function OtworzBrame ()
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama , 10000 , - 1701.5 , 675.90 , 25.60 )
end
end
addCommandHandler ( "opoli1" , OtworzBrame )
function ZamknijBrame ()
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama , 10000 , - 1701.5 , 684.29 , 25.60 )
end
end
addCommandHandler ( "zpoli1" , ZamknijBrame )
Brama1 = createObject ( 2933 , - 1571.8 , 661.70 , 7.90 , 0 , 0 , 90 )
function OtworzBrame1 ()
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama1 , 10000 , - 1571.8 , 671 , 7.90 )
addCommandHandler ( "opoli2" , OtworzBrame )
end
end
function ZamknijBrame1 ()
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama1 , 10000 , - 1571.8 , 661.70 , 7.90 )
addCommandHandler ( "zpoli2" , ZamknijBrame )
end
end
Wysłany: 2018-10-07, 10:22
Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
Do ka?dej funkcji dopisz argument gracza o nazwie thePlayer
Wysłany: 2018-10-07, 10:48
adisonboss
Wiek: 23 Na forum: 3332 dni Posty: 237
Piwa : 6
Okej pierwsza brama si? otwiera ale ta druga ju? nie
Brama1 = createObject ( 2933 , - 1571.8 , 661.70 , 7.90 , 0 , 0 , 90 )
function OtworzBrame1 ( thePlayer )
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama1 , 10000 , - 1571.8 , 671 , 7.90 )
addCommandHandler ( "opoli2" , OtworzBrame )
end
end
function ZamknijBrame1 ( thePlayer )
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama1 , 10000 , - 1571.8 , 661.70 , 7.90 )
addCommandHandler ( "zpoli2" , ZamknijBrame )
end
end
W db3 nic nie ma
[ Dodano : 2018-10-07, 10:50 ]
Brama1 = createObject ( 2933 , - 1571.8 , 661.70 , 7.90 , 0 , 0 , 90 )
function OtworzBrame1 ( thePlayer )
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama1 , 10000 , - 1571.8 , 671 , 7.90 )
addCommandHandler ( "opoli2" , OtworzBrame1 )
end
end
function ZamknijBrame1 ( thePlayer )
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama1 , 10000 , - 1571.8 , 661.70 , 7.90 )
addCommandHandler ( "zpoli2" , ZamknijBrame1 )
end
end
Wysłany: 2018-10-07, 12:53
Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
Powinno dzia?a?:
local Brama = createObject ( 2933 , - 1701.5 , 684.29 , 25.60 , 0 , 0 , 270 )
function OtworzBrame ( thePlayer )
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama , 10000 , - 1701.5 , 675.90 , 25.60 )
end
end
addCommandHandler ( "opoli1" , OtworzBrame )
function ZamknijBrame ( thePlayer )
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama , 10000 , - 1701.5 , 684.29 , 25.60 )
end
end
addCommandHandler ( "zpoli1" , ZamknijBrame )
local Brama1 = createObject ( 2933 , - 1571.8 , 661.70 , 7.90 , 0 , 0 , 90 )
function OtworzBrame1 ( thePlayer )
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama1 , 10000 , - 1571.8 , 671 , 7.90 )
end
end
addCommandHandler ( "opoli2" , OtworzBrame1 )
function ZamknijBrame1 ( thePlayer )
if not getPlayerAccount ( thePlayer ) then return end
local accName = getAccountName ( getPlayerAccount ( thePlayer ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Policja" ) ) then
moveObject ( Brama1 , 10000 , - 1571.8 , 661.70 , 7.90 )
end
end
addCommandHandler ( "zpoli2" , ZamknijBrame1 )
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
Dzia?a dzi?ki. Co zmieni?e? ?
Wysłany: 2018-10-07, 13:43
czlowiekjaja
Wiek: 20 Na forum: 2850 dni Posty: 76
Nick w MP: czlowiekjaja
Piwa : 324
Najpierw dajesz end a potem addCommandHandler
Tagi: brama :: acl
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: