Jump to content

مسآعده يآخوآن :]


Recommended Posts

طيب عندي اخر طلب ولا عليكم امر :*

عندي label

مكتوب زي كذا

Server Name : ابغيه هنا يجيب اسم السيرفر

وسويت الكود وهذا هو ولا ضبط

#Client

addEventHandler("onClientRender",root,  
function() 
    if guiGetVisible(wnd, true) then 
    triggerServerEvent ("serverName", localPlayer, label1) 
end 
end ) 

#Server

addEvent("serverNmae",true) 
addEventHandler("serverName",root,  
function() 
    guiSetText(label1,"sErver name : " .. getServerName ( source)) 
end ) 

مساعده :roll:

Link to comment
طيب عندي اخر طلب ولا عليكم امر :*

عندي label

مكتوب زي كذا

Server Name : ابغيه هنا يجيب اسم السيرفر

وسويت الكود وهذا هو ولا ضبط

#Client

addEventHandler("onClientRender",root,  
function() 
    if guiGetVisible(wnd, true) then 
    triggerServerEvent ("serverName", localPlayer, label1) 
end 
end ) 

#Server

addEvent("serverNmae",true) 
addEventHandler("serverName",root,  
function() 
    guiSetText(label1,"sErver name : " .. getServerName ( source)) 
end ) 

مساعده :roll:

ترايقر مع رندر

بتجيب لاق

Client

triggerServerEvent("onGetServerName", localPlayer) 
  
addEvent("onClientGetServerName", true) 
addEventHandler("onClientGetServerName", root, function(Name) 
    guiSetText(label1, "Server Name : "..Name) 
end) 

Server

addEvent("onGetServerName", true) 
addEventHandler("onGetServerName", root, function( ) 
    triggerClientEvent(source, "onClientGetServerName", source, getServerName( )) 
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...