لم تشتغل حتي
GUIEditor = {
button = {},
window = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(0.43, 0.28, 0.16, 0.41, "=[ لوحه مسح آلشآت ]=", true)
guiSetVisible(GUIEditor.window[1],false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFEAFF00")
GUIEditor.label[1] = guiCreateLabel(0.07, 0.11, 0.88, 0.06, "# جميع آلحقوق تعود لـ مستر اموات", true, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 0, 254, 246)
GUIEditor.label[2] = guiCreateLabel(0, 50, 210, 15, "_____________________________________", false, GUIEditor.window[1])
GUIEditor.button[1] = guiCreateButton(20, 114, 170, 59, "مسح آلشآآت !", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF4DFD00")
GUIEditor.label[3] = guiCreateLabel(0, 173, 210, 15, "_____________________________________", false, GUIEditor.window[1])
GUIEditor.label[4] = guiCreateLabel(10, 81, 231, 23, "* يجب يكون عند سبب لمسح الشات", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[4], "default-bold-small")
guiLabelSetColor(GUIEditor.label[4], 252, 0, 0)
GUIEditor.label[5] = guiCreateLabel(67, 188, 177, 29, "* ملاحظات *", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[5], "default-bold-small")
guiLabelSetColor(GUIEditor.label[5], 0, 251, 231)
GUIEditor.label[6] = guiCreateLabel(26, 207, 170, 20, "تضغظ علي الزر مرة واحدة فقط", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[6], "default-bold-small")
guiLabelSetColor(GUIEditor.label[6], 0, 29, 251)
GUIEditor.label[7] = guiCreateLabel(15, 233, 190, 15, "كل 15 دقيقة سوف تضغظ مرة اخري", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[7], "default-bold-small")
guiLabelSetColor(GUIEditor.label[7], 171, 250, 0)
GUIEditor.label[8] = guiCreateLabel(129, 291, 82, 15, "#مجتمع_آلعرب", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[8], "default-bold-small")
guiLabelSetColor(GUIEditor.label[8], 249, 194, 0)
GUIEditor.label[9] = guiCreateLabel(68, 296, 61, 15, "mtaarabs.com", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[9], "default-small")
guiLabelSetColor(GUIEditor.label[9], 255, 254, 254)
GUIEditor.label[10] = guiCreateLabel(45, 258, 181, 25, "* حيآكم آلله بآلسيرفر , !", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[10], "default-bold-small")
guiLabelSetColor(GUIEditor.label[10], 0, 243, 131)
end
)
function guiAntiFlood(element, timer)
if getElementType ( element ) == "gui-button" then
local atimer = tonumber(timer)
if atimer == nil or atimer == '' or not tonumber(atimer) then
error("Bad Argument the Argument 2 must number")
else
end
guiSetEnabled(element,false)
setTimer(function()
guiSetEnabled(element,true)
end,tonumber(atimer),1)
else
error("Bad Argument 1 the element must button")
end
end
addEventHandler( 'onClientMouseEnter',GUIEditor.button[1],
function ( )
guiSetAlpha(source, 0.8);
playSoundFrontEnd(3);
end,false
);
addEventHandler ( 'onClientGUIClick',root,function ()
if ( source == GUIEditor.button[1] ) then
triggerServerEvent ( 'chat', localPlayer )
guiAntiFlood(GUIEditor.button[1],9000)
end
end
)
bindKey ( 'F7','down',
function ( )
guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) );
showCursor ( guiGetVisible ( GUIEditor.window[1] ) );
end
);
- ملف السيرفر
addEvent ( "chat", true )
addEventHandler("chat",root,
function ()
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox ( "#FF0000INFO : #ffff00ADMIN #ff0000[#ffff00 ".. name .." #ff0000]#FFFF00 CLEARED THE CHAT", getRootElement(), 255, 255, 255, true )
end)