Jump to content

فنكشن التتبع


Recommended Posts

مافهمتك والله بس

كود الي لو كتب في اف 8 حاجة

  
-- Client 
addEvent("omg",true) -- omg هي كلمه تكتبها في اف 8 
  
addEventHandler("omg",root, 
    function () 
    if () then -- سوي التحقق 
    -- الكود 
    end 
    ) 
  

ماهي مجربهه

Edited by Guest
Link to comment
السلام عليكم

ممكن فنكشن لو سويت move للاوبجكت

ايقونه بالخريطة تتبع معه ممكن الفنكشنات

moveObject  -- لتحريك الاوجبكت 

createBlipAttachedTo -- صنع ايقونة متحركة مع الشئ اللي انت عايزه 

مافهمتك والله بس

كود الي لو كتب في اف 8 حاجة

  
-- Client 
addEvent("omg",true) -- omg هي كلمه تكتبها في اف 8 
  
addEventHandler("omg",root, 
    function () 
    if () then -- سوي التحقق 
    -- الكود 
    end 
    ) 
  

ماهي مجربهه

للأسف غلط

addCommandHandler 

Link to comment
  
addCommandHandler('Move', 
function (  )  
Object = createObject ( ID, x,y,z, 0, 0, 0 ) 
moveObject ( Object , 3000, x, y, z ) 
local TestBlip = createBlipAttachedTo ( Object, 52 ) 
    end 
) 
  

يخي مشان ربك افهم عربي يا تساعدني دون جاهز يا انسى ترا ابي احاول اسوي بنفسي -_-

Link to comment
local TestBlip = createBlipAttachedTo ( Object, 52 ) 

Object == متغير حق createObject

مثال

Object = createObject ( ID, x,y,z, 0, 0, 0 ) 

و 52

رقم العلامه

العلامات كلها تحصلها هنا

https://wiki.multitheftauto.com/wiki/Radar_Blips

TestBlip == متغير للفنكشن مشان لو حبيت تسوي اشياء على العلامه مثل

مثل هيك

  
    getBlipColor 
    getBlipIcon 
    getBlipSize 
    setBlipColor 
    setBlipIcon 
    setBlipSize 
    getBlipOrdering 
    setBlipOrdering 
    getBlipVisibleDistance 
    setBlipVisibleDistance 

Link to comment
addEventHandler ("onClientMarkerHit", root, 
    function  (ss) 
if ( source == Marker ) and ( ss == localplayer ) then 
guiSetVisible(GUIEditor.window[2],true) 
showCursor(true) 
end 
end 
) 

لما المس الماركر ما تتطلع ارتفع ضغطي منها مع انه ما اشوف فيه اخطاء

Link to comment
addEventHandler ("onClientMarkerHit", root, 
    function  (ss) 
if ( source == Marker ) and ( ss == localplayer ) then 
guiSetVisible(GUIEditor.window[2],true) 
showCursor(true) 
end 
end 
) 

لما المس الماركر ما تتطلع ارتفع ضغطي منها مع انه ما اشوف فيه اخطاء

وريني الميتا

