Jump to content

مساعدة


jaberxpro

Recommended Posts

Posted

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

كل عام وانت بخير عيد المولد النبوي :)

كيف اسوي عندما شخص يضغط بوتون ينسخ الكلام الموجود بالميمو او الايديت

Posted
GUIEditor = { 
    button = {}, 
    edit = {}, 
    window = {}, 
} 
GUIEditor.window[1] = guiCreateWindow(241, 112, 385, 353, "تجربة", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetAlpha(GUIEditor.window[1], 1.00) 
guiSetVisible (GUIEditor.window[1],false) 
  
GUIEditor.edit[1] = guiCreateEdit(65, 72, 262, 37, "**__*** *---*--* تجربة ", false, GUIEditor.window[1]) 
GUIEditor.button[1] = guiCreateButton(136, 186, 135, 42, "نسخ", false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(327, 303, 49, 34, "اغلاق", false, GUIEditor.window[1]) 
  
----------------------------اكواد زر النسخ 
  
function clickedButton1() 
    local text = guiGetText(GUIEditor.edit[1]) 
    setClipboard(text) 
end 
addEventHandler("onClientGUIClick", GUIEditor.button[1], clickedButton1, false) 
  
---------------------------اكواد كلام يجي بالشات 
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[1] then  
outputChatBox("تم النسخ بنجاح", 250, 255, 0) 
end 
end 
) 
  
  
--------------------------اكواد زر فتح اللوحة 
  
local KEY = "F5" 
function open () 
guiSetVisible (GUIEditor.window[1],true) showCursor(true) 
end 
bindKey(KEY,"down",open) 
  
--------------------------اكواد زر اغلاق اللوحة 
  
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[2] then  
guiSetVisible(GUIEditor.window[1],false) showCursor(false) 
end 
end 
) 

:fadein:

Posted
GUIEditor = { 
    button = {}, 
    edit = {}, 
    window = {}, 
} 
GUIEditor.window[1] = guiCreateWindow(241, 112, 385, 353, "تجربة", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetAlpha(GUIEditor.window[1], 1.00) 
guiSetVisible (GUIEditor.window[1],false) 
  
GUIEditor.edit[1] = guiCreateEdit(65, 72, 262, 37, "**__*** *---*--* تجربة ", false, GUIEditor.window[1]) 
GUIEditor.button[1] = guiCreateButton(136, 186, 135, 42, "نسخ", false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(327, 303, 49, 34, "اغلاق", false, GUIEditor.window[1]) 
  
----------------------------اكواد زر النسخ 
  
function clickedButton1() 
    local text = guiGetText(GUIEditor.edit[1]) 
    setClipboard(text) 
end 
addEventHandler("onClientGUIClick", GUIEditor.button[1], clickedButton1, false) 
  
--------------------------اكواد زر فتح اللوحة 
  
local KEY = "F5" 
function open () 
guiSetVisible (GUIEditor.window[1],true) showCursor(true) 
end 
bindKey(KEY,"down",open) 
  
--------------------------اكواد زر اغلاق اللوحة 
  
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[2] then  
guiSetVisible(GUIEditor.window[1],false) showCursor(false) 
end 
end 
) 

:fadein:

هنا false وش فايدة الـ

addEventHandler("onClientGUIClick", GUIEditor.button[1], clickedButton1, false) 
Posted

هذا عشان لانه حط بدل root او guiRoot

اسم الزر مباشرة

ف ال false هي يعني

اذا ضغط هذا الزر

يعني مثلا اذا ماحطيت false

اذا ضغطت اي زر راح يسوي نفس الامر

Posted

هذا عشان لانه حط بدل root او guiRoot

اسم الزر مباشرة

ف ال false هي يعني

اذا ضغط هذا الزر

يعني مثلا اذا ماحطيت false

اذا ضغطت اي زر راح يسوي نفس الامر

آها .. مشكور

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