Jump to content

طلب


Recommended Posts

Posted

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

مساكم الله بالخير يالربع

وش حالكم

يالربع ابي كود الي يطلع اسم السيرفر

وابي كود الي يطلع اسم الماب وكود عدد المتواجدين بالسيرفر لاهنتم

Posted

تفضل

  
function serverinfo ( ) 
    outputChatBox ( getServerName( ) ) 
    outputChatBox ( "There are now " .. getPlayerCount() .. " players on this server!" ) 
    local mapName = getMapName() 
    outputChatBox ( "Current Map is "..mapName.."" ) 
end 
addCommandHandler ( "serverinfo", serverinfo ) 

Posted
تفضل
  
function serverinfo ( ) 
    outputChatBox ( getServerName( ) ) 
    outputChatBox ( "There are now " .. getPlayerCount() .. " players on this server!" ) 
    local mapName = getMapName() 
    outputChatBox ( "Current Map is "..mapName.."" ) 
end 
addCommandHandler ( "serverinfo", serverinfo ) 

حاولت اشغله بس عيا

عطني الكود كامل لاهنت

Posted
تفضل
  
function serverinfo ( ) 
    outputChatBox ( getServerName( ) ) 
    outputChatBox ( "There are now " .. getPlayerCount() .. " players on this server!" ) 
    local mapName = getMapName() 
    outputChatBox ( "Current Map is "..mapName.."" ) 
end 
addCommandHandler ( "serverinfo", serverinfo ) 

حاولت اشغله بس عيا

عطني الكود كامل لاهنت

اكتب في اف 8

serverinfo

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

Posted
تفضل
  
function serverinfo ( ) 
    outputChatBox ( getServerName( ) ) 
    outputChatBox ( "There are now " .. getPlayerCount() .. " players on this server!" ) 
    local mapName = getMapName() 
    outputChatBox ( "Current Map is "..mapName.."" ) 
end 
addCommandHandler ( "serverinfo", serverinfo ) 

حاولت اشغله بس عيا

عطني الكود كامل لاهنت

اكتب في اف 8

serverinfo

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

يابعدي انا ابيه لشووب فهمت

عطني الكود كامل لاهنت لاني حاولت فيه ماظبط

Posted
حط كودك الي حاولت فيه
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1],true) then 
   guiSetText(GUIEditor_Label[9],"name server: "..getServerName(getLocalPlayer())) 
    end 
end) 

انا دايم استخدمها على السريال وكذا

لمني حطيت حق السيرفر ماجاء

Posted

سيرفر و أنت حاطها في الكلينت getServerName الوظيفة

-- Server Side --

addEventHandler("onResourceStart", resourceRoot, 
function() 
     setElementData(root, "ServerName", getServerName()) 
end) 

-- Client Side --

guiSetText(GUIEditor_Label[9],"name server: "..getElementData(root, "ServerName")) 

Posted
سيرفر و أنت حاطها في الكلينت getServerName الوظيفة

-- Server Side --

addEventHandler("onResourceStart", resourceRoot, 
function() 
     setElementData(root, "ServerName", getServerName()) 
end 

-- Client Side --

guiSetText(GUIEditor_Label[9],"name server: "..getElementData(root, "ServerName")) 

ماظبط الكود الي عطتنياه

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