TD[M]ER Posted December 17, 2012 Share Posted December 17, 2012 السلام عليكم ورحمةة الله وبركاتهه حاولت اسوي كود نسخخ الاي بي عبر ترايقر لكن مانفعع الكود -- 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
abu5lf Posted December 17, 2012 Share Posted December 17, 2012 استخدم setElementData getElementData Link to comment
TD[M]ER Posted December 17, 2012 Author Share Posted December 17, 2012 استخدمsetElementData getElementData والله ماقيد سويتها ذذ عطني مثال او شرح او شي اي Link to comment
abu5lf Posted December 17, 2012 Share Posted December 17, 2012 استخدمsetElementData getElementData والله ماقيد سويتها ذذ عطني مثال او شرح او شي اي addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) setElementData( source, 'IP', getPlayerIP( source ) ) end ); واستخدم في الكلنت getElementData( localPlayer, 'IP' ) سويته على السريع Link to comment
TD[M]ER Posted December 17, 2012 Author Share Posted December 17, 2012 (edited) استخدمsetElementData getElementData والله ماقيد سويتها ذذ عطني مثال او شرح او شي اي 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 December 17, 2012 by Guest Link to comment
Blaawee Posted December 17, 2012 Share Posted December 17, 2012 شلون تجي ذي تريقر كلاينت في كلاينت وايفنت سيرفر في كلاينت وسيرفر في كلاينت !! Link to comment
TD[M]ER Posted December 17, 2012 Author Share Posted December 17, 2012 لخبطت ذذ الاول كلنت والثاني سيرفر Link to comment
==>ҭᾄlᾄl Posted December 17, 2012 Share Posted December 17, 2012 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
TD[M]ER Posted December 17, 2012 Author Share Posted December 17, 2012 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now