Jump to content

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


xb0

Recommended Posts

سلام عليكم ابغى كود قريد ليست اسماء اللاعبين بس بدون الوان

او اكواد html

مثال

يجي بالقريد ليست اسمي

#ffffffxb0

انا ابغى فقط يجي

xb0 اتمناا فهمتوني

بنتضار الردود

Link to comment
local List = اسم القريد ليست 
addEventHandler("onClientResourceStart", resourceRoot, 
function  (       ) 
        local players = getElementsByType("player") 
              for _ , player in ipairs ( players ) do 
                     local name = string.gsub( getPlayerName( player ), "#%x%x%x%x%x%x", "" ) 
                     local row = guiGridListAddRow( List ) 
                     guiGridListSetItemText( List, row, 1, name ) 
            end 
end    ) 
  

Link to comment

الكود خرب لي المود كله

اسمع انا القريد ليست حقي اسمه

GUIEditor_Grid[1]

يوم حطيته وعدلت كلمه List

والثانيه الي باسطر 8 مو راضي وش قصته

Link to comment

جرب

addEventHandler("onClientResourceStart", resourceRoot, 
function () 
if (column) then  
for id,Item in ipairs(getElementsByType("player")) do 
local row = guiGridListAddRow (GUIEditor_Grid[1]) 
guiGridListSetItemText (GUIEditor_Grid[1],row,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) 
        end 
     end 
end) 

Edited by Guest
Link to comment
addEventHandler("onClientResourceStart", resourceRoot, 
function () 
if (column) then 
for id,Item in ipairs(getElementsByType("player")) do 
local row = guiGridListAddRow (GUIEditor_Grid[1]) 
guiGridListSetItemText (GUIEditor_Grid[1],row,column,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) 
        end 
     end 
end) 

Link to comment

بنفس كودك ابحث عن

guiGridListAddColumn 

وحط قبله اي اسم تبيه

وحط =

addEventHandler("onClientResourceStart", resourceRoot, 
function () 
if (column) then 
for id,Item in ipairs(getElementsByType("player")) do 
local row = guiGridListAddRow (GUIEditor_Grid[1]) 
guiGridListSetItemText (GUIEditor_Grid[1],row,الاسم اللي حطيته,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) 
        end 
     end 
end) 

Link to comment
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Grid = {} 
  
GUIEditor_Window[1] = guiCreateStaticImage(252,197,330,358, "1.png", false ) 
GUIEditor_Grid[1] = guiCreateGridList(15,26,147,317,false,GUIEditor_Window[1]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
  
guiGridListAddColumn(GUIEditor_Grid[1],"players",0.85) 
  
for i = 1, 1 do 
    guiGridListAddRow(GUIEditor_Grid[1]) 
end 
GUIEditor_Label[1] = guiCreateLabel(168,40,34,24,"Name:",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(168,106,55,16,"Amuoont:",false,GUIEditor_Window[1]) 
Name = guiCreateEdit(204,34,113,33,"",false,GUIEditor_Window[1]) 
guiSetFont(Name,"default-bold-small") 
amoo = guiCreateEdit(224,103,92,26,"",false,GUIEditor_Window[1]) 
guiSetFont(amoo,"default-bold-small") 
GUIEditor_Button[1] = guiCreateButton(187,169,118,53,"Sand",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(166,323,50,17,"By:xb0",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,0,0) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 

انا مخلي اسم الصورة GUIEditor_Window[1]ترا

Link to comment
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Grid = {} 
  
GUIEditor_Window[1] = guiCreateStaticImage(252,197,330,358, "1.png", false ) 
GUIEditor_Grid[1] = guiCreateGridList(15,26,147,317,false,GUIEditor_Window[1]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
  
column = guiGridListAddColumn(GUIEditor_Grid[1],"players",0.85) 
  
for i = 1, 1 do 
    guiGridListAddRow(GUIEditor_Grid[1]) 
end 
GUIEditor_Label[1] = guiCreateLabel(168,40,34,24,"Name:",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(168,106,55,16,"Amuoont:",false,GUIEditor_Window[1]) 
Name = guiCreateEdit(204,34,113,33,"",false,GUIEditor_Window[1]) 
guiSetFont(Name,"default-bold-small") 
amoo = guiCreateEdit(224,103,92,26,"",false,GUIEditor_Window[1]) 
guiSetFont(amoo,"default-bold-small") 
GUIEditor_Button[1] = guiCreateButton(187,169,118,53,"Sand",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(166,323,50,17,"By:xb0",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,0,0) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
  
addEventHandler("onClientResourceStart", resourceRoot, 
function () 
if (column) then 
for id,Item in ipairs(getElementsByType("player")) do 
local row = guiGridListAddRow (GUIEditor_Grid[1]) 
guiGridListSetItemText (GUIEditor_Grid[1],row,column,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) 
        end 
     end 
end) 

Link to comment

كفؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤ

والله شنببب شكرا لك

شكرا لي ساعتين افحط بذا الكود

---------------------------

اخر طلب ض1

شلون لو ابغى اخليه الاسماء بلون محدد؟ يعني يتلون القريد ليست الى اكثر من لون او لون محدد زي اخضر

يعني

اسم لاعب بالون الاحممر

والتي تحت بالاصفر وهكذا

Link to comment
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Grid = {} 
  
GUIEditor_Window[1] = guiCreateStaticImage(252,197,330,358, "1.png", false ) 
GUIEditor_Grid[1] = guiCreateGridList(15,26,147,317,false,GUIEditor_Window[1]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
  
column = guiGridListAddColumn(GUIEditor_Grid[1],"players",0.85) 
  
for i = 1, 1 do 
    guiGridListAddRow(GUIEditor_Grid[1]) 
end 
GUIEditor_Label[1] = guiCreateLabel(168,40,34,24,"Name:",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(168,106,55,16,"Amuoont:",false,GUIEditor_Window[1]) 
Name = guiCreateEdit(204,34,113,33,"",false,GUIEditor_Window[1]) 
guiSetFont(Name,"default-bold-small") 
amoo = guiCreateEdit(224,103,92,26,"",false,GUIEditor_Window[1]) 
guiSetFont(amoo,"default-bold-small") 
GUIEditor_Button[1] = guiCreateButton(187,169,118,53,"Sand",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(166,323,50,17,"By:xb0",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,0,0) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
  
addEventHandler("onClientResourceStart", resourceRoot, 
function () 
if (column) then 
for id,Item in ipairs(getElementsByType("player")) do 
local row = guiGridListAddRow (GUIEditor_Grid[1]) 
guiGridListSetItemText (GUIEditor_Grid[1],row,column,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) 
guiGridListSetItemColor ( GUIEditor_Grid[1], row, column, 0, 0, 255 ) 
        end 
     end 
end) 

Link to comment
الكود خرب لي المود كله

اسمع انا القريد ليست حقي اسمه

GUIEditor_Grid[1]

يوم حطيته وعدلت كلمه List

والثانيه الي باسطر 8 مو راضي وش قصته

List تعدل

؟؟؟؟؟؟

تصير كذا ياعمري انت

local List = GUIEditor_Grid[1]

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