Jump to content

كود الليزر الملون


Recommended Posts

    function onGuiClick (button, state, absoluteX, absoluteY) 
      
    if ( source ==  Button ) then 
      
    function narBullets() 
         local x,y,z = getPedWeaponMuzzlePosition(localPlayer) 
         x2,y2,z2 = getPedTargetCollision(localPlayer) 
         if not x2 then 
              x2,y2,z2 = getPedTargetEnd(localPlayer) 
         end 
         dxDrawLine3D(x,y,z, x2,y2,z2, tocolor(255,0,0), 2) 
    end 
    addEventHandler("onClientRender", root, narBullets) 
    end 
    end 
    addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 

Link to comment
    function onGuiClick (button, state, absoluteX, absoluteY) 
      
    if ( source ==  Button ) then 
      
    function narBullets() 
         local x,y,z = getPedWeaponMuzzlePosition(localPlayer) 
         x2,y2,z2 = getPedTargetCollision(localPlayer) 
         if not x2 then 
              x2,y2,z2 = getPedTargetEnd(localPlayer) 
         end 
         dxDrawLine3D(x,y,z, x2,y2,z2, tocolor(255,0,0), 2) 
    end 
    addEventHandler("onClientRender", root, narBullets) 
    end 
    end 
    addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 

آول شيء قآل تم الحل

ثآني شيء كودك هريسه !

:)

Link to comment
    function onGuiClick (button, state, absoluteX, absoluteY) 
      
    if ( source ==  Button ) then 
      
    function narBullets() 
         local x,y,z = getPedWeaponMuzzlePosition(localPlayer) 
         x2,y2,z2 = getPedTargetCollision(localPlayer) 
         if not x2 then 
              x2,y2,z2 = getPedTargetEnd(localPlayer) 
         end 
         dxDrawLine3D(x,y,z, x2,y2,z2, tocolor(255,0,0), 2) 
    end 
    addEventHandler("onClientRender", root, narBullets) 
    end 
    end 
    addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 

الحين وش الفايدة من ردك بما أن صاحب الموضوع تمت افادته ماله داعي ترد

Edited by Guest
Link to comment

الحين وش الفايدة من ردك بما أن صاحب الموضوع تمت افادته ماله داعي ترد

طيب مافيها شيء لو رديت وساعدته

آول شيء قآل تم الحل

ثآني شيء كودك هريسه !

:)

الكود شغال مافيه شيء

Link to comment
ابي حل

outputChatBox("laser on", 245,0,0)

اخليه جوي مسج

كذا

اذا تبي الكلام يطلع للكل استخدم :

exports["guimessages"]:outputServer(root, "* Laser On", 0, 255, 255) 

واذا تبي يطلع الكلام بس للاعب نفسه استخدم :

exports["guimessages"]:outputClient("* Laser On") 

بالنسبة للكود الثاني اذا تبي يطلع ملون جرب خل الاكواد مال الالوان

اتمنى افدتك

طبعا بتقول ليش عطيتك واصلا عطوك

بس للاضافة ادا تبيه لكل الاعبين

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