جرب
GUIEditor = {
label = {},
staticimage = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.staticimage[1] = guiCreateStaticImage(147, 134, 474, 340, "wnd.png", false)
guiSetVisible (GUIEditor.staticimage[1], false )
GUIEditor.label[1] = guiCreateLabel(102, 6, 271, 19, "||# حياكم الله في السيرفر #||# نظام شراء #||", false, GUIEditor.staticimage[1])
GUIEditor.label[2] = guiCreateLabel(140, 35, 195, 34, "لشراء التاج اتبع الخطوات التالية", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[2], 250, 236, 4)
guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false)
GUIEditor.label[3] = guiCreateLabel(270, 69, 152, 20, "1 - إحضار بطاقة شحن", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[3], 253, 0, 0)
guiLabelSetHorizontalAlign(GUIEditor.label[3], "right", false)
GUIEditor.label[4] = guiCreateLabel(150, 104, 185, 20, "2 - ارسال رسالة ريبورت بطلب الشراء", false, GUIEditor.staticimage[1])
guiLabelSetHorizontalAlign(GUIEditor.label[4], "right", false)
GUIEditor.label[5] = guiCreateLabel(10, 134, 260, 18, "3 - إضافة إحدى حسابات الكونسل", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[5], 4, 27, 249)
GUIEditor.label[6] = guiCreateLabel(103, 162, 277, 24, "لشراء ساعات اختار إجراء ثم اتبع الخطوات السابقة", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[6], 250, 236, 4)
guiLabelSetHorizontalAlign(GUIEditor.label[6], "center", false)
GUIEditor.label[7] = guiCreateLabel(329, 195, 124, 21, "200 ساعة بـ 10 ريال", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[7], 253, 0, 0)
guiLabelSetHorizontalAlign(GUIEditor.label[7], "center", false)
GUIEditor.label[8] = guiCreateLabel(172, 196, 126, 20, "300 ساعة بـ 20 ريال", false, GUIEditor.staticimage[1])
guiLabelSetHorizontalAlign(GUIEditor.label[8], "center", false)
GUIEditor.label[9] = guiCreateLabel(20, 195, 114, 21, "400 ساعة بـ 30 ريال", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[9], 4, 27, 249)
GUIEditor.label[10] = guiCreateLabel(103, 226, 277, 24, "لشراء رتبة اختار إجراء ثم اتبع الخطوات السابقة", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[10], 250, 236, 4)
guiLabelSetHorizontalAlign(GUIEditor.label[10], "center", false)
GUIEditor.label[11] = guiCreateLabel(312, 260, 141, 20, "اخر رتبة من اف 6 بـ 20 ريال", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[11], 253, 0, 0)
guiLabelSetHorizontalAlign(GUIEditor.label[11], "center", false)
GUIEditor.label[12] = guiCreateLabel(167, 260, 126, 20, "رتبة مانجر بـ 30 ريال", false, GUIEditor.staticimage[1])
guiLabelSetHorizontalAlign(GUIEditor.label[12], "center", false)
GUIEditor.label[13] = guiCreateLabel(10, 260, 142, 20, "الكونسل ريتم تحديدها لاحقا", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[13], 4, 27, 249)
ProGamer = guiCreateLabel(105, 303, 246, 42, "Welcome To Server Top Race", false, GUIEditor.staticimage[1])
guiSetAlpha(GUIEditor.label[14], 0.33)
guiLabelSetColor(GUIEditor.label[14], 43, 209, 187)
guiLabelSetHorizontalAlign(GUIEditor.label[14], "center", false)
GUIEditor.label[15] = guiCreateLabel(0, 323, 71, 17, "Created", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[15], 250, 236, 4)
GUIEditor.label[16] = guiCreateLabel(46, 323, 15, 16, "By", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[16], 253, 0, 0)
GUIEditor.label[17] = guiCreateLabel(61, 323, 62, 16, "iMr.Faisal.9", false, GUIEditor.staticimage[1])
guiLabelSetColor(GUIEditor.label[17], 4, 15, 247)
end
)
guiSetVisible (GUIEditor.staticimage[1], false)
function OpenWin()
if guiGetVisible (GUIEditor.staticimage[1]) then
guiSetVisible (GUIEditor.staticimage[1], false )
showCursor(false)
guiSetInputEnabled(false)
else
guiSetVisible (GUIEditor.staticimage[1], true )
showCursor(true)
guiSetInputEnabled(true)
end
end
bindKey("F10", "down", OpenWin)
addCommandHandler('شراء',function()
guiSetVisible(top, not guiGetVisible(top))
showCursor(guiGetVisible(top))
end
)
function BOX ( )
outputChatBox ( "*#ff0000= #00ff00 نظام شراء الرتب والتاجات والساعات بالفلوس #ff0000=*", 255, 0, 0, true )
outputChatBox ( "*#ff0000= #00ff00 الرجاء الدفع لأحدى حسابات الكونسل اف 10#ff0000 =*", 255, 0, 0, true )
end
setTimer ( BOX, 30000, 0 )
addEventHandler("onClientRender",getRootElement(),function()
x,y = guiGetPosition(ProGamer,false)
xN,xY = x + 2 , y
if xN >= 300 then
xN = -200
end
guiSetPosition(ProGamer,xN,xY,false)
guiLabelSetColor(ProGamer,255,0,0)
end)