[YARDIM]Acl özel kapı

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı #Raquel

  • Yeni Üye
  • *
    • İleti: 32
  • kendimce takılıyorum
: 07 Ağustos 2020, 18:22:47
Resimde bulunan kapı yaklaşınca açılmakta bunu  admin acl sinde olan kişinin /kapıac kodunu yazıp açmasını nasıl sağlayabilirim ?
resim
Spoiler for Hiden:
Linki görebilmek için Kayıt olun yada Giriş yapın.
kod
Spoiler for Hiden:
Kod
checkGateMarker = createMarker ( -1770.279296875, 984.505859375, 23.207809448242, "corona", 6.0, 0, 0, 255, 0 )

function createGate ()
gatePolice1 = createObject ( 980, -1770.279296875, 984.505859375, 25.281204223633, 0, 0, 90)

end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate )


function gateCheckingTeam ( thePlayer, matchingDimension )
moveObject ( gatePolice1, 2000, -1770.279296875, 984.505859375, 30.856199264526 )

end
addEventHandler ( "onMarkerHit", checkGateMarker, gateCheckingTeam )



function movingBackPolice ( thePlayer, matchingDimension )
moveObject ( gatePolice1, 2000, -1770.279296875, 984.505859375, 25.281204223633 )

end
addEventHandler ( "onMarkerLeave", checkGateMarker, movingBackPolice )


checkGateMarker = createMarker ( -1735.3383789063, 940.0576171875, 24.74220085144, "corona", 3.0, 0, 0, 255, 0 )

function createGate ()
gatePolice2 = createObject ( 980, -1736.6300048828, 943.79010009766, 26.390581130981, 0, 0, 180)

end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate )


function gateCheckingTeam ( thePlayer, matchingDimension )
moveObject ( gatePolice2, 2000, -1736.6298828125, 943.7900390625, 30.915592193604 )

end
addEventHandler ( "onMarkerHit", checkGateMarker, gateCheckingTeam )



function movingBackPolice ( thePlayer, matchingDimension )
moveObject ( gatePolice2, 2000, -1736.6300048828, 943.79010009766, 26.390581130981 )

end
addEventHandler ( "onMarkerLeave", checkGateMarker, movingBackPolice )



checkGateMarker = createMarker ( -1772.1811523438, 948.57299804688, 24.74220085144, "corona", 3.0, 0, 0, 255, 0 )

function createGate ()
gatePolice3 = createObject ( 980, -1771.9753417969, 943.80291748047, 26.390581130981, 0, 0, 180)

end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate )


function gateCheckingTeam ( thePlayer, matchingDimension )
moveObject ( gatePolice3, 2000, -1771.974609375, 943.802734375, 30.890588760376 )

end
addEventHandler ( "onMarkerHit", checkGateMarker, gateCheckingTeam )



function movingBackPolice ( thePlayer, matchingDimension )
moveObject ( gatePolice3, 2000, -1771.9753417969, 943.80291748047, 26.390581130981 )

end
addEventHandler ( "onMarkerLeave", checkGateMarker, movingBackPolice )

createBlip( -1754.2502441406, 963.85913085938, 23.882827758789,35)

function pedLoad()
        ped1 = createPed(147, -1754.4813232422, 997.32934570313, 34.290245056152)
        setPedRotation(ped1, 180)
end
addEventHandler("onResourceStart", resourceRoot, pedLoad)

function pedLoad()
        ped2 = createPed(189, -1755.9383544922, 956.68304443359, 24.532037734985)
        setPedRotation(ped2, 180)
end
addEventHandler("onResourceStart", resourceRoot, pedLoad)

function pedLoad()
        ped3 = createPed(189, -1752.4119873047, 956.68963623047, 24.532037734985)
        setPedRotation(ped3, 180)
end
addEventHandler("onResourceStart", resourceRoot, pedLoad)

function pedLoad()
        ped4 = createPed(165, -1756.3842773438, 1018.028137207, 75.682815551758)
        setPedRotation(ped4, 180)
end
addEventHandler("onResourceStart", resourceRoot, pedLoad)

function pedLoad()
        ped5 = createPed(165, -1753.1055908203, 1018.028137207, 75.682815551758)
        setPedRotation(ped5, 180)
