Jump to content

مشكله


Recommended Posts

Posted

سلام عليكم انا عامل لوحه دي اكس وعملت تفتح بـ ف1 م نفعت

bindKey("F1","down",function () 
if ( removeEventHandler | "onClientRender",roo,adham ) then 
removeEventHandler ("onClientRender",roo,adham ) then 
showCursor(false) 
else 
addEventHandler("onClientRender",roo,adham ) then 
showCursor(true) 
  end 
end 
) 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

aVisible = false  
bindKey("f1","down", function ( ) 
if ( aVisible == true ) then  
removeEventHandler("onClientRender",root,adham) 
showCursor ( false ) 
else 
addEventHandler("onClientRender",root,adham) 
showCursor ( true ) 
end 
aVisible = not aVisible 
end) 

Dis ; AF.#0941

Posted

م اشتغل

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

الكود الي حاطه ميزو هو نفسه كود لعبه الي حاطه بأول الموضوع

شكله انتبه لل

roo

root وعدلها ل

ونسي يقرا ويتمعن بالكود

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted

مانبي نعطي الموضوع اكثر من حجمه :

جربت ذا الكود وظبط معي ..

function adham ( ) 
dxDrawText("MultiTheftAuto", 241, 235, 609, 268, tocolor(255, 255, 255, 255), 2.00, "bankgothic", "center", "center", false, false, false, false, false) 
end 
  
aVisible = false 
bindKey("f1","down", function ( ) 
if ( aVisible == true ) then 
removeEventHandler("onClientRender",root,adham) 
showCursor ( false ) 
else 
addEventHandler("onClientRender",root,adham) 
showCursor ( true ) 
end 
aVisible = not aVisible 
end) 

Dis ; AF.#0941

Posted
مانبي نعطي الموضوع اكثر من حجمه :

جربت ذا الكود وظبط معي ..

function adham ( ) 
dxDrawText("MultiTheftAuto", 241, 235, 609, 268, tocolor(255, 255, 255, 255), 2.00, "bankgothic", "center", "center", false, false, false, false, false) 
end 
  
aVisible = false 
bindKey("f1","down", function ( ) 
if ( aVisible == true ) then 
removeEventHandler("onClientRender",root,adham) 
showCursor ( false ) 
else 
addEventHandler("onClientRender",root,adham) 
showCursor ( true ) 
end 
aVisible = not aVisible 
end) 

طول عمرك كفو ء

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted

