Jump to content

طلب صغير ممكن مبرمج يدخل


Recommended Posts

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

  
addEventHandler ( "onClientGUIClick", but5, getResourceRootElement(getThisResource()), 
function ( ) 
local player = getLocalPlayer() 
setElementPosition (player ,1355.9412841797, -1292.3513183594, 13.251474380493 ) 
end 
end 
) 
  
) 
  

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

اذا بتريد صلحه او عطني كو ثاني

هذا اعمل الاحدائيات المحل لكن يبنقلني من فوق و اللاعب يسقط

:fadein::fadein:

وشكرا

Link to comment
  
addEventHandler ( "onClientGUIClick", but5, getResourceRootElement(getThisResource()), 
function ( ) 
local player = getLocalPlayer() 
setElementPosition (player ,1355.9412841797, -1292.3513183594, 13.251474380493 ) 
end 
end 
) 
  
) 
  

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

اذا بتريد صلحه او عطني كو ثاني

هذا اعمل الاحدائيات المحل لكن يبنقلني من فوق و اللاعب يسقط

:fadein::fadein:

وشكرا

انت هنا مسوي لما يضغط زر GUI

ينقله لمكان

Link to comment

جرب ,,

local x , y , z =                  -- احداثيات صنع الماركر  
local x2 , y2 , z2 =                  -- احاثيات لما يلمس الماركر ينقلك  
  
 theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) 
  
addEventHandler( "onMarkerHit", theMarker, 
  
 function ( player ) 
  
     if getElementType ( player ) == "player" then 
         
        if isPedInVehicle ( player ) then return end 
            setElementPosition ( player, x2 , y2 , z2 ) 
end 
        end 
        ) 

سطر 1 = احداثيات الماركر

سطر 2 = احداثيات المكان الي ينقلك له

ما رح ينقلك اذا معك سياره !!

Link to comment

هلا الكود يا اخي ما يعمل شوف الكو بعد التعديل

local 1368.99402,-1279.65918,13.54688 =                  -- احداثيات صنع الماركر 
local 285.56036,-41.65447,1001.51563 =                  -- احاثيات لما يلمس الماركر ينقلك 
  
 theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) 
  
addEventHandler( "onMarkerHit", theMarker, 
  
 function ( player ) 
  
     if getElementType ( player ) == "player" then 
        
        if isPedInVehicle ( player ) then return end 
            setElementPosition ( player, x2 , y2 , z2 ) 
end 
        end 
        ) 

انا عدلت خطأ ولا الكود خطأ ولو تعبتك وياي

:fadein::fadein::fadein:

Link to comment
اريد ماركر انتقال اللاعبين كلهم مثلا :|

الى مثل متجر الاسلحه هكذا يعني بالخارطه لا يوجد شيئ :mrgreen:

مثل هذه الصوره :P

5OmPdL.png

وشكرا :redhotevil::redhotevil:

:fadein::fadein::fadein::fadein::fadein:

Interior المتجر يوجد بعالم

الكود اللى فوق لو ضفت به احداثيات بدون رقم العالم بتلاقى نفسك فى فراغ

+

x, y, z تعديلك هريسة ليه ماكتبت الاحداثيات بعد علامة = ومسحت الكلام اللى موجود

x2, y2, z2

Link to comment
local 1368.99402,-1279.65918,13.54688 = 
local 285.56036,-41.65447,1001.51563 =  
  
 theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) 
  
addEventHandler( "onMarkerHit", theMarker, 
  
 function ( player ) 
  
     if getElementType ( player ) == "player" then 
        
        if isPedInVehicle ( player ) then return end 
            setElementPosition ( player, x2 , y2 , z2 ) 
end 
        end 
        ) 

:fadein::fadein::fadein:

يعني هكذا لازم يعمل ؟؟

انا جربه ما صار يا اخي سوي لجميع الاسطر شرح

ولو تعبتكم

Link to comment

كذا يصير كودك

local x2 , y2 , z2 = 1368.99402,-1279.65918,13.54688  
local x , y , z = 285.56036,-41.65447,1001.51563  
  
 theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) 
  
addEventHandler( "onMarkerHit", theMarker, 
  
 function ( player ) 
  
     if getElementType ( player ) == "player" then 
        
        if isPedInVehicle ( player ) then return end 
            setElementPosition ( player, x2 , y2 , z2 ) 
end 
        end 
        ) 

اذا كنت بنتقل لمتجر الاسلحة

ف استخدم

setElementInterior 

واحذف سطر

2

وسطر

13

--------

Link to comment
local x2 , y2 , z2 = 285.56036,-41.65447,1002.51563 
local x , y , z = 1368.99402,-1279.65918,13.54688 
  
 theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) 
  
addEventHandler( "onMarkerHit", theMarker, 
  
 function ( player ) 
  
     if getElementType ( player ) == "player" then 
        
        if isPedInVehicle ( player ) then return end 
            setElementInterior ( player, 1368.99402,-1279.65918,13.54688 ) 
end 
        end 
        ) 

هذا الكود انا اريده ينقل الى متجر الاسلحه

وشكرا :fadein::fadein:

Link to comment

جرب ورد لي خبر

  
local x , y , z = 1368.99402,-1279.65918,13.54688 -- هنا تحط احداثيات الماركر 
  
 theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) 
  
addEventHandler( "onMarkerHit", theMarker, 
  
 function ( player ) 
  
     if getElementType ( player ) == "player" then 
        
        if isPedInVehicle ( player ) then return end 
            setElementInterior ( player, 2, 285.98175,-85.31979,1001.51563)  
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...