end
addEventHandler("onResourceStart", resourceRoot, pedLoad)

local irAdentro = createMarker( -1754.2474365234, 963.68322753906, 23.882827758789, 'cylinder', 1.5, 255, 0, 0, 150 )
local irAfuera = createMarker( -1754.2657470703, 967.19677734375, 31.659481048584, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1754.2681884766, 968.92224121094, 32.359424591064 )
    outputChatBox ( "Otele hoşgeldin!",hitPlayer )      
end

addEventHandler( "onMarkerHit", irAdentro, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1754.2557373047, 961.98156738281, 24.632816314697 )
  outputChatBox ( "Yine bekleriz!",hitPlayer )
end

addEventHandler( "onMarkerHit", irAfuera, Salir )

local irAdentro2 = createMarker( -1716.8186035156, 1018.0784912109, 16.585899353027, 'cylinder', 1.5, 255, 0, 0, 150 )
local irAfuera2 = createMarker( -1739.6137695313, 990.52435302734, 31.60089302063, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1741.2933349609, 990.57513427734, 32.475917816162 )
    outputChatBox ( "Otele hoşgeldin!",hitPlayer )      
end

addEventHandler( "onMarkerHit", irAdentro2, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1718.4952392578, 1018.0866699219, 17.235889434814 )
  outputChatBox ( "Yine bekleriz!",hitPlayer )
end

addEventHandler( "onMarkerHit", irAfuera2, Salir )

local irPiso1 = createMarker( -1765.8333740234, 989.19323730469, 31.668926239014, 'cylinder', 1.5, 255, 0, 0, 150 )
local irRecepcion = createMarker( -1753.7108154297, 978.97430419922, 37.068923950195, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1753.7371826172, 980.67449951172, 38.068984985352 )
    outputChatBox ( "1ª Planta",hitPlayer )      
end

addEventHandler( "onMarkerHit", irPiso1, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1765.8405761719, 990.91748046875, 32.343940734863 )
  outputChatBox ( "Resepsiyon",hitPlayer )
end

addEventHandler( "onMarkerHit", irRecepcion, Salir )

local irPiso2 = createMarker( -1758.4924316406, 1026.3010253906, 43.170272827148, 'cylinder', 1.5, 255, 0, 0, 150 )
local irPiso1 = createMarker( -1753.6389160156, 1017.8068847656, 46.520324707031, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1753.5955810547, 1016.0344848633, 47.270370483398)
    outputChatBox ( "2ª Planta",hitPlayer )      
end

addEventHandler( "onMarkerHit", irPiso2, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1756.8408203125, 1026.2526855469, 44.145332336426 )
  outputChatBox ( "1ª Planta",hitPlayer )
end

addEventHandler( "onMarkerHit", irPiso1, Salir )

local irPiso3 = createMarker( -1758.4937744141, 970.0654296875, 52.710273742676, 'cylinder', 1.5, 255, 0, 0, 150 )
local irPiso2 = createMarker( -1753.587890625, 978.60595703125, 55.774337768555, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1753.5476074219, 980.25354003906, 56.57438659668)
    outputChatBox ( "3ª Planta",hitPlayer )      
end

addEventHandler( "onMarkerHit", irPiso3, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1756.9422607422, 970.05786132813, 53.53532409668)
  outputChatBox ( "2ª Planta",hitPlayer )
end

addEventHandler( "onMarkerHit", irPiso2, Salir )

local irPiso4 = createMarker( -1758.4517822266, 1026.3177490234, 61.985275268555, 'cylinder', 1.5, 255, 0, 0, 150 )
local irPiso3 = createMarker( -1753.6190185547, 1017.5720214844, 64.785308837891, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1753.6268310547, 1015.9704589844, 65.385345458984)
    outputChatBox ( "4ª Planta",hitPlayer )      
end

addEventHandler( "onMarkerHit", irPiso4, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1756.9327392578, 1026.2209472656, 62.585311889648)
  outputChatBox ( "3ª Planta",hitPlayer )
end

addEventHandler( "onMarkerHit", irPiso3, Salir )

