[YARDIM] Acl'den Vip Yetki Grubu Oluşturma Sorunu

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı Fakir

  • Yeni Üye
  • *
    • İleti: 15
Merhaba Arkadaşlar benim bir sunucum var vip yetki panelli ekledim

Vip Yetki panelli açılması için benden acl den vip grubu açmamı istedi ve bende açtım ama çalışmıyor
 Vip Group da açık ama F2 bastığım halde vip sistemi açılmıyor ne yapmam gerek?
« Son Düzenleme: 11 Nisan 2019, 07:37:44 Gönderen: Narkoz »
 


MTASATURK


Çevrimdışı Ky

  • Uzman Üye
  • *
    • İleti: 614
Yanıtla #1 : 17 Mart 2019, 21:12:45
Kodları atarmısın ?
 


Çevrimdışı sworn

  • Yeni Üye
  • *
    • İleti: 22
Yanıtla #2 : 17 Mart 2019, 21:14:21
Linki görebilmek için Kayıt olun yada Giriş yapın.
Kodları atarmısın ?

Linki görebilmek için Kayıt olun yada Giriş yapın.  kardeşim hayla bekliyorum şu klan panele turf sisteminin fonksiyonlarını eklicektin ?
 


Çevrimdışı Fakir

  • Yeni Üye
  • *
    • İleti: 15
Yanıtla #3 : 18 Mart 2019, 16:01:08
Linki görebilmek için Kayıt olun yada Giriş yapın.
Kodları atarmısın ?

Linki görebilmek için Kayıt olun yada Giriş yapın.
scripti yükledim ama acl den vip grubu oluşuk olduğu halde okumuyor.
 


Çevrimdışı VaTaN

  • Bilgin Üye
  • *
    • İleti: 270
Yanıtla #4 : 18 Mart 2019, 16:09:37
Linki görebilmek için Kayıt olun yada Giriş yapın.
Linki görebilmek için Kayıt olun yada Giriş yapın.
scripti yükledim ama acl den vip grubu oluşuk olduğu halde okumuyor.

vips lua daki 3.satıra bak Oradaki VIP yazan yeri kopyala bide onu oluştur olmassa orayı değiştir başka oluştur.

Kod

if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("VIP")) then --VIP YAZAN YER ACL GRUP

 


Çevrimdışı Fakir

  • Yeni Üye
  • *
    • İleti: 15
Yanıtla #5 : 18 Mart 2019, 19:32:03
olmadı vips.lua nın içi :

Kod
kurucu_yazirengi = "#111111",addEventHandler("onPlayerLogin", root,
function()
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("VIP")) then
setElementData(source,'vip',true)
outputChatBox("[Vip] VIP panelinizi açmak için 'F2' tuşuna basın.", player, 255, 255, 0, true )
else
    setElementData(source,'vip',false)
    end
end)

function setVipSkin (localPlayer)
setPedSkin ( localPlayer, 280 )
end
addEvent( "mage",true)
addEventHandler ( "mage", getRootElement(), setVipSkin )

function setArmorEla (player, amount)
    if getPedArmor( player) == 100 then
   outputChatBox ( "[Vip] Zaten Zırhınız Vardır.", player, 255, 0, 0, true )
else
   setPedArmor ( player, 100 ) 
       outputChatBox("[Vip] Zırh Alındı.", player, 0, 255, 0, true)    
end
end
addEvent( "magePukaSudui",true)
addEventHandler ( "magePukaSudui", getRootElement(), setArmorEla )

function fixVahaneNe ( player )
    if isPedInVehicle ( player ) then
local theVehicle = getPedOccupiedVehicle ( player )
    if getElementHealth( theVehicle ) < 1000 then
    fixVehicle( theVehicle )
        else
outputChatBox ( "[Vip] Aracınızın Hasarı Yok!", player, 255, 0, 0, true )
        end
else
       outputChatBox ( "[Vip] Bunun İcin Araca Binmelisiniz!", player, 255, 0, 0, true )
    end
end
addEvent( "magePukaKahai",true)
addEventHandler ( "magePukaKahai", getRootElement(), fixVahaneNe )

