[YARDIM] ACL Ayarlama

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı burnumacidi55

  • Yeni Üye
  • *
    • İleti: 10
: 19 Ekim 2019, 21:03:09
Bu ayarladığım interiorlar dan sadece Adminler girebilecek. Admin dışında girmek isteyenlere uyarı gelmesini istiyorum. Ayarlayabilecek  varmı zahmet olmazsa :):) Teşekkürler.

lua;

Spoiler for Hiden:
MarkerCAS = createMarker (1422.1999511719, -1180, 27.60000038147, "arrow", 2.5, 214, 131, 0, 255 )                -- Giriş Yeri
MarkerSAID = createMarker (2741.3000488281, -7902.5, 2154.3000488281, "arrow", 2.5, 214, 131, 0, 255 )            -- Cikis Yeri

MarkerCAS1 = createMarker (1426.0999755859, -1219.5, 196.69999694824, "arrow", 2.5, 214, 131, 0, 255 )            -- Giriş Yeri
MarkerSAID1 = createMarker (2735.6000976563, -7896.6000976563, 2154.3000488281, "arrow", 2.5, 214, 131, 0, 255 )  -- Cikis Yeri
setElementInterior(MarkerSAID, 0)

function IntSTAFF(thePlayer)
if source == MarkerCAS then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 2744.5930175781, -7902.5747070313, 2152.7009277344, true) -- Giris Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), IntSTAFF)

function SaidSTAFF(thePlayer)
if source == MarkerSAID then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 1422.2197265625, -1176.5166015625, 25.9921875, true)   -- Cikis Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), SaidSTAFF)


function IntSTAFF(thePlayer)
if source == MarkerCAS1 then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 2735.7248535156, -7893.6733398438, 2152.6999511719, true)  -- Giris Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), IntSTAFF)

function SaidSTAFF(thePlayer)
if source == MarkerSAID1 then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 1423.48046875, -1219.4677734375, 195.046875, true)    -- Cikis Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), SaidSTAFF)





 


MTASATURK

[YARDIM] ACL Ayarlama
« : 19 Ekim 2019, 21:03:09 »

Çevrimdışı Paradox

  • Kurucu
  • *
    • İleti: 684
  • SH Gaming
Yanıtla #1 : 19 Ekim 2019, 21:10:09
Kod
 MarkerCAS = createMarker (1422.1999511719, -1180, 27.60000038147, "arrow", 2.5, 214, 131, 0, 255 )                -- Giriş Yeri
MarkerSAID = createMarker (2741.3000488281, -7902.5, 2154.3000488281, "arrow", 2.5, 214, 131, 0, 255 )            -- Cikis Yeri

MarkerCAS1 = createMarker (1426.0999755859, -1219.5, 196.69999694824, "arrow", 2.5, 214, 131, 0, 255 )            -- Giriş Yeri
MarkerSAID1 = createMarker (2735.6000976563, -7896.6000976563, 2154.3000488281, "arrow", 2.5, 214, 131, 0, 255 )  -- Cikis Yeri
setElementInterior(MarkerSAID, 0)

function isAdmin(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
return true
end
return false
end

function IntSTAFF(thePlayer)
if source == MarkerCAS and isAdmin(thePlayer) then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 2744.5930175781, -7902.5747070313, 2152.7009277344, true) -- Giris Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), IntSTAFF)

function SaidSTAFF(thePlayer)
if source == MarkerSAID and isAdmin(thePlayer) then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 1422.2197265625, -1176.5166015625, 25.9921875, true)   -- Cikis Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), SaidSTAFF)


function IntSTAFF(thePlayer)
if source == MarkerCAS1 and isAdmin(thePlayer) then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 2735.7248535156, -7893.6733398438, 2152.6999511719, true)  -- Giris Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), IntSTAFF)

function SaidSTAFF(thePlayer)
if source == MarkerSAID1 and isAdmin(thePlayer) then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 1423.48046875, -1219.4677734375, 195.046875, true)    -- Cikis Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), SaidSTAFF)
 


Çevrimdışı burnumacidi55

  • Yeni Üye
  • *
    • İleti: 10
Yanıtla #2 : 19 Ekim 2019, 21:25:45
Linki görebilmek için Kayıt olun yada Giriş yapın.
Kod
 MarkerCAS = createMarker (1422.1999511719, -1180, 27.60000038147, "arrow", 2.5, 214, 131, 0, 255 )                -- Giriş Yeri
