Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: drzwi/brama
1. Drzwi/brama
Zrobi?em drzwi i zrobi?em, aby by?y w interiorze, tylko nie uda?o mi si? zrobi? aby si? rusza?y.


myMarker4 
= createMarker( 298.20001, 892.20001, 1890.6, 'corona', 10.0, 0, 0, 255, 0)
bra4 = createObject ( 1500, 298.20001, 892.20001, 1890.6 )
setElementInterior(bra4, 9)




function 
MarkerHit4  (hitPlayer, matchingDimension)
local playera = hitPlayer
if getElementType( playera ) == "player" then
if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( playera ) ), aclGetGroup( 'Policja' ) )  then  
moveObject 
( bra4, 2500, 298.20001, 888.20001, 1890.6)
setElementInterior(moveObject, 9)
end
end
end



function MarkerLeave4 (thePlayer)
moveObject ( bra4, 2500, 298.20001, 892.20001, 1890.6)
setElementInterior(bra4, 9)
end

addEventHandler 
( "onMarkerLeave", myMarker4, MarkerLeave4 )
addEventHandler ( "onMarkerHit", myMarker4, MarkerHit4 )