function setJetPack ( player )
   if not doesPedHaveJetPack ( player ) then                   
      local status = givePedJetPack ( player )                 
      if not status then
         outputConsole ( "Jetpack Verilemedi.", player )   
      end
   else
      local status = removePedJetPack ( player )             
      if ( not status ) then
         outputConsole ( "Jetpack Kaldırılamadı.", player )
      end
   end
end
addEvent( "magePukaRathui",true)
addEventHandler ( "magePukaRathui", getRootElement(), setJetPack )

local vehi = {}
     
function spawnVeh(id)
   
    local x, y, z = getElementPosition(source)
    if isElement(vehi[source]) then destroyElement(vehi[source])
end
    vehi[source] = createVehicle(id, x, y, z )
warpPedIntoVehicle ( source, vehi[source] )
 end
addEvent("CreVehice",true)
addEventHandler("CreVehice", root, spawnVeh)
     
addEventHandler("onPlayerQuit", root,
function()
    if isElement(vehi[source]) then
        destroyElement(vehi[source])
        vehi[source] = nil
    end
end)

function rhinospawn(id)
if getPlayerMoney(source) >= 10000000 then
    if isPedInVehicle ( source ) then
    outputChatBox ( "[Vip] Bu İslem İcin Aracınızdan Cıkmalısınız!", player, 255, 0, 0, true )
else
       local x, y, z = getElementPosition(source)
       rhinoeka[source] = createVehicle(432, x, y, z)
   takePlayerMoney (source, 10000000)
   warpPedIntoVehicle ( source, rhinoeka[source] )
    end
else
    outputChatBox ( "[Vip] Paranız Yetersiz!", player, 255, 0, 0, true )
end
 end
addEvent("CreRhino",true)
addEventHandler("CreRhino", root, rhinospawn)

huntereka={}
rhinoeka={}


function hunterspawn(id)
    if getPlayerMoney(source) >= 1000000 then
        if isPedInVehicle ( source ) then
        outputChatBox ( "[Vip] Bu İslem İcin Aracınızdan Cıkmalısınız.", player, 255, 0, 0, true )
    else
            local x, y, z = getElementPosition(source)
            huntereka[source] = createVehicle(520, x, y, z)
    takePlayerMoney (source, 1000000)
        warpPedIntoVehicle ( source, huntereka[source] )
        end
else
    outputChatBox ( "[Vip] Paranız Yetersiz!", player, 255, 0, 0, true )
    end
 end
addEvent("CreHunter",true)
addEventHandler("CreHunter", root, hunterspawn)

addEventHandler("onPlayerQuit", root,
function()
    if isElement(huntereka[source]) then
        destroyElement(huntereka[source])
    end
end)

addEventHandler("onPlayerQuit", root,
function()
    if isElement(rhinoeka[source]) then
        destroyElement(rhinoeka[source])
    end
end)

function giveWeaponsOnSpawn ()
    if getPlayerMoney(source) >= 1000000 then
        giveWeapon ( source, 38, 200 )
    takePlayerMoney (source, 1000000)
    else
        outputChatBox ( "[Vip] Paranız Yetersiz!", player, 255, 0, 0, true )
    end   
end
addEvent("giveMini",true)
addEventHandler ( "giveMini", root, giveWeaponsOnSpawn )
« Son Düzenleme: 11 Nisan 2019, 07:39:19 Gönderen: Narkoz »
 


MTASATURK

Ynt: [YARDIM] Acl'den vip yetki grubu oluşturma Sorunu
« Yanıtla #5 : 18 Mart 2019, 19:32:03 »

Çevrimdışı VaTaN

  • Bilgin Üye
  • *
    • İleti: 270
Yanıtla #6 : 19 Mart 2019, 15:57:23
Linki görebilmek için Kayıt olun yada Giriş yapın. Vip.lua yı bu kodlar ile değiştir aynı özellikler sadece bind ekledim. vips lua daki VIP i istediğin gibi ayarla

Kod

Vip.lua


