Jump to content

مطلوب كود


Dr.Xen

Recommended Posts

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

addCommandHandler( "GetCameraPos", function ( ) 
       local x, y, z, xl, yl, zl = getCameraMatrix(  ) 
       if ( x == 0 or y == 0 or z == 0 ) then return end 
       setClipboard(" "..x..", "..y..", "..z..", "..xl..", "..yl..", "..zl.." ") 
end ) 

setCameraMatrix وبتنسخ لك الاحداثيات كاملة بس عليك تحطها بـ GetCameraPos تقوم بـ كتابة الأمر

كلينت سايد

Link to comment

وربي حاولت كثييير بس قدرت !! كذا

function guiSetVisible ( showCursor ,isCursorShowing) 
        guiSetVisible (GUIEditor.button[2], not guiGetVisible ( GUIEditor.button[2] ) ) 
         
        bool setCameraMatrix ( player thePlayer, float positionX, float positionY, float positionZ [, float lookAtX, float lookAtY, float lookAtZ, float roll = 0, float fov = 70 ] ) 
        GUIEditor.button[2]( 0.7, 0.1, 0.2, 0.1, "Output!", true ) 
  
    addEventHandler ( "onClientGUIClick", btnOutput, outputEditBox, false ) 
        if aPlayer == getLocalPlayer() then 

Link to comment
وربي حاولت كثييير بس قدرت !! كذا
function guiSetVisible ( showCursor ,isCursorShowing) 
        guiSetVisible (GUIEditor.button[2], not guiGetVisible ( GUIEditor.button[2] ) ) 
         
        bool setCameraMatrix ( player thePlayer, float positionX, float positionY, float positionZ [, float lookAtX, float lookAtY, float lookAtZ, float roll = 0, float fov = 70 ] ) 
        GUIEditor.button[2]( 0.7, 0.1, 0.2, 0.1, "Output!", true ) 
  
    addEventHandler ( "onClientGUIClick", btnOutput, outputEditBox, false ) 
        if aPlayer == getLocalPlayer() then 

1- ناقصك end

2-

        bool setCameraMatrix ( player thePlayer, float positionX, float positionY, float positionZ [, float lookAtX, float lookAtY, float lookAtZ, float roll = 0, float fov = 70 ] ) 

ناسخه من الويكي !

Link to comment

addEventHandler ( "onClientGUIClick", root, 
function ( ) 
if source == اسم البوتون then 
setCameraMatrix ( x, y, z, xl, yl, zl ) 
showCursor ( not isCursorShowing () ) 
end 
end 
) 
  
  
  
  
addCommandHandler ( "الكلمة", 
function() 
guiSetVisible ( اسم اللوحة, false ) 
showCursor ( false ) 
setCameraTarget ( localPlayer ) 
end     
) 

جرب ,

Edited by Guest
Link to comment
addEventHandler ( "onClientGUIClick", root, 
function ( ) 
if (source == الزر) then 
setCameraMatrix ( x, y, z, xl, yl, zl ) 
showCursor ( not isCursorShowing () ) 
end 
end 
) 
  
  
  
  
addCommandHandler ( "الكلمة", 
function() 
local eg = getLocalPlayer() 
guiSetVisible ( اسم اللوحة, false ) 
showCursor ( false ) 
setCameraTarget (eg) 
end     
) 

حط اسم اللوحة والاحداثيات!!

وتأكد اسم الزر بدون ""

جرب

Link to comment

addEventHandler ( "onClientGUIClick", اسم البوتون, function ( ) 
setCameraMatrix ( x, y, z, xl, yl, zl ) 
showCursor ( not isCursorShowing ( ) ) 
end ) 
  
  
  
  
addCommandHandler ( "الكلمة", function() 
guiSetVisible ( اسم اللوحة, not guiGetVisible ( اسم اللوحة ) ) 
showCursor ( not isCursorShowing ( ) ) 
setCameraTarget ( source ) 
end ) 

جرب ,

Link to comment
addEventHandler ( "onClientGUIClick", اسم البوتون, function ( ) 
setCameraMatrix ( x, y, z, xl, yl, zl ) 
showCursor ( not isCursorShowing ( ) ) 
end ) 
  
  
  
  
addCommandHandler ( "الكلمة", function() 
guiSetVisible ( اسم اللوحة, not guiGetVisible ( اسم اللوحة ) ) 
showCursor ( not isCursorShowing ( ) ) 
setCameraTarget ( source ) 
end ) 

