Jump to content

ليبل لكل الاعبين


Recommended Posts

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

كيف اسوي ليبل يطلع لكل الاعبين

انا عندي اديت بوكس ويوم اكتب فيه

اجيبه باليبل بس انا لحالي اللي اشوف الكلام

ابيه يطلع للكل

Client side

addEventHandler("onClientGUIClick" ,resourceRoot , 
function() 
    if source == White then 
        triggerServerEvent("Send" ,root) 
    end 
end) 

addEvent("RSEND" ,true) 
addEventHandler("RSEND" ,resourceRoot , 
function() 
        guiSetText(LABEL, " *[" .. plr .. "] : " ..tostring(guiGetText(Edit))) 
        guiLabelSetColor ( LABEL, 255, 255, 255 ) 
         
end) 

server side

addEvent("Send" ,true) 
addEventHandler("Send" ,root , 
function () 
    triggerClientEvent(root ,"RSEND" ,root) 
end) 

Link to comment
-- ClientSide 
  
addEventHandler("onClientGUIClick" ,resourceRoot , 
function() 
    if source == White then 
    wit = guiGetText(Edit) 
    if ( wit ~= '' ) then 
        triggerServerEvent("Send",getLocalPlayer()) 
end 
    end 
end) 
  
 addEvent('SS',true) 
 addEventHandler('SS',root, function ( ) 
         guiSetText(LABEL, " *[" ..getPlayerName(localPlayer).. "] : " ..wit.. " ") 
        guiLabelSetColor ( LABEL, 255, 255, 255 ) 
 end) 
  
  
 -- Server Side 
  
 addEvent('Send',true) 
addEventHandler('Send',root,  
function ( ) 
for i,player in ipairs ( getElementsByType('player') ) do  
triggerClientEvent(player,'SS',player) 
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...