تسلم , <3
GUIEditor = {
checkbox = {},
edit = {},
button = {},
window = {},
label = {}
}
GUIEditor.window[1] = guiCreateWindow(450, 200, 472, 379, ".\"{SMILIES_PATH}/icon_neutral.gif\" alt=\"\" title=\"Neutral\" /> لـوحـة تسـجـيل |:.", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00D1FF")
GUIEditor.button[1] = guiCreateButton(10, 264, 160, 44, "# | تـسـجـيل | #", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF")
GUIEditor.button[2] = guiCreateButton(302, 264, 160, 44, "# | تـسـجيل دخـول | #", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF")
GUIEditor.label[1] = guiCreateLabel(325, 72, 109, 25, " | أسـم الـحسـآب |", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[1], 225, 211, 0)
GUIEditor.label[2] = guiCreateLabel(44, 70, 109, 25, " | أسـم الـحسـآب |", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[2], 0, 225, 10)
GUIEditor.edit[1] = guiCreateEdit(302, 112, 160, 28, "", false, GUIEditor.window[1])
GUIEditor.edit[2] = guiCreateEdit(20, 112, 160, 28, "", false, GUIEditor.window[1])
GUIEditor.edit[3] = guiCreateEdit(302, 203, 160, 28, "", false, GUIEditor.window[1])
guiEditSetMasked(GUIEditor.edit[3], true)
GUIEditor.edit[4] = guiCreateEdit(20, 203, 160, 28, "", false, GUIEditor.window[1])
GUIEditor.label[3] = guiCreateLabel(325, 161, 109, 25, "| ألـرقـم آلـسـري |", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[3], 47, 225, 0)
GUIEditor.label[4] = guiCreateLabel(51, 160, 109, 25, "| ألـرقـم آلـسـري |", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[4], 225, 190, 0)
GUIEditor.label[5] = guiCreateLabel(162, 37, 173, 25, "[G.N] x | GNOON | x [G.N]", false, GUIEditor.window[1])
GUIEditor.label[6] = guiCreateLabel(206, 241, 79, 20, "حفظ البيانات :", false, GUIEditor.window[1])
GUIEditor.checkbox[1] = guiCreateCheckBox(227, 264, 16, 12, "", true, false, GUIEditor.window[1])
GUIEditor.label[7] = guiCreateLabel(160, 332, 172, 29, "By : MR.DHwRoK", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[7], "default-bold-small")
guiLabelSetColor(GUIEditor.label[7], 0, 225, 116)
GUIEditor.label[8] = guiCreateLabel(225, 148, 77, 45, "*", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[8], "sa-gothic")
guiLabelSetColor(GUIEditor.label[8], 225, 0, 0)
#Client
GUIEditor = {
checkbox = {},
edit = {},
button = {},
window = {},
label = {}
}
GUIEditor.window[1] = guiCreateWindow(450, 200, 472, 379, ".\"{SMILIES_PATH}/icon_neutral.gif\" alt=\"\" title=\"Neutral\" /> لـوحـة تسـجـيل |:.", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00D1FF")
GUIEditor.button[1] = guiCreateButton(10, 264, 160, 44, "# | تـسـجـيل | #", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF")
GUIEditor.button[2] = guiCreateButton(302, 264, 160, 44, "# | تـسـجيل دخـول | #", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF")
GUIEditor.label[1] = guiCreateLabel(325, 72, 109, 25, " | أسـم الـحسـآب |", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[1], 225, 211, 0)
GUIEditor.label[2] = guiCreateLabel(44, 70, 109, 25, " | أسـم الـحسـآب |", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[2], 0, 225, 10)
GUIEditor.edit[1] = guiCreateEdit(302, 112, 160, 28, "", false, GUIEditor.window[1])
GUIEditor.edit[2] = guiCreateEdit(20, 112, 160, 28, "", false, GUIEditor.window[1])
GUIEditor.edit[3] = guiCreateEdit(302, 203, 160, 28, "", false, GUIEditor.window[1])
guiEditSetMasked(GUIEditor.edit[3], true)
GUIEditor.edit[4] = guiCreateEdit(20, 203, 160, 28, "", false, GUIEditor.window[1])
GUIEditor.label[3] = guiCreateLabel(325, 161, 109, 25, "| ألـرقـم آلـسـري |", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[3], 47, 225, 0)
GUIEditor.label[4] = guiCreateLabel(51, 160, 109, 25, "| ألـرقـم آلـسـري |", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[4], 225, 190, 0)
GUIEditor.label[5] = guiCreateLabel(162, 37, 173, 25, "[G.N] x | GNOON | x [G.N]", false, GUIEditor.window[1])
GUIEditor.label[6] = guiCreateLabel(206, 241, 79, 20, "حفظ البيانات :", false, GUIEditor.window[1])
GUIEditor.checkbox[1] = guiCreateCheckBox(227, 264, 16, 12, "", true, false, GUIEditor.window[1])
GUIEditor.label[7] = guiCreateLabel(160, 332, 172, 29, "By : MR.DHwRoK", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[7], "default-bold-small")
guiLabelSetColor(GUIEditor.label[7], 0, 225, 116)
GUIEditor.label[8] = guiCreateLabel(225, 148, 77, 45, "*", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[8], "sa-gothic")
guiLabelSetColor(GUIEditor.label[8], 225, 0, 0)
showCursor ( true )
----------------------------------------
addEventHandler("onClientGUIClick",root,
function ()
if source == GUIEditor.button[2] then
triggerServerEvent("onLogin",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[2]),guiGetText(GUIEditor.edit[3]) )
elseif source == 1 then
guiSetVisible(wnd,false)
showCursor(false)
showChat(true)
fadeCamera(true,5)
elseif source == GUIEditor.button[1] then
triggerServerEvent("onReg",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[2]),guiGetText(GUIEditor.edit[3]) )
end
end
)
addEvent("Hidewindow",true)
addEventHandler("Hidewindow",root,
function ()
guiSetVisible(GUIEditor.window[1] ,false)
showCursor(false)
showChat(true)
fadeCamera(true,5)
end
)
#Server
addEvent("onLogin", true)
addEventHandler("onLogin",root,
function (player, user, pass, NameAccount, Password)
local account = getAccount ( user, pass )
if ( account ~= true ) then
if (logIn ( player, account, pass ) == true) then
outputChatBox ( "=[ You Logged in Sucessfuly ! ]=", player, 255, 255, 0 , true )
triggerClientEvent (player, "Hidewindow", player)
else
outputChatBox ( "=[ Login Error ! ]=", player, 255, 0, 0 )
end
else
outputChatBox ( "=[ Wrong username or password ! ]=", player, 255, 0, 0 )
end
end
)
--
addEvent("onReg", true)
addEventHandler("onReg",root,
function ( player, user, pass, NameAccount, Password )
local account = getAccount ( user, pass )
if ( account ~= false ) then
if (logIn ( player, account, pass ) == true) then
outputChatBox ( "=[ You Registerd and Logged in Sucessfuly ! ]=", player, 255, 255, 0 )
triggerClientEvent (player, "Hidewindow", player)
else
outputChatBox ( "=[ You Are Already Logged in ! ]=", player, 255, 255, 0 )
triggerClientEvent (player, "Hidewindow", player)
end
else
account = addAccount ( user, pass )
if (logIn ( player, account, pass ) == true) then
outputChatBox ( "=[ You Registerd and Logged in Sucessfuly ! ]=", player, 255, 255, 0 )
triggerClientEvent (player, "Hidewindow", player)
else
outputChatBox ( "=[ Register Error ! ]=", player, 255, 0, 0 )
end
end
end
)
ضيف المود لقروب الادمن #