Jump to content

x[طلب]x فانكشنات


Recommended Posts

function getPlayerAcls(thePlayer) 
    local acls = {} 
    local account = getPlayerAccount(thePlayer) 
    if (account) and not (isGuestAccount(account)) then 
        local accountName = getAccountName(account) 
        for i,group in ipairs(aclGroupList()) do 
            if (isObjectInACLGroup( "user." ..accountName, group)) then 
                local groupName = aclGroupGetName(group) 
                table.insert(acls, groupName) 
            end 
        end 
    end 
    return acls 
end 

https://wiki.multitheftauto.com/wiki/GetPlayerAcls

Link to comment
function getPlayerAcls(thePlayer) 
    local acls = {} 
    local account = getPlayerAccount(thePlayer) 
    if (account) and not (isGuestAccount(account)) then 
        local accountName = getAccountName(account) 
        for i,group in ipairs(aclGroupList()) do 
            if (isObjectInACLGroup( "user." ..accountName, group)) then 
                local groupName = aclGroupGetName(group) 
                table.insert(acls, groupName) 
            end 
        end 
    end 
    return acls 
end 

https://wiki.multitheftauto.com/wiki/GetPlayerAcls

وش اسوي فيه ذا ؟ :?:

Link to comment

جرب

GUIEditor = { 
    memo = {}, 
    button = {}, 
    edit = {}, 
    window = {}, 
} 
  
GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "لوحة معلومات الاعبين", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "اظهآر معلومات الحساب", false, GUIEditor.window[1]) 
GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) 
GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true)     
    ----- 
addEventHandler("onClientGUIClick",GUIEditor.button[1],function() 
plr = getPlayerFromName(guiGetText(GUIEditor.edit[1])) 
if plr then 
triggerServerEvent("Add", localPlayer,plr) 
else 
guiSetText(GUIEditor.memo[1],"Error") 
end 
end,false) 
------ 
addEvent("aad",true) 
addEventHandler("aad", root,function (name,acc,acl,serial,My,Ping) 
guiSetText(GUIEditor.memo[1],"\n Name:"..name.."\n Account :"..acc.."\n Groups :"..acl.."\n Serial :"..serial.."\n Money  
  
:"..My.."\n Ping : " ..Ping) 
end) 

    function getPlayerAcls(thePlayer) 
        local acls = {} 
        local account = getPlayerAccount(thePlayer) 
        if (account) and not (isGuestAccount(account)) then 
            local accountName = getAccountName(account) 
            for i,group in ipairs(aclGroupList()) do 
                if (isObjectInACLGroup( "user." ..accountName, group)) then 
                    local groupName = aclGroupGetName(group) 
                    table.insert(acls, groupName) 
                end 
            end 
        end 
        return acls 
    end 
  
addEvent("Add",true) 
addEventHandler("Add", root,function(Player) 
  
local acc = getAccountName(getPlayerAccount(Player)) 
local acl = getPlayerAcls(Player) 
local name = getPlayerName(Player) 
local serial = getPlayerSerial(Player) 
local My = getPlayerMoney(Player) 
local ping = getPlayerPing(Player) 
triggerClientEvent(client,"aad",client,name,acc,tostring( table.concat(acl, ", ") ),serial,My,ping) 
end) 
Link to comment
جرب

GUIEditor = { 
    memo = {}, 
    button = {}, 
    edit = {}, 
    window = {}, 
} 
  
GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "لوحة معلومات الاعبين", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "اظهآر معلومات الحساب", false, GUIEditor.window[1]) 
GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) 
GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true)     
    ----- 
