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 )