Jump to content

تصحيح اكواد لوحه السبورت


Recommended Posts

طيب الكود دا

انا عاوز يكون لون اخضر كل اللاعبين

حطيط الكود لونو برده ابيض

function update () 
guiGridListClear(GUIEditor.gridlist[2]) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (GUIEditor.gridlist[2]) 
guiGridListSetItemText (GUIEditor.gridlist[2],rp,1,getPlayerName(v),false,false) 
guiGridListSetItemColor(GUIEditor.gridlist[2],rp, 2, 35, 254, 0, 255,false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
  

Link to comment

مشكور طيب

بس استفسار تاني

انا عاوز الكوا متظهرش

لما في القريد لست اسمي مثلن

#000000[L]e3bA

بيجلي اسمي كدا

#0000000[L]e3bA

انا عاوز الاسم ميجيش ب الاكواد

Link to comment

function getFixedName(player) 
if isElement(player) then 
local hisName = getPlayerName(player) 
if hisName then 
result = string.gsub(hisName, '#%x%x%x%x%x%x', '') 
if result then 
return result 
end 
end 
end 
end 
function update () 
guiGridListClear(GUIEditor.gridlist[2]) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (GUIEditor.gridlist[2]) 
guiGridListSetItemText (GUIEditor.gridlist[2],rp,1,getFixedName(v),false,false) 
guiGridListSetItemColor(GUIEditor.gridlist[2],rp,1, 35, 254, 0, 255,false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

عايزه من غير اللوان

Link to comment

طيب والكود دا

addEvent("sendmessage2",true) 
    addEventHandler("sendmessage2",root, function(Name,Text) 
    local gg = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name, false, false) 
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,tostring(Text), false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 35, 254, 0, 255) 
    if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then 
    outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) 
    end 
    end) 

عاوز اليبعت رساله يكون الون اخضر

يعني بيجي الاسم اخضر عادي

و Message بتيجي ابيض

Link to comment
  • 4 weeks later...

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