Jump to content

-×][ مشكلة في مود نسخ معلومات][×-


Recommended Posts

السلام عليكم

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

-------------------------------][صورة للمود][-------------------------------

p_659wv14d1.png

-------------------------------][اكواد برمجة][-------------------------------

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 by abdennour-mez
Link to comment
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

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...