جرب ,

4 في سطر false ناقصك

وسطر 12 السورس غير معرف.

Link to comment

addEventHandler ( "onClientGUIClick", اسم البوتون, function ( ) 
setCameraMatrix ( x, y, z, xl, yl, zl ) 
showCursor ( not isCursorShowing ( ) ) 
end, false ) 
  
  
  
  
addCommandHandler ( "الكلمة", function ( ) 
guiSetVisible ( اسم اللوحة, not guiGetVisible ( اسم اللوحة ) ) 
showCursor ( not isCursorShowing ( ) ) 
setCameraTarget ( getLocalPlayer ( ) ) 
end ) 

جرب ,

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

The Best

شكرا على الملاحظة :D

Link to comment

كل شي تمام + مشكورين ,,

في مشكلة يوم يروح للكامير اللوحة ما تروح ,,

الكود شغال وكلشي تمام بس الماوس يظهر عندما يكتب الكلمة +او يضغط كلوز الخروج

        addEventHandler ("onClientGUIClick", root, 
       function () 
               if source == Close then 
                    guiSetVisible ( GUIEditor.window[1], false ) 
              end 
        end 
    ) 
  
     
     
        addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function ( ) 
    setCameraMatrix ( 1560.1276855469, -1670.8175048828, 55.877300262451, 1559.6396484375, -1670.6237792969, 55.026256561279  ) 
    showCursor ( not isCursorShowing ( ) ) 
    end, false ) 
      
      
      
      
    addCommandHandler ( "Back", function ( ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( not isCursorShowing ( ) ) 
    setCameraTarget ( getLocalPlayer ( ) ) 
    end ) 

Link to comment

جرب

addEventHandler ("onClientGUIClick", root, 
   function () 
    if source == Close then 
      guiSetVisible ( GUIEditor.window[1], false ) 
         end 
        end 
    ) 
  
    
    
   addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function ( ) 
    setCameraMatrix ( 1560.1276855469, -1670.8175048828, 55.877300262451, 1559.6396484375, -1670.6237792969, 55.026256561279  ) 
    guiSetVisible ( GUIEditor.window[1], false ) 
    end ) 
      
      
      
      
    addCommandHandler ( "Back", function ( ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( not isCursorShowing ( ) ) 
    setCameraTarget ( getLocalPlayer ( ) ) 
    end ) 

Link to comment
كل شي تمام + مشكورين ,,

في مشكلة يوم يروح للكامير اللوحة ما تروح ,,

الكود شغال وكلشي تمام بس الماوس يظهر عندما يكتب الكلمة +او يضغط كلوز الخروج

        addEventHandler ("onClientGUIClick", root, 
       function () 
               if source == Close then 
                    guiSetVisible ( GUIEditor.window[1], false ) 
              end 
        end 
    ) 
  
     
     
        addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function ( ) 
    setCameraMatrix ( 1560.1276855469, -1670.8175048828, 55.877300262451, 1559.6396484375, -1670.6237792969, 55.026256561279  ) 
    showCursor ( not isCursorShowing ( ) ) 
    end, false ) 
      
      
      
      
    addCommandHandler ( "Back", function ( ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( not isCursorShowing ( ) ) 
    setCameraTarget ( getLocalPlayer ( ) ) 
    end ) 

addEventHandler ( "onClientGUIClick", resourceRoot, 
    function ( ) 
        if ( source == Close ) then 
            guiSetVisible ( GUIEditor.window[1], false ) 
            showCursor ( false ) 
        elseif ( source == GUIEditor.button[3] ) then 
            setCameraMatrix ( 1560.1276855469, -1670.8175048828, 55.877300262451, 1559.6396484375, -1670.6237792969, 55.026256561279 ) 
            guiSetVisible ( GUIEditor.window[1], false ) 
            showCursor ( false ) 
            setElementFrozen ( localPlayer, true ) 
        end 
    end 
) 
      
addCommandHandler ( "Back", 
    function ( ) 
        setCameraTarget ( localPlayer ) 
        setElementFrozen ( localPlayer, false ) 
    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...