0 Üye ve 1 Ziyaretçi konuyu incelemekte.
sGenislik,sUzunluk = guiGetScreenSize()Genislik,Uzunluk = 493,453X = (sGenislik/2) - (Genislik/2)Y = (sUzunluk/2) - (Uzunluk/2)panel= guiCreatepanel(X, Y, Genislik, Uzunluk, "Panel", false)function ackapat() if (guiGetVisible (panel) == true) then guiSetVisible(panel, false) showCursor(false) elseif (guiGetVisible (panel) == false) then guiSetVisible(panel, true) showCursor(true) endendaddEvent("acckapat", true)addEventHandler("acckapat", getRootElement(), ackapat)
function permission (source)if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("kim_Acıcak")) thentriggerClientEvent(source, "acckapat", getRootElement())endendaddCommandHandler("ac", permission)
local verilcekGrup = "Admin" -- hangi acl grubuna eklenicekaddCommandHandler("paraliaclver",function(oyuncu,komut,verilcekhesap) local hesapismi = getAccountName(getPlayerAccount(oyuncu)) if isObjectInACLGroup("user."..hesapismi,aclGetGroup("Console")) then -- eğer kodu yazan kişi Console grubunda ise if not hesapismi then outputChatBox("Lütfen bir hesap ismi gir. SYNTAX:/"..komut.." <hesappismi>",oyuncu,255,0,0) return end if not getAccount(verilcekhesap) then outputChatBox("Böyle bir hesap bulunamadı.",oyuncu,255,0,0) return end if isObjectInACLGroup("user."..verilcekhesap,aclGetGroup(verilcekGrup)) then outputChatBox("Bu hesap zaten "..verilcekGrup.." grubunda.",oyuncu,255,0,0) return end aclGroupAddObject(aclGetGroup(verilcekGrup),"user."..verilcekhesap) outputChatBox("'"..verilcekhesap"' isimli hesap başarıyla "..verilcekGrup.." grubuna eklendi.",oyuncu,255,0,0) local hesapOyuncu = getAccountPlayer(getAccount(verilcekhesap)) if hesapOyuncu then -- eğer oyundaysa verilen hesap givePlayerMoney(hesapOyuncu,100) -- para ver end endend)