جرب
NameButton = اسم الزر
edit = اسم الايديت
--
addEventHandler("onClientGUIClick",getRootElement(), function ( )
if ( source == NameButton ) then
setClipboard(guiGetText(edit))
end
end)
مم عليش عدلته لك عع السريع
* Client :
addEventHandler("onClientGUIClick",root, function ( )
if ( source == GUIEditor.button[1] ) then
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2])) then
local money = guiGetText(GUIEditor.edit[1])
triggerSererEvent("wz3",localPlayer, money)
outputChatBox("#C0FF00you have been given #FF0000"..money.."$ #C0FF00from #FF0000"..localPlayerName.. " #C0FF00because #0000FF[#FF0000"..guiGetText ( GUIEditor.edit[2] ).."#0000FF]", 255, 0, 0, true )
elseif ( source == GUIEditor.button[3] ) then
guiSetVisible(win, false)
showCursor(false)
end
end
end)
* Server :
addEvent("wz3", true)
addEventHandler("wz3", root,
function ( money )
givePlayerMoney ( source , money )
end)
جرب
local Groups = { "Admin", "Console", }
addEventHandler("onPlayerUnmute",root, function ()
local acc = getAccountName(getPlayerAccount(source))
for i,v in ipairs( Groups ) do
if isObjectInACLGroup ( "user." .. acc, aclGetGroup ( v ) ) then
cancelEvent()
end
end
end)
القروبات الي متبيها ينفك عنها الميوت
Server Side :
addEventHandler("onPlayerUnmute",root, function (player)
local accountname = getAccountName(getPlayerAccount(player))
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then
cancelEvent()
end
end)
Server Side :
addEventHandler("onPlayerJoin",root, function ( )
outputChatBox("Welocme To Server ",root,math.random(255),math.random(255),math.random(255),true)
end)
local x = 0
local xx = 200
addEventHandler("onClientRender", root,
function()
if x < xx then
x = x + 0.5
guiSetPosition(NamwWindow, x, 100, false)
end
end
)