Jump to content

تصليح اكواد


Recommended Posts

function createMarker ()

     createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170)
	 
end
GUIEditor = {
    button = {},
    window = {},
    memo = {}
}
addEventHandler("onClientMarkerHit", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1])
        GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد              ", false, GUIEditor.window[1])    
    end
)
addEventHandler("onClientGUIClick",root)
function outPutChatBox()

     if source == GUIEditor.button[2] then
     setElementPosition (thePlayer , 1916.07837,-1759.90369,13.54688)
  
         if source == GUIEditor.button[1] then
	     setElementPosition (theplayer , 1916.07837,-1759.90369,13.54688)
	   
	     end
     end
end 

 

  • Like 1
Link to comment

جرب

local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170)
GUIEditor = {
    button = {},
    window = {},
    memo = {}
}
addEventHandler("onClientMarkerHit", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1])
GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد              ", false, GUIEditor.window[1])    
    end
)
addEventHandler("onClientGUIClick",root,
function ()
if ( source == GUIEditor.button[2] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
elseif ( source == GUIEditor.button[1] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
end
end
)
	 

 

Edited by Deativated
Link to comment
9 minutes ago, Deativated said:

جرب

 

دائما تخترع أكواد جديدة مشاء الله
 

local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170)
GUIEditor = {
    button = {},
    window = {},
    memo = {}
}
addEventHandler("onClientMarkerHit", Marker,
function()
GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1])
GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد              ", false, GUIEditor.window[1])    
    end
)
addEventHandler("onClientGUIClick",root,
function ()
if ( source == GUIEditor.button[2] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
elseif ( source == GUIEditor.button[1] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
end
end
)


 

Edited by #BrosS
Link to comment

@ Bros 

شو النتا سويته بالكود انشاء الله ؟

انا اخد الكود أعدل له الاكواد الوحه مب لما يخش علي مركر يطلع له لوحه

تم التجربه @

local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170)
GUIEditor = {
    button = {},
    window = {},
    memo = {}
}
GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1])
GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد              ", false, GUIEditor.window[1]) 

addEventHandler ( "onClientMarkerHit", Marker,
function ( hitPlayer )
                    if hitPlayer == localPlayer and not isPedInVehicle( hitPlayer ) then 
                         guiSetVisible( GUIEditor.window[1], true ) 
                         showCursor ( true )
                         guiSetInputEnabled ( true )
            end
   end
)

   
addEventHandler("onClientGUIClick",root,
function ()
if ( source == GUIEditor.button[2] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
elseif ( source == GUIEditor.button[1] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
end
end
)
	 

 

Edited by Deativated
Link to comment
local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170)
GUIEditor = {
    button = {},
    window = {},
    memo = {}
}
addEventHandler ( "onClientMarkerHit", Marker,
function ( hitPlayer )
if hitPlayer == localPlayer and not isPedInVehicle( hitPlayer ) then 
guiSetVisible( GUIEditor.window[1], true ) 
showCursor ( true )
guiSetInputEnabled ( true )
GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1])
GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد              ", false, GUIEditor.window[1])    
    end
end
)
addEventHandler("onClientGUIClick",root,
function ()
if ( source == GUIEditor.button[2] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
elseif ( source == GUIEditor.button[1] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
end
end
)

 

Deativated

هيك يصير الكود ؟
 
Link to comment

حط ذا بالكلنت وخش علي المركر بتظهر لك الوحه

local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170)
GUIEditor = {
    button = {},
    window = {},
    memo = {}
}
GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1])
GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد              ", false, GUIEditor.window[1]) 

