Jump to content

زر نسخخ الاي بي


Recommended Posts

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

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

الكود

  
-- server side 
function trigger ( thePlayer ) 
  
local Ip2 = getPlayerIP(thePlayer) 
  
triggerClientEvent(thePlayer,Ip2) 
  
end 
  

  
-- client side 
    function IP (ip2) 
      if source == CopyMyIp then 
     setClipboard ( "" .. Ip2 .. "" ) 
      end 
    end 
    addEventHandler ("onClientGUIClick", getRootElement(), IP) 
  

Link to comment

والله ماقيد سويتها ذذ

عطني مثال او شرح او شي اي

addEventHandler( 'onPlayerJoin', getRootElement( ), 
    function( ) 
        setElementData( source, 'IP', getPlayerIP( source ) ) 
    end 
); 

واستخدم في الكلنت

getElementData( localPlayer, 'IP' ) 

سويته على السريع

  
  
--client 
  
    function IP (IP) 
      if source == CopyMyIp then 
getElementData( localPlayer, 'IP' ) 
  
      end 
    end 
    addEventHandler ("onClientGUIClick", getRootElement(), IP) 
  

  
-- server 
addEventHandler( 'onResourceStart', getRootElement( ), 
    function( ) 
        setElementData( source, 'IP', getPlayerIP( source ) ) 
triggerClientEvent(localPlayer,Ip2) 
    end 
) 
  

كذا ؟

Edited by Guest
Link to comment
addEventHandler("onPlayerJoin", root, 
function() 
     setElementData(source, "IP", getPlayerIP(source)) 
end) 

addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == GUIEditor_Button[] then 
ip = getElementData(localPlayer, "IP") 
setClipboard ( "" .. ip .. "" ) 
    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...