GUIEditor = {
    checkbox = {},
    staticimage = {},
    label = {},
    gridlist = {},
    window = {},
radiobutton = {},
    button = {}
}


        panel = guiCreateWindow(427, 119, 503, 612, "VIP Panel | By_Zenci", false)
        guiWindowSetSizable(panel, false)
        guiSetAlpha(panel, 1.00)
        guiSetProperty(panel, "CaptionColour", "FFFFFF00")

        GUIEditor.label[1] = guiCreateLabel(88, 22, 356, 57, "                            Vip Paneline Hosgeldiniz.\n        Bu Panelde Bir Cok Vip Ayrıcalıgını Kullanabilirsiniz.", false, panel)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 255, 255, 0)

        GUIEditor.label[2] = guiCreateLabel(17, 404, 298, 28, "", false, GUIEditor.label[1])

        GUIEditor.staticimage[1] = guiCreateStaticImage(164, 55, 172, 101, "mtalogo.png", false, panel)
        GUIEditor.label[3] = guiCreateLabel(161, 140, 185, 25, "                     Vip Uyelik", false, panel)
        guiSetFont(GUIEditor.label[3], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[3], 255, 255, 0)
        GUIEditor.label[4] = guiCreateLabel(0, 141, 504, 15, "________________________________________________________________________________", false, panel)
        guiLabelSetColor(GUIEditor.label[4], 255, 255, 0)
        guiLabelSetHorizontalAlign(GUIEditor.label[4], "left", true)

    vehi =
            {
            {"Flash", 565},{"Nrg_500", 522},{"Maveric", 487},{"Sultea", 560},
               
            }



            wahanafree = guiCreateGridList(10, 206, 152, 156, false, panel)
            guiGridListAddColumn(wahanafree, "Arabalar", 0.9)

            for i,puk in ipairs(vehi) do
                 row = guiGridListAddRow(wahanafree)
                 guiGridListSetItemText(wahanafree, row, 1, tostring(puk[1]), false, false)
                 guiGridListSetItemData(wahanafree, row, 1, tostring(puk[2]))
guiGridListSetItemColor(wahanafree, row, 1, 0, 255, 0, 255, tostring(puk[2]))
            end
GUIEditor.label[15] = guiCreateLabel(15, 163, 476, 16, "Not: Vip Arabalarından İndiginizde Ozellikler Otomatik İptal Edilir", false, panel)
        guiLabelSetColor(GUIEditor.label[15], 253, 0, 0)
        GUIEditor.label[5] = guiCreateLabel(15, 189, 163, 17, "Vip Aracları:", false, panel)
        guiSetFont(GUIEditor.label[5], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[5], 255, 0, 0)
        GUIEditor.button[2] = guiCreateButton(10, 372, 152, 30, "Olustur", false, panel)
        guiSetFont(GUIEditor.button[2], "default-bold-small")
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00FF00")
        GUIEditor.label[6] = guiCreateLabel(336, 181, 16, 235, "|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|", true, panel)
        guiLabelSetColor(GUIEditor.label[6], 255, 255, 0)
        sethealthbtn = guiCreateButton(176, 206, 156, 26, "Can Doldur 100%", false, panel)
        guiSetFont(sethealthbtn, "default-bold-small")
        guiSetProperty(sethealthbtn, "NormalTextColour", "FF00FF00")
        GUIEditor.button[4] = guiCreateButton(176, 237, 156, 26, "Aracı Yenile", false, panel)
        guiSetFont(GUIEditor.button[4], "default-bold-small")
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF00FF00")
        GUIEditor.button[5] = guiCreateButton(176, 330, 156, 26, "Jetpack Al", false, panel)
        guiSetFont(GUIEditor.button[5], "default-bold-small")
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF00FF00")
        GUIEditor.button[6] = guiCreateButton(176, 298, 156, 26, "Ozel Vip Skini", false, panel)
        guiSetFont(GUIEditor.button[6], "default-bold-small")
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF00FF00")
        setarmorbtn = guiCreateButton(176, 267, 156, 26, "Zırh Al", false, panel)
        guiSetFont(setarmorbtn, "default-bold-small")
        guiSetProperty(setarmorbtn, "NormalTextColour", "FF00FF00")
GUIEditor.button[7] = guiCreateButton(176, 362, 156, 26, "Dokunulmazlık Modu", true, panel)
        guiSetFont(GUIEditor.button[7], "default-bold-small")
        guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF00FF00")
        GUIEditor.gridlist[2] = guiCreateGridList(344, 209, 153, 157, true, panel)
        guiGridListAddColumn(GUIEditor.gridlist[2], "Skins", 0.9)
        guiGridListAddRow(GUIEditor.gridlist[2])
