Jump to content

فنكشن التتبع


Recommended Posts

بسوي لوحات جديدة بجوز صار في خطأ

بس بخصوص

لما يعطيه كاميرا

وبعدين اخليه يرجع مثل ما كان

setCameraTarget ( localplayer )

بس مو ضابط وحطيت احداثيات نفس الشي

localplayer = ×

localPlayer =

setCameraTarget ( localPlayer) 

Edited by Guest
Link to comment
setCameraTarget ( localPlayer , localPlayer) 
  

تعديل :$

+ تاكد من المود وين مسار لان في اوقات تصير معي

اكون حاط المود في سطح المكتب واعدله على انه في مكان المودات وانا اعدل فيه , وهو بسطح المكتب , تاكد من المسار والميتا وكلشي

Link to comment
setCameraTarget ( localPlayer , localPlayer) 
  

تعديل :$

+ تاكد من المود وين مسار لان في اوقات تصير معي

اكون حاط المود في سطح المكتب واعدله على انه في مكان المودات وانا اعدل فيه , وهو بسطح المكتب , تاكد من المسار والميتا وكلشي

×

localPlayer , localPlayer = ????

Link to comment
marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) 
      
addEventHandler("onClientMarkerHit",marker, 
function (player) 
if (getElementType (player) == "player") and (player == localPlayer)  then 
showCursor(true) 
guiSetVisible(GUIEditor.window[2],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) 
        guiSetVisible (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", Marker, 
    function  (ss) 
if  ss == localPlayer then 
guiSetVisible(GUIEditor.window[2],true) 
showCursor(true) 
guiSetInputEnabled (true) 
end 
end 
) 

خطأك بسيط

addEventHandler ("onClientMarkerHit", root,

    function  (ss)

if ( source == Marker ) and ( ss == localplayer ) then

guiSetVisible(GUIEditor.window[2],true)

showCursor(true)

end

end

)

localPlayer المفروض تكون

Link to comment
يب معك حق ما انتبهت مشكور دب ههههههه انت دايما فزعتي :D

DTC12+strong شكرا

+مشكورين الباقي ما قصرتوا بس لو فتحتوا عيونكم شوية @_@ على الحرف

لو فتحت انت عينك شوية علي كتابتك :lol:

Link to comment
بس باقي مشكلة لما اعطي الاعب كاميرا ماتركس وبعدين احط اغلاق ابي يرجع وضع اللعب طبيعي جربت اخر كود مو ضابط من مره

اطرح اكوادك

ويمكن خطأك زي كودك الأول

باللوكال بلاير

localPlayer 

يب معك حق ما انتبهت مشكور دب ههههههه انت دايما فزعتي :D

DTC12+strong شكرا

+مشكورين الباقي ما قصرتوا بس لو فتحتوا عيونكم شوية @_@ على الحرف

قايل لك بالصفحة رقم 2 بس ما انتبهت لكلامي :\

Edited by Guest
Link to comment
addEventHandler ("onClientGUIClick", root, 
function () 
if ( source == GUIEditor.button[2] ) then 
 guiSetVisible(GUIEditor.window[2],false) 
 guiSetVisible(GUIEditor.window[1],true) 
 setCameraMatrix(287.76278686523,1922.9759521484,66.71354675293,211.43293762207,1895.4426269531,8.2698106765747) 
  
 elseif ( source == GUIEditor.button[1] ) then 
 guiSetVisible(GUIEditor.window[1],false) 
 guiSetVisible(GUIEditor.window[2],true) 
 setCameraTarget ( localPlayer ) 
  
  
 end 
 end 
 ) 
 addEventHandler ("onClientGUIClick", root, 
  
 function () 
  
 if ( source == GUIEditor.button[4] ) then 
 guiSetVisible(GUIEditor.window[2],false) 
 guiSetVisible(GUIEditor.window[1],true) 
 setCameraMatrix(2451.072265625,-1653.4658203125,34.104167938232,2530.6079101563,-1686.24609375,-16.881399154663) 
  
  
 elseif (source == GUIEditor.window[1]) then 
 guiSetVisible(GUIEditor.window[1],false) 
 guiSetVisible(GUIEditor.window[2],true) 
 setCameraTarget ( localPlayer ) 
 end 
 end 
 ) 

اول مره يرجع لي الكاميرا لكن ثاني مره يوديني سباون بعيد

Link to comment
addEventHandler ("onClientGUIClick", root, 
function () 
if ( source == GUIEditor.button[2] ) then 
 guiSetVisible(GUIEditor.window[2],false) 
 guiSetVisible(GUIEditor.window[1],true) 
 setCameraMatrix(287.76278686523,1922.9759521484,66.71354675293,211.43293762207,1895.4426269531,8.2698106765747) 
  
 elseif ( source == GUIEditor.button[1] ) then 
 guiSetVisible(GUIEditor.window[1],false) 
 guiSetVisible(GUIEditor.window[2],true) 
 setCameraTarget ( localPlayer ) 
  
  
 end 
 end 
 ) 
 addEventHandler ("onClientGUIClick", root, 
  
 function () 
  
 if ( source == GUIEditor.button[4] ) then 
 guiSetVisible(GUIEditor.window[2],false) 
 guiSetVisible(GUIEditor.window[1],true) 
 setCameraMatrix(2451.072265625,-1653.4658203125,34.104167938232,2530.6079101563,-1686.24609375,-16.881399154663) 
  
  
 elseif (source == GUIEditor.window[1]) then 
 guiSetVisible(GUIEditor.window[1],false) 
 guiSetVisible(GUIEditor.window[2],true) 
 setCameraTarget ( localPlayer ) 
 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...