abdennour-mez Posted October 21, 2017 Share Posted October 21, 2017 (edited) السلام عليكم معي مشكلة في مود نسخ معلومات المشكلة هي ماقدر انسخ اسم حساب -------------------------------][صورة للمود][------------------------------- -------------------------------][اكواد برمجة][------------------------------- Serial_EDIT = guiCreateEdit(1012, 281, 348, 30, "",false,INFORM_WND) guiSetText(Serial_EDIT,"" .. getPlayerSerial()) guiSetAlpha(Serial_EDIT, 0.00) guiEditSetReadOnly(Serial_EDIT, true) Acc__EDIT = guiCreateEdit(1012, 327, 348, 30, "",false,INFORM_WND) guiSetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) guiSetAlpha(Acc__EDIT, 0.00) guiEditSetReadOnly(Acc__EDIT, true) NickName_EDIT = guiCreateEdit(1012, 372, 348, 30, "",false,INFORM_WND) guiSetText(NickName_EDIT,"" .. getPlayerName(localPlayer) ) guiSetAlpha(NickName_EDIT, 0.00) guiEditSetReadOnly(NickName_EDIT, true) addEventHandler( "onClientElementDataChange", root, function( dataName, OldValue ) if ( source and dataName == "AccountName" ) then guiGetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) end end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) guiSetText(NickName_EDIT,"" .. newNick ) end ) addEventHandler("onClientGUIClick",root, function () if source == Close_Button then if ( guiGetVisible(INFORM_WND) == false ) then showCursor(true) end guiSetVisible ( INFORM_WND, false ) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == NickName_Copy ) then local text = guiGetText ( NickName_EDIT ) setClipboard( text ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == NickName_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(NickName_Copy, true) guiSetText ( source, "تم نسخ النك نيم" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "✦| Copy |✦| نسخ |✦" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, NickName_Copy, true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == Serial_Copy ) then local text = guiGetText ( Serial_EDIT ) setClipboard( text ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Serial_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(Serial_Copy, true) guiSetText ( source, "تم نسخ السيريال" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "✦| Copy |✦| نسخ |✦" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, Serial_Copy, true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == AccName_Copy ) then local text = guiGetText ( Acc__EDIT ) setClipboard( text ) end end ) addCommandHandler('معلومات', function() if (guiGetVisible(INFORM_WND) == true) then guiSetVisible(INFORM_WND,false) showCursor(false) else guiSetVisible(INFORM_WND,true) showCursor(true) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == AccName_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(AccName_Copy, true) guiSetText ( source, "تم نسخ الحساب" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "✦| Copy |✦| نسخ |✦" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, AccName_Copy, true) end end ) addEventHandler( "onClientElementDataChange", root, function( dataName, OldValue ) if ( source and dataName == "AccountName" ) then guiSetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) end end ) Edited October 21, 2017 by abdennour-mez Link to comment
!#NssoR_) Posted October 22, 2017 Share Posted October 22, 2017 ينقل لقسم اللغة العربية - البرمجة 2 Link to comment
Abu-Solo Posted October 22, 2017 Share Posted October 22, 2017 وش يقولك الـ debugscript 3? Link to comment
abdennour-mez Posted October 22, 2017 Author Share Posted October 22, 2017 1 hour ago, Abu-Solo said: وش يقولك الـ debugscript 3? Link to comment
Abu-Solo Posted October 22, 2017 Share Posted October 22, 2017 طيب لما تضغط ع الزر حق النسخ وش يقول؟ 13 minutes ago, abdennour-mez said: Link to comment
^iiEcoo'x_) Posted October 22, 2017 Share Posted October 22, 2017 Serial_EDIT = guiCreateEdit(1012, 281, 348, 30, "",false,INFORM_WND) guiSetText(Serial_EDIT,"" .. getPlayerSerial()) guiSetAlpha(Serial_EDIT, 0.00) guiEditSetReadOnly(Serial_EDIT, true) Acc__EDIT = guiCreateEdit(1012, 327, 348, 30, "",false,INFORM_WND) guiSetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) guiSetAlpha(Acc__EDIT, 0.00) guiEditSetReadOnly(Acc__EDIT, true) NickName_EDIT = guiCreateEdit(1012, 372, 348, 30, "",false,INFORM_WND) guiSetText(NickName_EDIT,"" .. getPlayerName(localPlayer) ) guiSetAlpha(NickName_EDIT, 0.00) guiEditSetReadOnly(NickName_EDIT, true) addEventHandler( "onClientElementDataChange", root, function( dataName, OldValue ) if ( getElementType ( source ) == 'player' ) and ( dataName == "AccountName" ) then guiSetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) end end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) guiSetText(NickName_EDIT,"" .. newNick ) end ) addEventHandler("onClientGUIClick",root, function () if source == Close_Button then if ( guiGetVisible(INFORM_WND) == false ) then showCursor(true) end guiSetVisible ( INFORM_WND, false ) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == NickName_Copy ) then local text = guiGetText ( NickName_EDIT ) setClipboard( text ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == NickName_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(NickName_Copy, true) guiSetText ( source, "تم نسخ النك نيم" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "✦| Copy |✦| نسخ |✦" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, NickName_Copy, true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == Serial_Copy ) then local text = guiGetText ( Serial_EDIT ) setClipboard( text ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Serial_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(Serial_Copy, true) guiSetText ( source, "تم نسخ السيريال" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "✦| Copy |✦| نسخ |✦" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, Serial_Copy, true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == AccName_Copy ) then local text = guiGetText ( Acc__EDIT ) setClipboard( text ) end end ) addCommandHandler('معلومات', function() if (guiGetVisible(INFORM_WND) == true) then guiSetVisible(INFORM_WND,false) showCursor(false) else guiSetVisible(INFORM_WND,true) showCursor(true) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == AccName_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(AccName_Copy, true) guiSetText ( source, "تم نسخ الحساب" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "✦| Copy |✦| نسخ |✦" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, AccName_Copy, true) end end ) Link to comment
abdennour-mez Posted October 26, 2017 Author Share Posted October 26, 2017 On 22/10/2017 at 19:48, Abu-Solo said: طيب لما تضغط ع الزر حق النسخ وش يقول؟ يطلعلي نفس شيء Link to comment
^iiEcoo'x_) Posted October 27, 2017 Share Posted October 27, 2017 7 hours ago, abdennour-mez said: يطلعلي نفس شيء شوف ردي فوق ، صلحت كودك . Link to comment
abdennour-mez Posted October 27, 2017 Author Share Posted October 27, 2017 9 hours ago, DABL said: شوف ردي فوق ، صلحت كودك . شكرا خلاص تصلحت Link to comment
^iiEcoo'x_) Posted October 27, 2017 Share Posted October 27, 2017 2 hours ago, abdennour-mez said: شكرا خلاص تصلحت العفو . 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