م شتغلش

  
    function adham() 
        dxDrawRectangle(150, 197, 506, 228, tocolor(255, 255, 255, 150), false) 
        dxDrawRectangle(110, 198, 10, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawRectangle(130, 197, 549, 32, tocolor(44, 1, 39, 255), false) 
        dxDrawImage(482, 248, 131, 126, ":guieditor/images/flip.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(203, 261, 90, 93, ":guieditor/images/Repair.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(337, 254, 108, 102, ":guieditor/images/Nitro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(482, 248, 131, 126, ":guieditor/images/flip.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(337, 254, 108, 102, ":guieditor/images/Nitro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(337, 254, 108, 102, ":guieditor/images/Nitro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawRectangle(174, 364, 138, 30, tocolor(76, 1, 67, 205), false) 
        dxDrawRectangle(327, 364, 138, 30, tocolor(76, 1, 67, 205), false) 
        dxDrawRectangle(482, 364, 138, 30, tocolor(76, 1, 67, 205), false) 
        dxDrawText("Alex Shop", 316, 197, 577, 225, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) 
        dxDrawText("Buy ($250)", 369, 370, 482, 388, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawText("Buy ($1500)", 517, 370, 630, 388, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawText("Buy ($900)", 209, 370, 322, 388, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawImage(482, 248, 131, 126, ":guieditor/images/flip.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(337, 254, 108, 102, ":guieditor/images/Nitro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
   
  
  
bindKey("F1","down",function () 
if removeEventHandler( "onClientRender",root,adham) then 
removeEventHandler ("onClientRender",root,adham) then 
showCursor(false) 
else 
addEventHandler("onClientRender",root,adham) then 
showCursor(true) 
  end 
end 
) 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
aVisible = false  
bindKey("f1","down", function ( ) 
if ( aVisible == true ) then  
removeEventHandler("onClientRender",root,adham) 
showCursor ( false ) 
else 
addEventHandler("onClientRender",root,adham) 
showCursor ( true ) 
end 
aVisible = not aVisible 
end) 

Dis ; AF.#0941

Posted

بضعط ف1 و يبي

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted (edited)

    function adham() 
        dxDrawRectangle(150, 197, 506, 228, tocolor(255, 255, 255, 150), false) 
        dxDrawRectangle(110, 198, 10, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawRectangle(130, 197, 549, 32, tocolor(44, 1, 39, 255), false) 
        dxDrawImage(482, 248, 131, 126, ":guieditor/images/flip.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(203, 261, 90, 93, ":guieditor/images/Repair.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(337, 254, 108, 102, ":guieditor/images/Nitro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(482, 248, 131, 126, ":guieditor/images/flip.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(337, 254, 108, 102, ":guieditor/images/Nitro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(337, 254, 108, 102, ":guieditor/images/Nitro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawRectangle(174, 364, 138, 30, tocolor(76, 1, 67, 205), false) 
        dxDrawRectangle(327, 364, 138, 30, tocolor(76, 1, 67, 205), false) 
        dxDrawRectangle(482, 364, 138, 30, tocolor(76, 1, 67, 205), false) 
        dxDrawText("Alex Shop", 316, 197, 577, 225, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) 
        dxDrawText("Buy ($250)", 369, 370, 482, 388, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawText("Buy ($1500)", 517, 370, 630, 388, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawText("Buy ($900)", 209, 370, 322, 388, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) 
        dxDrawImage(482, 248, 131, 126, ":guieditor/images/flip.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(337, 254, 108, 102, ":guieditor/images/Nitro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        end 
  
aVisible = false 
bindKey("f1","down", function ( ) 
if ( aVisible == true ) then 
removeEventHandler("onClientRender",root,adham) 
showCursor ( false ) 
else 
addEventHandler("onClientRender",root,adham) 
showCursor ( true ) 
end 
aVisible = not aVisible 
end) 
Edited by Guest

Dis ; AF.#0941

Posted

تمام انا عاوز اعمل اذا ضعط علي زر في الدي اكس

ومعاه 1500 فلوس

يجي تصليح

كيف احدد الزر في الدي اكس

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

المشكله كل دا

كيف احدد الزر

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
-- Client  
  
function isMouseInPosition ( x, y, width, height ) 
    if ( not isCursorShowing ( ) ) then 
        return false 
    end 
  
    local sx, sy = guiGetScreenSize ( ) 
    local cx, cy = getCursorPosition ( ) 
    local cx, cy = ( cx * sx ), ( cy * sy ) 
    if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then 
        return true 
    else 
        return false 
    end 
end 
  
addEventHandler("onClientClick",root, function ( Button ,State ) 
if ( aVisible and Button == "left" and State == "up" ) then  
if ( isMouseInPosition ( x , y , w , h ) ) then  
triggerServerEvent("onFix",localPlayer) 
end 
end 
end 
) 
  
-- Server  
  
addEvent("onFix",true) 
addEventHandler("onFix",root, function ( ) 
if ( getPlayerMoney ( client ) >= 100 ) then  
if ( getPedOccupiedVehicle ( client ) ) then  
fixVehicle ( getPedOccupiedVehicle ( client ) )  
takePlayerMoney ( client , 100 ) 
end 
end 
end 
) 
  

بدل الـ

x,y,w,h = بـ احداثيات الـ Rectangle

Dis ; AF.#0941

Posted

شو الكود ذا

function isMouseInPosition ( x, y, width, height ) 
    if ( not isCursorShowing ( ) ) then 
        return false 
    end 
  
    local sx, sy = guiGetScreenSize ( ) 
    local cx, cy = getCursorPosition ( ) 
    local cx, cy = ( cx * sx ), ( cy * sy ) 
    if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then 
        return true 
    else 
        return false 
    end 
end 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
شو الكود ذا
function isMouseInPosition ( x, y, width, height ) 
    if ( not isCursorShowing ( ) ) then 
        return false 
    end 
  
    local sx, sy = guiGetScreenSize ( ) 
    local cx, cy = getCursorPosition ( ) 
    local cx, cy = ( cx * sx ), ( cy * sy ) 
    if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then 
        return true 
    else 
        return false 
    end 
end 

الكود ذا يتحقق لو كان الماوس على الـ Position الي انت حطيته يرجع لك ترو

Dis ; AF.#0941

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