guiGridListAddRow(GUIEditor.gridlist[2])
guiGridListAddRow(GUIEditor.gridlist[2])
guiGridListAddRow(GUIEditor.gridlist[2])
guiGridListAddRow(GUIEditor.gridlist[2])
guiGridListAddRow(GUIEditor.gridlist[2])
guiGridListAddRow(GUIEditor.gridlist[2])
        guiGridListAddRow(GUIEditor.gridlist[2])
        guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "Sweet", false, false)
        guiGridListSetItemColor(GUIEditor.gridlist[2], 0, 1, 216, 104, 4, 255)
        guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "SWAT", false, false)
        guiGridListSetItemColor(GUIEditor.gridlist[2], 1, 1, 216, 104, 4, 255)
        guiGridListSetItemText(GUIEditor.gridlist[2], 2, 1, "Ryder", false, false)
        guiGridListSetItemColor(GUIEditor.gridlist[2], 2, 1, 216, 104, 4, 255)
        guiGridListSetItemText(GUIEditor.gridlist[2], 3, 1, "Police", false, false)
        guiGridListSetItemColor(GUIEditor.gridlist[2], 3, 1, 216, 104, 4, 255)
        guiGridListSetItemText(GUIEditor.gridlist[2], 4, 1, "Og loc", false, false)
        guiGridListSetItemColor(GUIEditor.gridlist[2], 4, 1, 216, 104, 4, 255)
        guiGridListSetItemText(GUIEditor.gridlist[2], 5, 1, "CJ", false, false)
        guiGridListSetItemColor(GUIEditor.gridlist[2], 5, 1, 216, 104, 4, 255)
        guiGridListSetItemText(GUIEditor.gridlist[2], 6, 1, "BIG smoke", false, false)
        guiGridListSetItemColor(GUIEditor.gridlist[2], 6, 1, 216, 104, 4, 255)
        guiGridListSetItemText(GUIEditor.gridlist[2], 7, 1, "ARMY", false, false)
        guiGridListSetItemColor(GUIEditor.gridlist[2], 7, 1, 216, 104, 4, 255)
        GUIEditor.button[8] = guiCreateButton(342, 376, 152, 30, "Set", true, panel)
        guiSetFont(GUIEditor.button[8], "default-bold-small")
        guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF00FF00")
        GUIEditor.label[7] = guiCreateLabel(186, 189, 163, 17, "Vip Yetenekleri:", false, panel)
        guiSetFont(GUIEditor.label[7], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[7], 255, 0, 0)
        GUIEditor.label[8] = guiCreateLabel(349, 189, 163, 17, "Sizin Skininiz:", true, panel)
        guiSetFont(GUIEditor.label[8], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[8], 255, 255, 0)
        GUIEditor.label[9] = guiCreateLabel(166, 179, 16, 235, "|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|", false, panel)
        guiLabelSetColor(GUIEditor.label[9], 0, 0, 0)
        GUIEditor.label[10] = guiCreateLabel(10, 406, 504, 15, "________________________________________________________________________________", false, panel)
        guiLabelSetColor(GUIEditor.label[10], 235, 114, 7)
        GUIEditor.label[11] = guiCreateLabel(90, 424, 367, 17, "Asagıda Oyuncu ve Vip Bilgilerinizi Gorebilirsiniz.", false, panel)
        guiSetFont(GUIEditor.label[11], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[11], 253, 0, 0)
        GUIEditor.label[12] = guiCreateLabel(28, 472, 192, 17, "Vip Uyelik Turu:: N/A", false, panel)
        guiSetFont(GUIEditor.label[12], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[12], 15, 255, 0)
        GUIEditor.label[13] = guiCreateLabel(28, 455, 192, 17, "Vip Uyelik Suresi : N/A", false, panel)
        guiSetFont(GUIEditor.label[13], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[13], 15, 255, 0)
        GUIEditor.label[14] = guiCreateLabel(28, 489, 192, 17, "Kullanıcı Adı : N/A", false, panel)
        guiSetFont(GUIEditor.label[14], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[14], 15, 255, 0)
        GUIEditor.label[15] = guiCreateLabel(160, 547, 483, 15, "VIP panel by_Zenci", false, panel)
        guiSetFont(GUIEditor.label[15], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[15], 113, 207, 12)
        GUIEditor.label[16] = guiCreateLabel(10, 516, 504, 15, "________________________________________________________________________________", false, panel)
        guiLabelSetColor(GUIEditor.label[16], 235, 114, 7)
        guiLabelSetHorizontalAlign(GUIEditor.label[16], "left", true)
