Jump to content

نسخ الاي بي


Recommended Posts

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

.. أخباركمَم ؟؟ أن شاءالله بخَ ـير

زر نسخ الاي بي

كلنت

  
function onGuiClick() 
     if source == Bm then 
          setClipboard(getElementData(source, "IP")) 
     end 
end 
addEventHandler("onClientGUIClick", root, onGuiClick) 
  

سيرفر

  
addEventHandler("onPlayerJoin", root, 
function() 
     setElementData(source, "IP", getPlayerIP(source)) 
end) 
  

وش المشكلهَ الي فية

Edited by Guest
Link to comment

ذا الكود حق الايبي -_-'

و شسمه الايبي ينسخ عندك مو يطلع بـ الشات -_-'

لـ الكتابة بالشات استخدم

outputChatBox 

مثال ^

  
-- # Client Side ! 
addEventHandler("onClientGUIClick",root,function (   ) 
if ( source == Bm ) then 
triggerServerEvent("onClickShowMoney",localPlayer) 
end 
end) 

  
-- # Server Side ! 
addEvent("onClickShowMoney",true) 
addEventHandler("onClickShowMoney",root,function (  ) 
outputChatBox("* Your Money : ".. getPlayerMoney (source) .." !",source,255,255,0,true) 
end) 

بالنسبة لـ outputChatBox

source = تظهر للاعب نفسه

root = تظهر لجميع الاعبين

بالنسبة لـ true

تعني ان الـ outputChatBox يدعم الاكواد Hex Code

اللي مثل #FFFFFF

وكذا ^

Link to comment

كودكـ ما فيه اي خطا !

خله كذا

-- # Client Side ! 
function onGuiClick() 
     if source == Bm then 
          setClipboard(getElementData(localPlayer, "IP")) 
     end 
end 
addEventHandler("onClientGUIClick", root, onGuiClick) 
  

-- # Server Side ! 
addEventHandler("onResourceStart",resourceRoot,function (  ) 
for i,v in ipairs ( getElementsByType("player") ) do 
setElementData(v,"IP",getPlayerIP(v) or "N/A") 
end 
end) 
  
addEventHandler("onPlayerJoin", root, 
function () 
    setElementData(source, "IP", getPlayerIP(source) or "N/A") 
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...