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

Wysłany: 2018-09-16, 11:07


krystek77







Wiek: 28
Na forum: 4172 dni
Posty: 135
Nick w MP: Krystek

Piwa: 176

Respekt: 125,3
Respekt: 125,3

brama nie dziala chce zeby otwierala sie na cmd a zamyka?a po opuszczeniu markera ;/

marker1 = createMarker( 2487.80640,-1669.21960,13.3359, 'cylinder',12, 0, 0, 255, 0) 
brama1 = createObject ( 980,2487.80640,-1669.21960,13.3359, 0, 0, 0 ) 
setElementDimension(brama1, 0)
setElementDimension(marker1, 0)
function MarkerHit1 (hitPlayer, matchingDimension) 
if getElementType( hitPlayer ) == "player" then 

 if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitPlayer)), aclGetGroup("Everyone")) or 
            isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitPlayer)), aclGetGroup("Moderator")) or 
                isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitPlayer)), aclGetGroup("SuperModerator")) then 
moveObject ( brama1, 2500, 2487.80640,-1669.21960,13.3359-7) 
addCommandHandler("o", MarkerHit1 )
end 
end 
end 






function MarkerLeave1 (thePlayer) 
moveObject ( brama1, 2500, 2487.80640,-1669.21960,13.3359) 
end 

addEventHandler ( "onMarkerLeave", marker1, MarkerLeave1 ) 
addEventHandler ( "onMarkerHit", marker1, MarkerHit1 )



Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-16, 11:15


Allansso







Wiek: 25
Na forum: 4079 dni
Posty: 386

Piwa: 1546

Respekt: 180
Respekt: 180Respekt: 180

Ostrzeżeń: 100%
1. Podaj b??dy z DB3
2. Po co tyle grup ACL?
3. Zastosuj
 if ( hasObjectPermissionTo ( player, "command.brama123", false ) ) then 
(Je?eli nadasz danej grupie ACL np. command.brama123 to dane grupy kt?re maj? dost?p do command.brama123 mog? otworzy? bram? za pomoc? przycisku) zamiast tych grup ACL

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

 
Wysłany: 2018-09-16, 11:23


krystek77







Wiek: 28
Na forum: 4172 dni
Posty: 135
Nick w MP: Krystek

Piwa: 176

Respekt: 125,3
Respekt: 125,3

"Allansso" napisał/a:

1. Podaj b??dy z DB3
2. Po co tyle grup ACL?


W takiej postaci dziala otwiera sie i zamyka ale chce ze jak wchodze w marker nie otworzy sie. tylko po wpisaniu komendy sie otworzy


marker1 = createMarker( 2487.80640,-1669.21960,13.3359, 'cylinder',12, 0, 0, 255, 0) 
brama1 = createObject ( 980,2487.80640,-1669.21960,13.3359, 0, 0, 0 ) 
setElementDimension(brama1, 0)
setElementDimension(marker1, 0)
function MarkerHit1 (hitPlayer, matchingDimension) 
if getElementType( hitPlayer ) == "player" then 

 --if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitPlayer)), aclGetGroup("Everyone")) then
moveObject ( brama1, 2500, 2487.80640,-1669.21960,13.3359-7) 
addCommandHandler("o", MarkerHit1 )
end 
end 
 






function MarkerLeave1 (thePlayer) 
moveObject ( brama1, 2500, 2487.80640,-1669.21960,13.3359) 
end 

addEventHandler ( "onMarkerLeave", marker1, MarkerLeave1 ) 
addEventHandler ( "onMarkerHit", marker1, MarkerHit1 )


ps. chce na komende ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-16, 11:36


Xrent

-






Wiek: 22
Na forum: 3188 dni
Posty: 230
Nick w MP: Pazdam

Piwa: 535

Respekt: 295,3
Respekt: 295,3Respekt: 295,3Respekt: 295,3

Ostrzeżeń: 60%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-16, 13:49


krystek77







Wiek: 28
Na forum: 4172 dni
Posty: 135
Nick w MP: Krystek

Piwa: 176

Respekt: 125,3
Respekt: 125,3

"Xrent" napisał/a:


Okej juz sobie poradze dzieki ;)

Postaw piwo autorowi tego posta
 

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