addEventHandler("onClientGUIClick",GUIEditor.button[1],function() 
plr = getPlayerFromName(guiGetText(GUIEditor.edit[1])) 
if plr then 
triggerServerEvent("Add", localPlayer,plr) 
else 
guiSetText(GUIEditor.memo[1],"Error") 
end 
end,false) 
------ 
addEvent("aad",true) 
addEventHandler("aad", root,function (name,acc,acl,serial,My,Ping) 
guiSetText(GUIEditor.memo[1],"\n Name:"..name.."\n Account :"..acc.."\n Groups :"..acl.."\n Serial :"..serial.."\n Money  
  
:"..My.."\n Ping : " ..Ping) 
end) 

    function getPlayerAcls(thePlayer) 
        local acls = {} 
        local account = getPlayerAccount(thePlayer) 
        if (account) and not (isGuestAccount(account)) then 
            local accountName = getAccountName(account) 
            for i,group in ipairs(aclGroupList()) do 
                if (isObjectInACLGroup( "user." ..accountName, group)) then 
                    local groupName = aclGroupGetName(group) 
                    table.insert(acls, groupName) 
                end 
            end 
        end 
        return acls 
    end 
  
addEvent("Add",true) 
addEventHandler("Add", root,function(Player) 
  
local acc = getAccountName(getPlayerAccount(Player)) 
local acl = getPlayerAcls(Player) 
local name = getPlayerName(Player) 
local serial = getPlayerSerial(Player) 
local My = getPlayerMoney(Player) 
local ping = getPlayerPing(Player) 
triggerClientEvent(client,"aad",client,name,acc,tostring( table.concat(acl, ", ") ),serial,My,ping) 
end) 

لم اكتب اسم حسابي يطلع ايرو

كل ما اكتب حساب يطل ايرو

Link to comment

لم تتم التجربه

GUIEditor = {memo = {},button = {},edit = {},window = {},} 
GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "لوحة معلومات الاعبين", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "اظهآر معلومات الحساب", false, GUIEditor.window[1]) 
GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) 
GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true)     
----- 
addEventHandler("onClientGUIClick",GUIEditor.button[1],function() 
plr = guiGetText(GUIEditor.edit[1]) 
if plr then 
triggerServerEvent("Add", localPlayer,plr) 
else 
guiSetText(GUIEditor.memo[1],"Error") 
end 
end,false) 
------ 
addEvent("aad",true) 
addEventHandler("aad", root,function (name,acc,acl,serial,My,Ping) 
guiSetText(GUIEditor.memo[1],"\n Name:"..name.."\n Account :"..acc.."\n Groups :"..acl.."\n Serial :"..serial.."\n Money:"..My.."\n Ping : " ..Ping) 
end) 

        function getPlayerAcls(thePlayer) 
            local acls = {} 
            local account = getPlayerAccount(thePlayer) 
            if (account) and not (isGuestAccount(account)) then 
                local accountName = getAccountName(account) 
                for i,group in ipairs(aclGroupList()) do 
                    if (isObjectInACLGroup( "user." ..accountName, group)) then 
                        local groupName = aclGroupGetName(group) 
                        table.insert(acls, groupName) 
                    end 
                end 
            end 
            return acls 
        end 
      
addEvent("Add",true) 
addEventHandler("Add", root,function(theAccount) 
local account = getAccount(theAccount) 
if ( account ) then 
local acc = getAccountName(account) 
local acl = getPlayerAcls(source) 
local name = getPlayerName(source) 
local serial = getPlayerSerial(source) 
local My = getPlayerMoney(source) 
local ping = getPlayerPing(source) 
triggerClientEvent(client,"aad",client,name,acc,tostring( table.concat(acl, ", ") ),serial,My,ping) 
end 
end) 
Link to comment
لم تتم التجربه

GUIEditor = {memo = {},button = {},edit = {},window = {},} 
GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "لوحة معلومات الاعبين", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "اظهآر معلومات الحساب", false, GUIEditor.window[1]) 
GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) 
GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true)     
----- 
addEventHandler("onClientGUIClick",GUIEditor.button[1],function() 
plr = guiGetText(GUIEditor.edit[1]) 
if plr then 
triggerServerEvent("Add", localPlayer,plr) 
else 
guiSetText(GUIEditor.memo[1],"Error") 
end 
end,false) 
------ 
addEvent("aad",true) 
addEventHandler("aad", root,function (name,acc,acl,serial,My,Ping) 
guiSetText(GUIEditor.memo[1],"\n Name:"..name.."\n Account :"..acc.."\n Groups :"..acl.."\n Serial :"..serial.."\n Money:"..My.."\n Ping : " ..Ping) 
end) 

        function getPlayerAcls(thePlayer) 
            local acls = {} 
            local account = getPlayerAccount(thePlayer) 
            if (account) and not (isGuestAccount(account)) then 
                local accountName = getAccountName(account) 
                for i,group in ipairs(aclGroupList()) do 
                    if (isObjectInACLGroup( "user." ..accountName, group)) then 
                        local groupName = aclGroupGetName(group) 
                        table.insert(acls, groupName) 
                    end 
                end 
            end 
            return acls 
        end 
      
addEvent("Add",true) 
addEventHandler("Add", root,function(theAccount) 
local account = getAccount(theAccount) 
if ( account ) then 
local acc = getAccountName(account) 
local acl = getPlayerAcls(source) 
local name = getPlayerName(source) 
local serial = getPlayerSerial(source) 
local My = getPlayerMoney(source) 
local ping = getPlayerPing(source) 
triggerClientEvent(client,"aad",client,name,acc,tostring( table.concat(acl, ", ") ),serial,My,ping) 
end 
end) 

مشكور بجربه شوي بروح مشوار و ارجع اجربه

يعطيك العافيههء

ع المساعده

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...