GUIEditor.checkbox[1] = guiCreateCheckBox(182, 376, 207, 15, "Vip Tagını Gizle", false, false, panel)
        guiSetFont(GUIEditor.checkbox[1], "default-bold-small")
        GUIEditor.radiobutton[1] = guiCreateRadioButton(182, 376, 207, 15, "Vip Tagını Gizle", true, panel)
        guiSetFont(GUIEditor.radiobutton[1], "default-bold-small")
        guiRadioButtonSetSelected(GUIEditor.radiobutton[1], true)
GUIEditor.button[8] = guiCreateButton(337, 206, 156, 26, "Minigun\n($200 000)", false, panel)
        guiSetFont(GUIEditor.button[8], "default-bold-small")
        guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF00FF00")
GUIEditor.button[9] = guiCreateButton(337, 237, 156, 26, "Hydra\n($1 000 000)", false, panel)
        guiSetFont(GUIEditor.button[9], "default-bold-small")
        guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FF00FF00")
        GUIEditor.button[10] = guiCreateButton(337, 267, 156, 26, "Rhino\n($10 000 000)", false, panel)
        guiSetFont(GUIEditor.button[10], "default-bold-small")
        guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FF00FF00") 

function closewin()
guiSetVisible (panel,false)
end
addEventHandler ("onClientResourceStart",root,closewin)
--Bindkey

function acpanel()
if guiGetVisible ( panel) then
guiSetVisible ( panel, false)
showCursor(false)
guiSetInputEnabled(false)
else
guiSetVisible ( panel, true)
showCursor(true)
end
end
bindKey("F2", "down", acpanel)

addEvent("onClientKey", true)
addEventHandler("onClientKey", root, playerPressedKey)



-----abilities-------


function health()
    setElementHealth(localPlayer, 100)
    outputChatBox("[Vip] Can Dolduruldu.", 255, 255, 0, true)  ---health dana eka----
end
addEventHandler ("onClientGUIClick", sethealthbtn, health, false)

function armor()
  triggerServerEvent("magePukaSudui",getRootElement(),localPlayer)   ----armor dana eka----
end
addEventHandler ("onClientGUIClick", setarmorbtn, armor, false)

function fixvehicle()
    triggerServerEvent("magePukaKahai",getRootElement(),localPlayer)                                         ------car eka hadana eka----
end
addEventHandler("onClientGUIClick", GUIEditor.button[4], fixvehicle, false)

function skinvip()
  triggerServerEvent("magePukaKalui",getRootElement(),localPlayer)
  ---skin vip-----
end
addEventHandler ("onClientGUIClick", GUIEditor.button[6], skinvip, false)

function jett()
  triggerServerEvent("magePukaRathui",getRootElement(),localPlayer)                                       ----jetpackeka---
end
addEventHandler ("onClientGUIClick", GUIEditor.button[5], jett, false)

function ss()
    local row, col = guiGridListGetSelectedItem(wahanafree) 
    if (row and col and row ~= -1 and col ~= -1) then
        local model = tonumber(guiGridListGetItemData(wahanafree, row, 1))
        if model ~= "" then
            triggerServerEvent("CreVehice", localPlayer, model)
outputChatBox("[Vip] Arac Basarıyla Alındı.", 0, 255, 0, true)
        end
    end
end
addEventHandler("onClientGUIClick", GUIEditor.button[2], ss, false)

function rhinoS()
    triggerServerEvent("CreRhino", localPlayer)
end
addEventHandler("onClientGUIClick", GUIEditor.button[10], rhinoS, false)

function hunterS()
    triggerServerEvent("CreHunter", localPlayer)
end
addEventHandler("onClientGUIClick", GUIEditor.button[9], hunterS, false)

function miniS()
    triggerServerEvent("giveMini", localPlayer)
end
addEventHandler("onClientGUIClick", GUIEditor.button[8], miniS, false)




function checkboxBleepWhenClicked()
        if ( guiCheckBoxGetSelected(source) ) then

        else

        end
end
addEventHandler("onClientGUIClick", GUIEditor.checkbox[1], checkboxBleepWhenClicked, false)