Jump to content

تعديل على الاكواد


Recommended Posts

السلام عليكم

عندي كود كلينت

ابغى كلمة موجوده في اللوحة تتحرك من اليمين الى اليسار

اتمنى فهمتوني

السطر موجود في نفس الاكواد

السطر هو

" Welcome To Server Top Race "

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) 
        GUIEditor.label[14] = 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 ) 

اتمنى تساعدوني :cry:

Link to comment

ما ابغى اللوحة تتحرك

في كلمة في نفس اللوحة

اللي هيا وضحتها فوق

ابغاها تتحرك في نفس اللوحة من اليمين الى اليسار او العكس

واقرب مثال سيرفر تبوك

مسوين الخاصية في لوحاتهم

وشكرا

اتمنى وصل المطلوب

Link to comment

استعمل وضيفة

InterpolateBetween 

وهاده مثال بسيط يحرك كتابة من اليمين الى اليصاار

local sx, sy = guiGetScreenSize() 
local start = getTickCount( ) 
addEventHandler("onClientRender", root, function( ) 
    local now = getTickCount( ) 
    local x = interpolateBetween(0, 0, 0, sx - 300, 0, 0, (now - start) / ((start + 1500) - start), "OutBack") 
    dxDrawText("YourText", x, 500, 50) 
end) 

وبالنسبة لكلمة

"OutBack" 

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

وهادو انواع الحركة الموجودين

"Linear","InQuad","OutQuad","InOutQuad","OutInQuad","InElastic","OutElastic","InOutElastic","OutInElastic","InBack","OutBack","InOutBack","OutInBack","InBounce","OutBounce","InOutBounce","OutInBounce","SineCurve","CosineCurve" 
--لتعرف على الحركات اكثر قم زيارة 
-- @ [url=https://wiki.multitheftauto.com/wiki/Easing]https://wiki.multitheftauto.com/wiki/Easing[/url] 

+ الوضيفة دي يمكن لك تحرك بيها حتى الصور و الماركر و النوافد

عشان تفهمها اككثر

شاهد الفيديو

وياا رب تستفيد

بااي

Link to comment
local guiElement = myText 
local stopPosition = 50 
local moveSpeed = 5 
local moveTimer = setTimer(function() 
if guiGetPosition(text) < stopPosition then -- اتحقق انه احداثيات الالمنت ماوصلت للمكان الي ابيه توقف فيه 
guiSetPosition(text,guiGetPosition(text)+moveSpeed) -- احرك الالمنت 5 بكسل زياده على الاحداثيات حقته 
else -- اذا ماكانت احداثيات الالمنت اقل من الي ابيه 
killTimer(moveTimer) -- أنهي التايمر عشان اوقف التحريك 
end 
end,50,0) 

Link to comment

جرب

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) 

Link to comment

غير الارقام

يمكن تسذا

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)

Link to comment

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