Link to comment
Marker = createMarker (212.41289,1822.86047,5.41406,"cylinder",1,235,155,26,55) 
  
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    staticimage = {}, 
    label = {} 
} 
  
        GUIEditor.window[1] = guiCreateWindow(247, 224, 177, 111, "s", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible ( GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(12, 36, 155, 38, "sds", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
  
  
        GUIEditor.window[2] = guiCreateWindow(824, 245, 283, 399, "54", false) 
        guiWindowSetSizable(GUIEditor.window[2], false) 
         
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(70, 22, 150, 122, "images/11.png", false, GUIEditor.window[2]) 
        GUIEditor.button[2] = guiCreateButton(9, 170, 125, 31, "566", false, GUIEditor.window[2]) 
        GUIEditor.button[3] = guiCreateButton(148, 169, 125, 31, "dfdf", false, GUIEditor.window[2]) 
        GUIEditor.button[4] = guiCreateButton(9, 210, 125, 31, "dfdfdf", false, GUIEditor.window[2]) 
        GUIEditor.button[5] = guiCreateButton(148, 210, 125, 31, "bfg", false, GUIEditor.window[2]) 
        GUIEditor.label[1] = guiCreateLabel(96, 144, 149, 26, "fgrt", false, GUIEditor.window[2]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        GUIEditor.label[2] = guiCreateLabel(98, 246, 149, 26, "rtrt", false, GUIEditor.window[2]) 
        guiSetFont(GUIEditor.label[2], "default-bold-small") 
        GUIEditor.button[6] = guiCreateButton(10, 272, 125, 31, "rtrtr", false, GUIEditor.window[2]) 
        GUIEditor.button[7] = guiCreateButton(149, 272, 124, 31, "rtrtrt", false, GUIEditor.window[2]) 
        GUIEditor.button[8] = guiCreateButton(245, 367, 28, 22, "X", false, GUIEditor.window[2]) 
  
  
        GUIEditor.window[3] = guiCreateWindow(501, 322, 249, 204, "البوابة الخارجية", false) 
        guiWindowSetSizable(GUIEditor.window[3], false) 
        guiSetVisible ( GUIEditor.window[3], false) 
  
        GUIEditor.button[9] = guiCreateButton(12, 45, 227, 27, "vffg", false, GUIEditor.window[3]) 
        guiSetFont(GUIEditor.button[9], "default-bold-small") 
        GUIEditor.button[10] = guiCreateButton(12, 82, 227, 27, "4545", false, GUIEditor.window[3]) 
        guiSetFont(GUIEditor.button[10], "default-bold-small") 
        GUIEditor.button[11] = guiCreateButton(12, 119, 227, 27, "bfgfg", false, GUIEditor.window[3]) 
        guiSetFont(GUIEditor.button[11], "default-bold-small") 
        GUIEditor.button[12] = guiCreateButton(12, 156, 226, 27, "gfgfgf", false, GUIEditor.window[3]) 
        guiSetFont(GUIEditor.button[12], "default-bold-small") 
  
  
        GUIEditor.window[4] = guiCreateWindow(193, 395, 249, 204, "fgfddf", false) 
        guiWindowSetSizable(GUIEditor.window[4], false) 
        guiSetVisible ( GUIEditor.window[4], false) 
  
        GUIEditor.button[13] = guiCreateButton(9, 43, 230, 28, "6666", false, GUIEditor.window[4]) 
        GUIEditor.button[14] = guiCreateButton(12, 81, 227, 28, "7677", false, GUIEditor.window[4]) 
        GUIEditor.button[15] = guiCreateButton(12, 119, 227, 28, "5646", false, GUIEditor.window[4]) 
        GUIEditor.button[16] = guiCreateButton(10, 157, 227, 28, "4565464", false, GUIEditor.window[4])     
     
  
addEventHandler ("onClientMarkerHit", root, 
    function  (ss) 
if ( source == Marker ) and ( ss == localplayer ) then 
guiSetVisible(GUIEditor.window[2],true) 
showCursor(true) 
end 
end 
) 

لسه مسوي اكواد تحت بس مالهم علاقة

Link to comment
addEventHandler ("onClientMarkerHit", root, 
    function  ( hitElement ) 
if ( source == Marker ) and ( hitElement == localplayer ) then 
guiSetVisible(GUIEditor.window[2],true) 
showCursor(true) 
        end 
    end 
) 

ترتيب للاكواد بسس

بس عندي سؤال

وين كود انشاء المركر ؟

Link to comment
addEventHandler ("onClientMarkerHit", root, 
    function  ( hitElement ) 
if ( source == Marker ) and ( hitElement == localplayer ) then 
guiSetVisible(GUIEditor.window[2],true) 
showCursor(true) 
        end 
    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...