MarkerSAID = createMarker (2741.3000488281, -7902.5, 2154.3000488281, "arrow", 2.5, 214, 131, 0, 255 )            -- Cikis Yeri

MarkerCAS1 = createMarker (1426.0999755859, -1219.5, 196.69999694824, "arrow", 2.5, 214, 131, 0, 255 )            -- Giriş Yeri
MarkerSAID1 = createMarker (2735.6000976563, -7896.6000976563, 2154.3000488281, "arrow", 2.5, 214, 131, 0, 255 )  -- Cikis Yeri
setElementInterior(MarkerSAID, 0)

function isAdmin(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
return true
end
return false
end

function IntSTAFF(thePlayer)
if source == MarkerCAS and isAdmin(thePlayer) then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 2744.5930175781, -7902.5747070313, 2152.7009277344, true) -- Giris Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), IntSTAFF)

function SaidSTAFF(thePlayer)
if source == MarkerSAID and isAdmin(thePlayer) then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 1422.2197265625, -1176.5166015625, 25.9921875, true)   -- Cikis Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), SaidSTAFF)


function IntSTAFF(thePlayer)
if source == MarkerCAS1 and isAdmin(thePlayer) then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 2735.7248535156, -7893.6733398438, 2152.6999511719, true)  -- Giris Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), IntSTAFF)

function SaidSTAFF(thePlayer)
if source == MarkerSAID1 and isAdmin(thePlayer) then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 1423.48046875, -1219.4677734375, 195.046875, true)    -- Cikis Yerinin spawni
setTimer(setPedRotation, 800, 2, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), SaidSTAFF)
Tamam, Teşekkür ederimm, Ellerine Sağlık

Mesaj Birleştirildi: 19 Ekim 2019, 21:29:20
Ayrıca bu markerı animasyon haline getirebiliyor muyuz? Hani yukarı aşağı doğru hareket edecek
« Son Düzenleme: 19 Ekim 2019, 21:29:20 Gönderen: burnumacidi55 »
 


Çevrimdışı VaTaN

  • Bilgin Üye
  • *
    • İleti: 270
Yanıtla #3 : 20 Ekim 2019, 13:34:00
Linki görebilmek için Kayıt olun yada Giriş yapın.
Tamam, Teşekkür ederimm, Ellerine Sağlık

Mesaj Birleştirildi: 19 Ekim 2019, 21:29:20
Ayrıca bu markerı animasyon haline getirebiliyor muyuz? Hani yukarı aşağı doğru hareket edecek

marker cylinder ise Linki görebilmek için Kayıt olun yada Giriş yapın.
 


Çevrimdışı burnumacidi55

  • Yeni Üye
  • *
    • İleti: 10
Yanıtla #4 : 20 Ekim 2019, 16:18:32
Linki görebilmek için Kayıt olun yada Giriş yapın.
marker cylinder ise Linki görebilmek için Kayıt olun yada Giriş yapın.
Hayır demek istediğim, Arrow olan sabit ama ben onun yukarı aşağı dogru animasyonlu istiyorum
 


Çevrimdışı elydric

  • Yeni Üye
  • *
    • İleti: 30
Yanıtla #5 : 20 Ekim 2019, 16:31:47
Linki görebilmek için Kayıt olun yada Giriş yapın.
Hayır demek istediğim, Arrow olan sabit ama ben onun yukarı aşağı dogru animasyonlu istiyorum

Anladığım kadarıyla istediğin şey arrow marker'n aşağı-yukarı animasyonlu hali, böyle bir kod olmadığını biliyorum ama Linki görebilmek için Kayıt olun yada Giriş yapın. gibi dx kodlarıyla kendine bi arrow çizip aşağı yukarı animasyonunu yapabilirsin  :P
 


MTASATURK

Ynt: [YARDIM] ACL Ayarlama
« Yanıtla #5 : 20 Ekim 2019, 16:31:47 »

Çevrimdışı burnumacidi55

  • Yeni Üye
  • *
    • İleti: 10
Yanıtla #6 : 20 Ekim 2019, 19:37:53
Linki görebilmek için Kayıt olun yada Giriş yapın.
Anladığım kadarıyla istediğin şey arrow marker'n aşağı-yukarı animasyonlu hali, böyle bir kod olmadığını biliyorum ama Linki görebilmek için Kayıt olun yada Giriş yapın. gibi dx kodlarıyla kendine bi arrow çizip aşağı yukarı animasyonunu yapabilirsin  :P
Eyw