Jump to content

x[ استفسار ]x في كود getPlayerPing


Recommended Posts

    function open ()   
            if guiGetVisible(GUIEditor.window[1]) then 
                    guiSetVisible(GUIEditor.window[1], false) 
                    showCursor(false) 
                    guiSetInputEnabled(false) 
            else 
                    guiSetVisible(GUIEditor.window[1], true) 
                    showCursor(true) 
                    guiSetInputEnabled(true) 
            end 
    end 
    bindKey("F2", "down",open) 
function ping () 
  
 if ( source == GUIEditor.button[1] ) then 
  
outputChatBox("بنقك الان هو : "..getPlayerPing(localPlayer).."",0,255,0) 
  
end 
  
function Serial () 
  
  if ( source == GUIEditor.button[2] ) then 
  
outputChatBox("سيريالك هو : "..getPlayerSerial(LocalPlayer).."",0,255,0) 
  
end 
  
  
function Name () 
  
  if ( source == GUIEditor.button[2] ) then 
  
outputChatBox("اسمك الحالي هو : "..getPlayerName(localPlayer).."",0,255,0) 
  
end 
  
  
  
  

Link to comment
     
addEventHandler("onClientGUIClick",root, 
    function  () 
  
 if   source == GUIEditor.button[1]  then 
  
outputChatBox("بنقك الان هو : "..getPlayerPing(localPlayer).."",0,255,0) 
  
 elseif  source == GUIEditor.button[2]  then 
  
outputChatBox("اسمك الحالي هو : "..getPlayerName(localPlayer).."",0,255,0) 
  
  
 end 
  
  
 end 
  
 ) 
  
  
  function open ()   
            if guiGetVisible(GUIEditor.window[1]) then 
                    guiSetVisible(GUIEditor.window[1], false) 
                    showCursor(false) 
                    guiSetInputEnabled(false) 
            else 
                    guiSetVisible(GUIEditor.window[1], true) 
                    showCursor(true) 
                    guiSetInputEnabled(true) 
            end 
    end 
    bindKey("F2", "down",open) 
  
  

Link to comment

addEventHandler("onClientGUIClick",root, function ( ) 
if ( source == GUIEditor.button [ 1 ] ) then  
outputChatBox("Your Ping is : "..getPlayerPing(localPlayer),255,255,255,true) 
elseif ( source == GUIEditor.button [ 3 ] ) then  
outputChatBox("Your Ping is : "..getPlayerName(localPlayer),255,255,255,true) 
    end 
end )    
  

عشان تجيب سيريال اللاعب سوي triggerServerEvent

Link to comment
---Client 
  
  
addEventHandler("onClientGUIClick",root, 
    function  () 
  
 if   source == GUIEditor.button[1]  then 
  
outputChatBox("بنقك الان هو : "..getPlayerPing(localPlayer).."",0,255,0) 
  
 elseif  source == GUIEditor.button[3]  then 
  
outputChatBox("اسمك الحالي هو : "..getPlayerName(localPlayer).."",0,255,0) 
  
 elseif source == GUIEditor.button[2]  then 
  
 triggerServerEvent("Serial",localPlayer) 
  
 end 
  
  
 end 
  
 ) 
  
  
  function open ()   
            if guiGetVisible(GUIEditor.window[1]) then 
                    guiSetVisible(GUIEditor.window[1], false) 
                    showCursor(false) 
                    guiSetInputEnabled(false) 
            else 
                    guiSetVisible(GUIEditor.window[1], true) 
                    showCursor(true) 
                    guiSetInputEnabled(true) 
            end 
    end 
    bindKey("F2", "down",open) 
    ---- 
    ---Server 
     
     
    addEvent("Serial",true) 
    addEventHandler("Serial",root, 
     
    function () 
     
    outputChatBox("you Serial is  "..getPlayerSerial(source).."",source,0,255,0) 
     
     
    end 
     
    ) 

Link to comment
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(اسم لوحتك,true) then 
   guiSetText(اسم اليبل,"your ping: "..getPlayerPing(getLocalPlayer())) 
    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...