addEventHandler ( "onClientMarkerHit", Marker,
function ( hitPlayer )
                    if hitPlayer == localPlayer and not isPedInVehicle( hitPlayer ) then 
                         guiSetVisible( GUIEditor.window[1], true ) 
                         showCursor ( true )
                         guiSetInputEnabled ( true )
            end
   end
)

   
addEventHandler("onClientGUIClick",root,
function ()
if ( source == GUIEditor.button[2] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
elseif ( source == GUIEditor.button[1] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
end
end
)

@BrosS الأن انا وش دخلني تقفل كيف الوحة ؟

انا العليا سويت له اليبيه هوا م قال يبي يسوي غلق للوحة

يسوي زر غلق للوحة وبس

Link to comment
1 hour ago, Deativated said:

جرب


local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170)
GUIEditor = {
    button = {},
    window = {},
    memo = {}
}
addEventHandler("onClientMarkerHit", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1])
GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد              ", false, GUIEditor.window[1])    
    end
)
addEventHandler("onClientGUIClick",root,
function ()
if ( source == GUIEditor.button[2] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
elseif ( source == GUIEditor.button[1] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
end
end
)
	 

 

 

46 minutes ago, #BrosS said:

كيف رح يغلق اللوحة باذن الله

اتركم من اغلاق الوحه

الكارثه انه يصنع لوحه ب مل مره ب عدد كل الاعبين

لما يلمس المركر يعني

Link to comment
1 hour ago, #_iMr.[E]coo said:

لازم تتعود :-)

 

شوف انت ي مبدع

وش مسوي بالكود هذا
 

local Table = { }

addEvent ("JoinJob",true)
addEventHandler ("JoinJob",root,
  function ()
    setElementModel ( source , 3 ) -- اي دي الشخصية 
    table.insert ( Table , source )
    outputChatBox ( " اذهب الى العلامة للدخول المهمة " , source ) 
    local Car[source] = createVehicle( 543 , x ,  y , z)
        warpPedIntoVehicle(source,Car[source] ) 
      local Marker[source] = createMarker ( x , y , z , "cylinder" , 2 , 255 , 0 , 255 , 255 , source ) 
      local Blip[source] = createBlipAttachedTo ( Marker[source] , 20 ) 
      setElementVisibleTo ( Blip[source] , root , false )
      setElementVisibleTo ( Blip[source] , source , false )
      end
    ) 
  
addEventHandler ("onMarkerHit",root,
    function (player)
      if getElementType(player) == "vehicle" and isPedInVehicle (player) then 
       if source == Marker[source] then 
          givePlayerMoney ( player , 2000 )
          destroyElement ( Car[source] ) 
          destroyElement ( Blip[source] )
          destroyElement ( Marker[source] )
          outputChatBox (" لقد انهيت المهمة وربحت 2000 " , player )
          table.remove ( Table , player )
          end
        end
      end
    )

:D

وبعدين انا ادري انك مقهور لين قلتلي تعال نفتح سرفر ووفقت بعدين قلت لك ماني فاتح معاك مقهور :)

Edited by !#NssoR_)
breaking rules.
Link to comment
3 minutes ago, Deativated said:

شوف انت ي مبدع

وش مسوي بالكود هذا
 


local Table = { }addEvent ("JoinJob",true)addEventHandler ("JoinJob",root,  function ()    setElementModel ( source , 3 ) -- اي دي الشخصية     table.insert ( Table , source )    outputChatBox ( " اذهب الى العلامة للدخول المهمة " , source )     local Car[source] = createVehicle( 543 , x ,  y , z)        warpPedIntoVehicle(source,Car[source] )       local Marker[source] = createMarker ( x , y , z , "cylinder" , 2 , 255 , 0 , 255 , 255 , source )       local Blip[source] = createBlipAttachedTo ( Marker[source] , 20 )       setElementVisibleTo ( Blip[source] , root , false )      setElementVisibleTo ( Blip[source] , source , false )      end    )   addEventHandler ("onMarkerHit",root,    function (player)      if getElementType(player) == "vehicle" and isPedInVehicle (player) then        if source == Marker[source] then           givePlayerMoney ( player , 2000 )          destroyElement ( Car[source] )           destroyElement ( Blip[source] )          destroyElement ( Marker[source] )          outputChatBox (" لقد انهيت المهمة وربحت 2000 " , player )          table.remove ( Table , player )          end        end      end    )

:D

ما تعرف تسوي 2% من الكود

Edited by !#NssoR_)
Deleted 'deativated' quote.
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...