Jump to content

طلب كود ~| الصورة المتحركه


DrHacTor

Recommended Posts

السلام عليكمم ورحمةة الله وبركاتهةة :roll:

كيفكمم , :lol:

ان شاء الله بخير 8)

م احب اطول عليكمم نخش الموضوع ع مبآشرآ

طبعآ آنآ شايف بعدهة سيرفرات عندهم الصوره متحركه باللوحه

,,

يعني تروح نص لصوره وترجع , يمين ثم يسار يسار ثم يمين

وهكذا

لو عندكمم الكود ي ليت تفيدوني :) #, thx :mrgreen:

Link to comment

مشكلت شرحك كأنه من عيال

روح يمين اول بيت على اليسار الي جنب البقالة طيب وين البقالة جنب بيتنا :lol: امزحح

وضحح يولد مافهمنا #

:( اسمم الموضوع يمقن يفهمكك xDD

يعني الصورهةة تتحركك يمين ويسار ضـ الله يعين ,#

يعني تلف الصوره كيف افهمك#, @@

## ! ! الصوره الي باللوحه تروح يمين ثم يسار

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

ذي صورة السيرفر مابيها ثابته ابيها تتحرك # مب يعني تتحرك من مكانها !

Link to comment

YouLabelName حط اسم الصورة بدال

ولا تنسى تبدل الارقام وحسن شارح كل وحدة وش وظيفتها .

اذا تبيه في نافذه :
local againStartMove = 100 -- يبدأ لما ينتهي من 
local endMove = 400 -- يوقف لما تبيه يرجع عند 
addEventHandler("onClientRender",root,function() 
    if ( guiGetVisible(YouWindowNme) == true ) then 
        local x,y = guiGetPosition(YouLabelName,false) 
        guiSetPosition(YouLabelName,x + 3,y,false) 
        if ( x >= endMove ) then 
            guiSetPosition(YouLabelName,againStartMove,y,false) 
        end 
    end 
end) 

بدون :

local againStartMove = 100 
local endMove = 400 
addEventHandler("onClientRender",root,function() 
    local x,y = guiGetPosition(YouLabelName,false) 
    guiSetPosition(YouLabelName,x + 3,y,false) 
    if ( x >= endMove ) then 
        guiSetPosition(YouLabelName,againStartMove,y,false) 
    end 
end) 

Link to comment
YouLabelName حط اسم الصورة بدال

ولا تنسى تبدل الارقام وحسن شارح كل وحدة وش وظيفتها .

اذا تبيه في نافذه :
local againStartMove = 100 -- يبدأ لما ينتهي من 
local endMove = 400 -- يوقف لما تبيه يرجع عند 
addEventHandler("onClientRender",root,function() 
    if ( guiGetVisible(YouWindowNme) == true ) then 
        local x,y = guiGetPosition(YouLabelName,false) 
        guiSetPosition(YouLabelName,x + 3,y,false) 
        if ( x >= endMove ) then 
            guiSetPosition(YouLabelName,againStartMove,y,false) 
        end 
    end 
end) 

بدون :

local againStartMove = 100 
local endMove = 400 
addEventHandler("onClientRender",root,function() 
    local x,y = guiGetPosition(YouLabelName,false) 
    guiSetPosition(YouLabelName,x + 3,y,false) 
    if ( x >= endMove ) then 
        guiSetPosition(YouLabelName,againStartMove,y,false) 
    end 
end) 

الكود مب دائرهة الكود = #, يلف سهم يمين يعني يروح يمين ويرجع #, مب نفس الطلب ! , اعتقد الكود الي ابيه حق ابو شنب :#) موجود برومه ملوك الريس , :)

Link to comment
وش درانا حنا : |

تقولي روم فلان وروم فلان وضح طلبكـ بالصور يكون افضل وش يمين يسار ؟ تقصد تروح يمين ويسار زي حق سالفة الائوسمة لول

aqnibl.png

-------------------------------------------

9PVFj8.png

Link to comment
dxDrawImage 

bool dxDrawImage ( float posX, float posY, float width, float height, mixed image [, float rotation = 0, float rotationCenterOffsetX = 0,

float rotationCenterOffsetY = 0, int color = tocolor(255,255,255,255), bool postGUI = false ] )

rotation = درجة الدوران

Link to comment

مدري ليه كلها مو عارفة تفيد الرجال وطلبه بسيط مرة :|

local screenWidth, screenHeight = guiGetScreenSize() 
  
img = "xx.png" -- اسم الصورة 
  
addEventHandler("onClientRender", root, 
function() 
local seconds = getTickCount() / 1000 
local R = math.sin(seconds) * 80 
dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 600) * 157, (screenWidth / 800) * 93, (screenHeight / 600) * 68, img , R) 
end 
) 

Link to comment
مدري ليه كلها مو عارفة تفيد الرجال وطلبه بسيط مرة :|
local screenWidth, screenHeight = guiGetScreenSize() 
  
img = "xx.png" -- اسم الصورة 
  
addEventHandler("onClientRender", root, 
function() 
local seconds = getTickCount() / 1000 
local R = math.sin(seconds) * 80 
dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 600) * 157, (screenWidth / 800) * 93, (screenHeight / 600) * 68, img , R) 
end 
) 

جزاك الله الف خير تم التجربةة

تم الافادهةة من قبل حسون يغلقق :mrgreen:

HasoN thx

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