Jump to content

طلب


Recommended Posts

addEventHandler("onClientGUIClick",root, 
    function ()  
        if ( source == GUIEditor.gridlist[1] ) then 
            local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) 
            local text = guiGridListGetItemText(GUIEditor.gridlist[1],sel,1)  
            local player = getPlayerFromName(text) 
            if ( player ) then 
             guiSetText ( GUIEditor.memo[1], "My Name : " .. getPlayerName (player ) ) 
             guiSetText(GUIEditor.memo[1],"My Ping :"..getPlayerPing(player)) 
             guiSetText ( GUIEditor.memo[1], "My Money :  " .. getPlayerMoney (player ) ) 
             guiSetText GUIEditor.memo[1],"My Serial :"..getPlayerSerial(player)) 
         end 
    end 
  end 
 ) 

كل شيء تمام لكن ي اخواني بقي الحساب هل طريقتي صح او لا اذا لا علموني وش اوسويء ي ليت تفيدوني

Link to comment
getPlayerAcls -- # Server side

ممكن مثال اوضح من الوكي و معناه ب كل وضوح

سويت كل شيء لكن ي غوآلي

طلعت لي الوحه لكن الاسماء م تهر ب القريد لست اسماء الاعبين

كلنت

  
GUIEditor = { 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(195, 31, 497, 446, "لـــــوحــــــة معلومات الاعبين", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(93, 27, 366, 74, "لــــــوحـــــة معلومات الاعبين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 21, 233, 106) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        GUIEditor.gridlist[1] = guiCreateGridList(10, 106, 274, 294, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) 
        GUIEditor.memo[1] = guiCreateMemo(290, 106, 197, 272, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(458, 410, 29, 27, "X", false, GUIEditor.window[1])     
    end 
) 
  
function Players() 
guiGridListClear(GUIEditor.gridlist[1]) 
for i,v in ipairs(getElementsByType("player")) do 
local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1, getPlayerName(v),false,false) 
guiGridListSetItemColor(GUIEditor.gridlist[1],row, 1, 0, 255, 0) 
end 
end 
  
  
addEventHandler("onClientRender", root, 
function () 
  
    local player = localPlayer 
       if source == GUIEditor.gridlist[1] then  
        guiSetText ( GUIEditor.memo[1], "My Name : " .. getPlayerName (Player )) 
        guiSetText ( GUIEditor.memo[1],"My Account : "..getAccountName(Player)) 
        guiSetText ( GUIEditor.memo[1],"My Ping :"..getPlayerPing(Player)) 
        guiSetText ( GUIEditor.memo[1], "My Money :  " .. getPlayerMoney (Player )) 
        guiSetText ( GUIEditor.memo[1],"My Serial :"..getPlayerSerial(Player)) 
     
    end 
     end )       
      
         
    addEvent("get",true) 
    addEventHandler("get",root,account) 
    function account(Account) 
        guiSetText(GUIEditor.memo[1],"Your Account : "..acc.. (Player))   
    end 
addEventHandler("get",root,account) 
  

سيرفر

  
function Account() 
        local Account = getAccountName( getAccountPlayer (source) ) 
        triggerClientEvent(source,"get",source,Account) 
    end  
  
  

Link to comment
GUIEditor = { 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(195, 31, 497, 446, "لـــــوحــــــة معلومات الاعبين", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(93, 27, 366, 74, "لــــــوحـــــة معلومات الاعبين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 21, 233, 106) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        GUIEditor.gridlist[1] = guiCreateGridList(10, 106, 274, 294, false, GUIEditor.window[1]) 
      cow1 =   guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) 
        GUIEditor.memo[1] = guiCreateMemo(290, 106, 197, 272, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(458, 410, 29, 27, "X", false, GUIEditor.window[1])     
    end 
) 
  
function players (    ) 
    guiGridListClear (GUIEditor.gridlist[1] ) 
    for _,v in ipairs ( getElementsByType ( "player" ) ) do 
    local Row = guiGridListAddRow ( GUIEditor.gridlist[1])   
    guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) 
    end 
end 
addEventHandler ( "onClientPlayerJoin", root, players ) 
addEventHandler ( "onClientPlayerQuit", root, players ) 
addEventHandler ( "onClientPlayerChangeNick", root, players ) 
addEventHandler ( "onClientResourceStart", root, players ) 
  
      
      

Link to comment
GUIEditor = { 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(195, 31, 497, 446, "لـــــوحــــــة معلومات الاعبين", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(93, 27, 366, 74, "لــــــوحـــــة معلومات الاعبين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 21, 233, 106) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        GUIEditor.gridlist[1] = guiCreateGridList(10, 106, 274, 294, false, GUIEditor.window[1]) 
      cow1 =   guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) 
        GUIEditor.memo[1] = guiCreateMemo(290, 106, 197, 272, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(458, 410, 29, 27, "X", false, GUIEditor.window[1])     
    end 
) 
  
function players (    ) 
    guiGridListClear (GUIEditor.gridlist[1] ) 
    for _,v in ipairs ( getElementsByType ( "player" ) ) do 
    local Row = guiGridListAddRow ( GUIEditor.gridlist[1])   
    guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) 
    end 
end 
addEventHandler ( "onClientPlayerJoin", root, players ) 
addEventHandler ( "onClientPlayerQuit", root, players ) 
addEventHandler ( "onClientPlayerChangeNick", root, players ) 
addEventHandler ( "onClientResourceStart", root, players ) 
  
      
      

اخويء سويت الي عدلته و ظظرت لكن لما احدد ع لاعب ماتجي في الـ memo

معلموماته ما تجي يعني حسابه و فلوسه كم و بنقه كم و..الخ

Link to comment
  
--Client 
-- £ Codes Created By : £iMr.WiFi 
local Key = "F10" 
  
  
GUIEditor = { 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(195, 31, 497, 446, "لـــــوحــــــة معلومات الاعبين", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(93, 27, 366, 74, "لــــــوحـــــة معلومات الاعبين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 21, 233, 106) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        GUIEditor.gridlist[1] = guiCreateGridList(10, 106, 274, 294, false, GUIEditor.window[1]) 
      cow1 =   guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) 
        GUIEditor.memo[1] = guiCreateMemo(290, 106, 197, 272, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(458, 410, 29, 27, "X", false, GUIEditor.window[1])     
    end 
) 
  
function players (    ) 
    guiGridListClear (GUIEditor.gridlist[1] ) 
    for _,v in ipairs ( getElementsByType ( "player" ) ) do 
    local Row = guiGridListAddRow ( GUIEditor.gridlist[1])   
    guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) 
    end 
end 
addEventHandler ( "onClientPlayerJoin", root, players ) 
addEventHandler ( "onClientPlayerQuit", root, players ) 
addEventHandler ( "onClientPlayerChangeNick", root, players ) 
addEventHandler ( "onClientResourceStart", root, players ) 
  
addEventHandler("onClientGUIClick",root,function () 
local Sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) 
if source == GUIEditor.gridlist[1] then 
if Sel ~= -1 then 
local PlayerName = guiGridListGetItemText(GUIEditor.gridlist[1],Sel or guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
local GetPlayer = getPlayerFromName(PlayerName) 
local Name = getPlayerName(GetPlayer) 
local Money = getPlayerMoney(GetPlayer) 
triggerServerEvent("GetAccount:GetAcls",localPlayer,GetPlayer,Name,Money) 
end 
end 
end) 
  
addEvent("GetHim",true) 
addEventHandler("GetHim",root,function (Name, Acc, PlayerAcls, Money) 
guiSetText(GUIEditor.memo[1],"\n NamePlayer :"..Name.."\n NameAccount"..Acc.."\n Acls:"..PlayerAcls.."\n Money:"..Money) 
  
end)  
  
function Ad() 
triggerServerEvent("IsConsole",localPlayer) 
end 
bindKey(Key,"down",Ad) 
  
addEvent("Yes",true) 
addEventHandler("Yes",root,function() 
if guiGetVisible(GUIEditor.window[1]) == false then 
guiSetVisible(GUIEditor.window[1],true) 
showCursor(true) 
else 
guiSetVisible(GUIEditor.window[1],false) 
showCursor(false) 
end 
end) 
  
 -- Server 
  
addEvent("GetAccount:GetAcls",true) 
addEventHandler("GetAccount:GetAcls",root,function ( Player, Name, Money ) 
local PlayerAcc = getPlayerAccount(Player) 
local Acc = getAccountName(PlayerAcc) 
local acl = getPlayerAcls(Player) 
local PlayerAcls = tostring( table.concat(acl, ", ") ) 
triggerClientEvent(Player,"GetHim",Player,Name,Acc,PlayerAcls,Money) 
end) 
  
addEvent("IsConsole",true) 
addEventHandler("IsConsole",root,function() 
if not isObjectInACLGroup("user."getAccountName(getAccountPlayer(source))),aclGetGroup("Console")) then return end 
triggerClientEvent(source,"Yes",source) 
end 
) 
    -- كنت فاضي فسويته لك ,! 
      
  

Link to comment
  
--Client 
-- £ Codes Created By : £iMr.WiFi 
local Key = "F10" 
  
  
GUIEditor = { 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(195, 31, 497, 446, "لـــــوحــــــة معلومات الاعبين", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(93, 27, 366, 74, "لــــــوحـــــة معلومات الاعبين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 21, 233, 106) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        GUIEditor.gridlist[1] = guiCreateGridList(10, 106, 274, 294, false, GUIEditor.window[1]) 
      cow1 =   guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) 
        GUIEditor.memo[1] = guiCreateMemo(290, 106, 197, 272, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(458, 410, 29, 27, "X", false, GUIEditor.window[1])     
    end 
) 
  
function players (    ) 
    guiGridListClear (GUIEditor.gridlist[1] ) 
    for _,v in ipairs ( getElementsByType ( "player" ) ) do 
    local Row = guiGridListAddRow ( GUIEditor.gridlist[1])   
    guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) 
    end 
end 
addEventHandler ( "onClientPlayerJoin", root, players ) 
addEventHandler ( "onClientPlayerQuit", root, players ) 
addEventHandler ( "onClientPlayerChangeNick", root, players ) 
addEventHandler ( "onClientResourceStart", root, players ) 
  
addEventHandler("onClientGUIClick",root,function () 
local Sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) 
if source == GUIEditor.gridlist[1] then 
if Sel ~= -1 then 
local PlayerName = guiGridListGetItemText(GUIEditor.gridlist[1],Sel or guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
local GetPlayer = getPlayerFromName(PlayerName) 
local Name = getPlayerName(GetPlayer) 
local Money = getPlayerMoney(GetPlayer) 
triggerServerEvent("GetAccount:GetAcls",localPlayer,GetPlayer,Name,Money) 
end 
end 
end) 
  
addEvent("GetHim",true) 
addEventHandler("GetHim",root,function (Name, Acc, PlayerAcls, Money) 
guiSetText(GUIEditor.memo[1],"\n NamePlayer :"..Name.."\n NameAccount"..Acc.."\n Acls:"..PlayerAcls.."\n Money:"..Money) 
  
end)  
  
function Ad() 
triggerServerEvent("IsConsole",localPlayer) 
end 
bindKey(Key,"down",Ad) 
  
addEvent("Yes",true) 
addEventHandler("Yes",root,function() 
if guiGetVisible(GUIEditor.window[1]) == false then 
guiSetVisible(GUIEditor.window[1],true) 
showCursor(true) 
else 
guiSetVisible(GUIEditor.window[1],false) 
showCursor(false) 
end 
end) 
  
 -- Server 
  
addEvent("GetAccount:GetAcls",true) 
addEventHandler("GetAccount:GetAcls",root,function ( Player, Name, Money ) 
local PlayerAcc = getPlayerAccount(Player) 
local Acc = getAccountName(PlayerAcc) 
local acl = getPlayerAcls(Player) 
local PlayerAcls = tostring( table.concat(acl, ", ") ) 
triggerClientEvent(Player,"GetHim",Player,Name,Acc,PlayerAcls,Money) 
end) 
  
addEvent("IsConsole",true) 
addEventHandler("IsConsole",root,function() 
if not isObjectInACLGroup("user."getAccountName(getAccountPlayer(source))),aclGetGroup("Console")) then return end 
triggerClientEvent(source,"Yes",source) 
end 
) 
    -- كنت فاضي فسويته لك ,! 
      
  

تسلم اخوي لكن ! اخوي انا كنت ابي اتعلم

بس مشكور ويعطيك العافيههء

ممكن سكايبيء تبعك

Link to comment
Skype : mohmmad15551

اخوي جربته م زبط يقول فيه خطا ب السطر

12

و ب التقريت سيرفر

[18:00:33] ERROR: Client (_,aBoA3de) triggered serverside event GetAccount:GetAcls, but event is not added serverside

[18:00:33] ERROR: Client (_,aBoA3de) triggered serverside event GetAccount:GetAcls, but event is not added serverside

[18:00:39] ERROR: Client (_,aBoA3de) triggered serverside event GetAccount:GetAcls, but event is not added serverside [DUP x2]

Link to comment
Skype : mohmmad15551

اخوي جربته م زبط يقول فيه خطا ب السطر

12

و ب التقريت سيرفر

[18:00:33] ERROR: Client (_,aBoA3de) triggered serverside event GetAccount:GetAcls, but event is not added serverside

[18:00:33] ERROR: Client (_,aBoA3de) triggered serverside event GetAccount:GetAcls, but event is not added serverside

[18:00:39] ERROR: Client (_,aBoA3de) triggered serverside event GetAccount:GetAcls, but event is not added serverside [DUP x2]

رد ي اخوان واي فاي مو شغال الكود معي ترى

Link to comment
  
  
--Client 
-- £ Codes Created By : £iMr.WiFi 
local Key = "F10" 
  
  
GUIEditor = { 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(195, 31, 497, 446, "لـــــوحــــــة معلومات الاعبين", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(93, 27, 366, 74, "لــــــوحـــــة معلومات الاعبين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 21, 233, 106) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        GUIEditor.gridlist[1] = guiCreateGridList(10, 106, 274, 294, false, GUIEditor.window[1]) 
      cow1 =   guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) 
        GUIEditor.memo[1] = guiCreateMemo(290, 106, 197, 272, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(458, 410, 29, 27, "X", false, GUIEditor.window[1])     
    end 
) 
  
function players (    ) 
    guiGridListClear (GUIEditor.gridlist[1] ) 
    for _,v in ipairs ( getElementsByType ( "player" ) ) do 
    local Row = guiGridListAddRow ( GUIEditor.gridlist[1])   
    guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) 
    end 
end 
addEventHandler ( "onClientPlayerJoin", root, players ) 
addEventHandler ( "onClientPlayerQuit", root, players ) 
addEventHandler ( "onClientPlayerChangeNick", root, players ) 
addEventHandler ( "onClientResourceStart", root, players ) 
  
addEventHandler("onClientGUIClick",root,function () 
local Sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) 
if source == GUIEditor.gridlist[1] then 
if Sel ~= -1 then 
local PlayerName = guiGridListGetItemText(GUIEditor.gridlist[1],Sel or guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
local GetPlayer = getPlayerFromName(PlayerName) 
local Name = getPlayerName(GetPlayer) 
local Money = getPlayerMoney(GetPlayer) 
triggerServerEvent("GetAccountGetAcls",localPlayer,GetPlayer,Name,Money) 
end 
end 
end) 
  
addEvent("GetHim",true) 
addEventHandler("GetHim",root,function (Name, Acc, PlayerAcls, Money) 
guiSetText(GUIEditor.memo[1],"\n NamePlayer :"..Name.."\n NameAccount"..Acc.."\n Acls:"..PlayerAcls.."\n Money:"..Money) 
  
end) 
  
function Ad() 
triggerServerEvent("IsConsole",localPlayer) 
end 
bindKey(Key,"down",Ad) 
  
addEvent("Yes",true) 
addEventHandler("Yes",root,function() 
if guiGetVisible(GUIEditor.window[1]) == false then 
guiSetVisible(GUIEditor.window[1],true) 
showCursor(true) 
else 
guiSetVisible(GUIEditor.window[1],false) 
showCursor(false) 
end 
end) 
  
 -- Server 
  
addEvent("GetAccountGetAcls",true) 
addEventHandler("GetAccountGetAcls", root, 
function ( Player, Name, Money ) 
local PlayerAcc = getPlayerAccount(Player) 
local Acc = getAccountName(PlayerAcc) 
local acl = getPlayerAcls(Player) 
local PlayerAcls = tostring( table.concat(acl, ", ") ) 
triggerClientEvent(Player,"GetHim",Player,Name,Acc,PlayerAcls,Money) 
end 
) 
  
addEvent("IsConsole",true) 
addEventHandler("IsConsole",root,function() 
if not isObjectInACLGroup("user."getAccountName(getAccountPlayer(source))),aclGetGroup("Console")) then return end 
triggerClientEvent(source,"Yes",source) 
end 
) 
    -- كنت فاضي فسويته لك ,! 
      
  
  

Link to comment
  
  
--Client 
-- £ Codes Created By : £iMr.WiFi 
local Key = "F10" 
  
  
GUIEditor = { 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(195, 31, 497, 446, "لـــــوحــــــة معلومات الاعبين", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(93, 27, 366, 74, "لــــــوحـــــة معلومات الاعبين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 21, 233, 106) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        GUIEditor.gridlist[1] = guiCreateGridList(10, 106, 274, 294, false, GUIEditor.window[1]) 
      cow1 =   guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) 
        GUIEditor.memo[1] = guiCreateMemo(290, 106, 197, 272, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(458, 410, 29, 27, "X", false, GUIEditor.window[1])     
    end 
) 
  
function players (    ) 
    guiGridListClear (GUIEditor.gridlist[1] ) 
    for _,v in ipairs ( getElementsByType ( "player" ) ) do 
    local Row = guiGridListAddRow ( GUIEditor.gridlist[1])   
    guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) 
    end 
end 
addEventHandler ( "onClientPlayerJoin", root, players ) 
addEventHandler ( "onClientPlayerQuit", root, players ) 
addEventHandler ( "onClientPlayerChangeNick", root, players ) 
addEventHandler ( "onClientResourceStart", root, players ) 
  
addEventHandler("onClientGUIClick",root,function () 
local Sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) 
if source == GUIEditor.gridlist[1] then 
if Sel ~= -1 then 
local PlayerName = guiGridListGetItemText(GUIEditor.gridlist[1],Sel or guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
local GetPlayer = getPlayerFromName(PlayerName) 
local Name = getPlayerName(GetPlayer) 
local Money = getPlayerMoney(GetPlayer) 
triggerServerEvent("GetAccountGetAcls",localPlayer,GetPlayer,Name,Money) 
end 
end 
end) 
  
addEvent("GetHim",true) 
addEventHandler("GetHim",root,function (Name, Acc, PlayerAcls, Money) 
guiSetText(GUIEditor.memo[1],"\n NamePlayer :"..Name.."\n NameAccount"..Acc.."\n Acls:"..PlayerAcls.."\n Money:"..Money) 
  
end) 
  
function Ad() 
triggerServerEvent("IsConsole",localPlayer) 
end 
bindKey(Key,"down",Ad) 
  
addEvent("Yes",true) 
addEventHandler("Yes",root,function() 
if guiGetVisible(GUIEditor.window[1]) == false then 
guiSetVisible(GUIEditor.window[1],true) 
showCursor(true) 
else 
guiSetVisible(GUIEditor.window[1],false) 
showCursor(false) 
end 
end) 
  
 -- Server 
  
addEvent("GetAccountGetAcls",true) 
addEventHandler("GetAccountGetAcls", root, 
function ( Player, Name, Money ) 
local PlayerAcc = getPlayerAccount(Player) 
local Acc = getAccountName(PlayerAcc) 
local acl = getPlayerAcls(Player) 
local PlayerAcls = tostring( table.concat(acl, ", ") ) 
triggerClientEvent(Player,"GetHim",Player,Name,Acc,PlayerAcls,Money) 
end 
) 
  
addEvent("IsConsole",true) 
addEventHandler("IsConsole",root,function() 
if not isObjectInACLGroup("user."getAccountName(getAccountPlayer(source))),aclGetGroup("Console")) then return end 
triggerClientEvent(source,"Yes",source) 
end 
) 
    -- كنت فاضي فسويته لك ,! 
      
  
  

نفس الغلط ^_~~

Link to comment
  
  
  
--Client 
-- £ Codes Created By : £iMr.WiFi 
local Key = "F10" 
  
  
GUIEditor = { 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(195, 31, 497, 446, "لـــــوحــــــة معلومات الاعبين", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(93, 27, 366, 74, "لــــــوحـــــة معلومات الاعبين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 21, 233, 106) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        GUIEditor.gridlist[1] = guiCreateGridList(10, 106, 274, 294, false, GUIEditor.window[1]) 
      cow1 =   guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) 
        GUIEditor.memo[1] = guiCreateMemo(290, 106, 197, 272, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(458, 410, 29, 27, "X", false, GUIEditor.window[1])     
    end 
) 
  
function players (    ) 
    guiGridListClear (GUIEditor.gridlist[1] ) 
    for _,v in ipairs ( getElementsByType ( "player" ) ) do 
    local Row = guiGridListAddRow ( GUIEditor.gridlist[1])   
    guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) 
    end 
end 
addEventHandler ( "onClientPlayerJoin", root, players ) 
addEventHandler ( "onClientPlayerQuit", root, players ) 
addEventHandler ( "onClientPlayerChangeNick", root, players ) 
addEventHandler ( "onClientResourceStart", root, players ) 
  
addEventHandler("onClientGUIClick",root,function () 
local Sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) 
if source == GUIEditor.gridlist[1] then 
if Sel ~= -1 then 
local PlayerName = guiGridListGetItemText(GUIEditor.gridlist[1],Sel or guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
local GetPlayer = getPlayerFromName(PlayerName) 
local Name = getPlayerName(GetPlayer) 
local Money = getPlayerMoney(GetPlayer) 
triggerServerEvent("GetAccountGetAcls",localPlayer,GetPlayer,Name,Money) 
end 
end 
end) 
  
addEvent("GetHim",true) 
addEventHandler("GetHim",root,function (Name, Acc, PlayerAcls, Money) 
guiSetText(GUIEditor.memo[1],"\n NamePlayer :"..Name.."\n NameAccount"..Acc.."\n Acls:"..PlayerAcls.."\n Money:"..Money) 
  
end) 
  
function Ad() 
triggerServerEvent("IsConsole",localPlayer) 
end 
bindKey(Key,"down",Ad) 
  
addEvent("Yes",true) 
addEventHandler("Yes",root,function() 
if guiGetVisible(GUIEditor.window[1]) == false then 
guiSetVisible(GUIEditor.window[1],true) 
showCursor(true) 
else 
guiSetVisible(GUIEditor.window[1],false) 
showCursor(false) 
end 
end) 
  
 -- Server 
  
addEvent("GetAccountGetAcls",true) 
addEventHandler("GetAccountGetAcls", root, 
function ( Player, Name, Money ) 
if ( Player ) and ( Name ) and ( Money ) then 
local PlayerAcc = getPlayerAccount(Player) 
local Acc = getAccountName(PlayerAcc) 
local acl = getPlayerAcls(Player) 
local PlayerAcls = tostring( table.concat(acl, ", ") ) 
triggerClientEvent(Player,"GetHim",Player,Name,Acc,PlayerAcls,Money) 
end 
end 
) 
  
addEvent("IsConsole",true) 
addEventHandler("IsConsole",root,function() 
if not isObjectInACLGroup("user."getAccountName(getAccountPlayer(source))),aclGetGroup("Console")) then return end 
triggerClientEvent(source,"Yes",source) 
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...