local irPiso5 = createMarker( -1758.4641113281, 970.04626464844, 70.985275268555, 'cylinder', 1.5, 255, 0, 0, 150 )
local irPiso4 = createMarker( -1753.6494140625, 978.62164306641, 74.010124206543, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1753.708984375, 980.14440917969, 74.810173034668)
    outputChatBox ( "5ª Planta",hitPlayer )      
end

addEventHandler( "onMarkerHit", irPiso5, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1756.8875732422, 970.05395507813, 71.760322570801)
  outputChatBox ( "4ª Planta",hitPlayer )
end

addEventHandler( "onMarkerHit", irPiso4, Salir )

local irDiscoteca = createMarker( -1769.0582275391, 990.49993896484, 31.609481811523, 'cylinder', 1.5, 255, 0, 0, 150 )
local irRecepcion = createMarker( -1740.3770751953, 1000.2471313477, 3.0845017433167, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1740.3175048828, 998.72436523438, 3.8845047950745)
    outputChatBox ( "Discoteca",hitPlayer )      
end

addEventHandler( "onMarkerHit", irDiscoteca, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1767.4566650391, 990.43743896484, 32.40950012207)
  outputChatBox ( "Resepsiyon",hitPlayer )
end

addEventHandler( "onMarkerHit", irRecepcion, Salir )

local irPiscina = createMarker( -1769.0576171875, 994.9560546875, 31.659481048584, 'cylinder', 1.5, 255, 0, 0, 150 )
local irRecepcion = createMarker( -1751.4605712891, 1035.2683105469, 2.5681962966919, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1753.0871582031, 1035.3000488281, 3.3181991577148)
    outputChatBox ( "Spor salonu & havuz eğlence",hitPlayer )      
end

addEventHandler( "onMarkerHit", irPiscina, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1767.5107421875, 994.8623046875, 32.584510803223)
  outputChatBox ( "Resepsiyon",hitPlayer )
end

addEventHandler( "onMarkerHit", irRecepcion, Salir )

local irRestaurante = createMarker( -1760.49609375, 985.048828125, 31.609481811523, 'cylinder', 1.5, 255, 0, 0, 150 )
local irRecepcion = createMarker( -1798.7816162109, 974.38049316406, -1.8059241771698, 'cylinder', 1.5, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1798.7921142578, 976.03192138672, -1.1059248447418 )
    outputChatBox ( "Restaurant",hitPlayer )      
end

addEventHandler( "onMarkerHit", irRestaurante, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1758.89453125, 985.056640625, 32.484451293945 )
  outputChatBox ( "Resepsiyon",hitPlayer )
end

addEventHandler( "onMarkerHit", irRecepcion, Salir )

local irTaller = createMarker( -1705.6697998047, 1018.3415527344, 16.560953140259, 'cylinder', 3, 255, 0, 0, 150 )
local irParking = createMarker( -1653.5144042969, 1060.6065673828, -26.622653961182, 'cylinder', 3, 255, 0, 0, 150 )

function Entrar( hitPlayer, matchingDimension )

        setElementPosition ( hitPlayer, -1655.4769287109, 1051.9169921875, -25.472652435303 )
        setElementFrozen(hitPlayer, true)
        setTimer(setElementFrozen, 1000, 1, hitPlayer, false)
    outputChatBox ( "Garaj",hitPlayer )    
end

addEventHandler( "onMarkerHit", irTaller, Entrar )

function Salir( hitPlayer, matchingDimension )
  setElementPosition ( hitPlayer, -1700.3935546875, 1018.3717041016, 17.660936355591 )
  setElementFrozen(hitPlayer, true)
  setTimer(setElementFrozen, 1000, 1, hitPlayer, false)
  outputChatBox ( "Parking",hitPlayer )
end

addEventHandler( "onMarkerHit", irParking, Salir )



Mesaj Birleştirildi: 07 Ağustos 2020, 20:00:42
konu çöp
« Son Düzenleme: 07 Ağustos 2020, 20:00:42 Gönderen: #Raquel »
 


MTASATURK

[YARDIM]Acl özel kapı
« : 07 Ağustos 2020, 18:22:47 »

Çevrimdışı Leaver

  • laravel <3
  • Uzman Üye
  • *
    • İleti: 511
    • Esppa Software
Yanıtla #1 : 07 Ağustos 2020, 20:43:00
Konu sahibinin isteği üzerine konu çöp'e taşınmıştır.