Jump to content

x[طلب كود | جريد ليست]x


Recommended Posts

function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
Link to comment
function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

ليه ماخليته يحآول ؟؟

Link to comment
function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

ليه ماخليته يحآول ؟؟

ذه لاعبين :D

مب للادمنز

Link to comment
function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

الكود حق كروس

Link to comment
function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

الكود حق كروس

اخوانى

طلبت كود يجيب اسماء الادمنز مب اسماء اللاعبين !

Link to comment

--#ServerSide 
addEventHandler("onResourceStart", root, 
function() 
    for i,player in ipairs (getElementsByType("player")) do 
        local Account = getPlayerAccount(player) 
        if not (isGuestAccount(Account)) then 
            local AccountName = getAccountName(Account) 
            if ( hasObjectPermissionTo ( player, "general.adminpanel", true ) ) then 
                setElementData(player,"Admin",true) 
            else 
            setElementData(player,"Admin",false) 
            end 
        end 
    end 
end 
) 
--#ClientSide 
function Cheak() 
guiGridListClear ( GridList) 
for i,v in ipairs(getElementsByType("player")) do 
if getElementData(v, "Admin") == true then 
local row = guiGridListAddRow ( GridList ) 
guiGridListSetItemText ( GridList, row, 1, getPlayerName(v), false, true ) 
guiGridListSetItemColor ( GridList, row, 1, 0, 255, 0) 
end 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,Cheak) 
addEventHandler ("onClientPlayerJoin",root,Cheak) 
addEventHandler ("onClientPlayerChangeNick",root,Cheak) 
addEventHandler ("onClientPlayerQuit",root,Cheak) 
Link to comment
--#ServerSide 
addEventHandler("onResourceStart", root, 
function() 
    for i,player in ipairs (getElementsByType("player")) do 
        local Account = getPlayerAccount(player) 
        if not (isGuestAccount(Account)) then 
            local AccountName = getAccountName(Account) 
            if ( hasObjectPermissionTo ( player, "general.adminpanel", true ) ) then 
                setElementData(player,"Admin",true) 
            else 
            setElementData(player,"Admin",false) 
            end 
        end 
    end 
end 
) 
--#ClientSide 
function Cheak() 
guiGridListClear ( GridList) 
for i,v in ipairs(getElementsByType("player")) do 
if getElementData(v, "Admin") == true then 
local row = guiGridListAddRow ( GridList ) 
guiGridListSetItemText ( GridList, row, 1, getPlayerName(v), false, true ) 
guiGridListSetItemColor ( GridList, row, 1, 0, 255, 0) 
end 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,Cheak) 
addEventHandler ("onClientPlayerJoin",root,Cheak) 
addEventHandler ("onClientPlayerChangeNick",root,Cheak) 
addEventHandler ("onClientPlayerQuit",root,Cheak) 

مشكووووور

Link to comment
--#ServerSide 
addEventHandler("onResourceStart", root, 
function() 
    for i,player in ipairs (getElementsByType("player")) do 
        local Account = getPlayerAccount(player) 
        if not (isGuestAccount(Account)) then 
            local AccountName = getAccountName(Account) 
            if ( hasObjectPermissionTo ( player, "general.adminpanel", true ) ) then 
                setElementData(player,"Admin",true) 
            else 
            setElementData(player,"Admin",false) 
            end 
        end 
    end 
end 
) 
--#ClientSide 
function Cheak() 
guiGridListClear ( GridList) 
for i,v in ipairs(getElementsByType("player")) do 
if getElementData(v, "Admin") == true then 
local row = guiGridListAddRow ( GridList ) 
guiGridListSetItemText ( GridList, row, 1, getPlayerName(v), false, true ) 
guiGridListSetItemColor ( GridList, row, 1, 0, 255, 0) 
end 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,Cheak) 
addEventHandler ("onClientPlayerJoin",root,Cheak) 
addEventHandler ("onClientPlayerChangeNick",root,Cheak) 
addEventHandler ("onClientPlayerQuit",root,Cheak) 

كودك في حال خروج الادمن من السيرفر ورجع دخل للسيرفر مره اخري ماراح يسجل اسمه باللوحة

+

استبدل السطر هذا

addEventHandler("onResourceStart", root, 

بهذا

addEventHandler("onResourceStart", resourceRoot, 

Link to comment
--#ServerSide 
addEventHandler("onResourceStart", root, 
function() 
    for i,player in ipairs (getElementsByType("player")) do 
        local Account = getPlayerAccount(player) 
        if not (isGuestAccount(Account)) then 
            local AccountName = getAccountName(Account) 
            if ( hasObjectPermissionTo ( player, "general.adminpanel", true ) ) then 
                setElementData(player,"Admin",true) 
            else 
            setElementData(player,"Admin",false) 
            end 
        end 
    end 
end 
) 
--#ClientSide 
function Cheak() 
guiGridListClear ( GridList) 
for i,v in ipairs(getElementsByType("player")) do 
if getElementData(v, "Admin") == true then 
local row = guiGridListAddRow ( GridList ) 
guiGridListSetItemText ( GridList, row, 1, getPlayerName(v), false, true ) 
guiGridListSetItemColor ( GridList, row, 1, 0, 255, 0) 
end 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,Cheak) 
addEventHandler ("onClientPlayerJoin",root,Cheak) 
addEventHandler ("onClientPlayerChangeNick",root,Cheak) 
addEventHandler ("onClientPlayerQuit",root,Cheak) 

كودك في حال خروج الادمن من السيرفر ورجع دخل للسيرفر مره اخري ماراح يسجل اسمه باللوحة

+

استبدل السطر هذا

addEventHandler("onResourceStart", root, 

بهذا

addEventHandler("onResourceStart", resourceRoot, 

صح :arrowup:

مشكور اخوى :)

Link to comment

في هذا اليوزفل فانكشن يسهل عليك

getOnlineAdmins

هذا اليوزفل فانكشن تحطه بجانب السيرفر

ثم تسوي ترايقر للكلاينت وتضيف الاسماء للقريد ليست عن طريق الفانكشنات الي عطوها لك

الشباب فوق

موفق

Link to comment
في هذا اليوزفل فانكشن يسهل عليك

getOnlineAdmins

هذا اليوزفل فانكشن تحطه بجانب السيرفر

ثم تسوي ترايقر للكلاينت وتضيف الاسماء للقريد ليست عن طريق الفانكشنات الي عطوها لك

الشباب فوق

موفق

هذا يجبلك الي معهم رتبت

Admin

هو يبي كل الأدمنية

اليوسفول فانكشن بعد التعديل

function getOnlineAdmins() 
    local t = {} 
    for k,v in ipairs ( getElementsByType("player") ) do 
        local acc = getPlayerAccount(v) 
        if acc and not isGuestAccount(acc) then 
            local accName = getAccountName(acc) 
   if ( hasObjectPermissionTo (v, "general.adminpanel", true)) then 
                table.insert(t,v) 
            end 
        end 
    end 
    return t 
end 
Link to comment

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

يمسح القريد ليست عن طريق فانكشن

guiGridListClear 

وحط الفانكشن حق الي يضيف الادامن للقريد ليست

وبكذا كل م تفتح اللوحه تتحدث

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...