Jump to content

انتقال من السيارة


Recommended Posts

  
function msh1() 
     if source == GUIEditor.button[4] then 
          setElementPosition(getLocalPlayer,1363.7724609375, -1264.3046875, 13.546875) 
          guiSetVisible ( GUIEditor.window[1],false ) 
          showCursor ( false ) 
     end 
end 
addEventHandler("onClientGUIClick", root, msh1) 

السلام عليكم و رحمه الله و بركاته

زي ما انتو شايفين

كود تضغط زر ينقلك لمكان معين

بس اذا كنت في سياره ما ينقلني ذذ

وش استخدم من فكشنات ؟,

Link to comment
  
  
function msh1() 
     if source == GUIEditor.button[4] then 
     if isPedInVehicle (getLocalPlayer) then  
          setElementPosition(getLocalPlayer,1363.7724609375, -1264.3046875, 13.546875) 
          guiSetVisible ( GUIEditor.window[1],false ) 
          showCursor ( false ) 
     end 
     end 
end 
addEventHandler("onClientGUIClick", root, msh1) 
  

like this ?

Link to comment

function msh1() 
     if source == GUIEditor.button[4] then 
     if isPedInVehicle (getLocalPlayer) then 
          return  
          end 
   else 
          setElementPosition(localPlayer,1363.7724609375, -1264.3046875, 13.546875) 
          guiSetVisible ( GUIEditor.window[1],false ) 
          showCursor ( false ) 
         end 
     end 
end 
addEventHandler("onClientGUIClick", root, msh1) 
Edited by Guest
Link to comment
function msh1() 
     if source == GUIEditor.button[4] then 
     if isPedInVehicle (getLocalPlayer) then 
          return  
          end 
   else 
          setElementPosition(localPlayer,1363.7724609375, -1264.3046875, 13.546875) 
          guiSetVisible ( GUIEditor.window[1],false ) 
          showCursor ( false ) 
     end 
end 
addEventHandler("onClientGUIClick", root, msh1) 

thx i wil try it now :D

but

return 

what mean ??

Link to comment
function msh1() 
     if source == GUIEditor.button[4] then 
     if isPedInVehicle (getLocalPlayer) then 
          return  
          end 
   else 
          setElementPosition(localPlayer,1363.7724609375, -1264.3046875, 13.546875) 
          guiSetVisible ( GUIEditor.window[1],false ) 
          showCursor ( false ) 
     end 
end 
addEventHandler("onClientGUIClick", root, msh1) 

thx i wil try it now

but

return 

what mean ??

هذي كذا وجودها وعدم وجودها واحد .. لاكن لها فوائد ببعض الاشئاء الاخرى

وعدلت الكود كان ناقص اند #

Edited by Guest
Link to comment

-- # Client Side ! 
addEventHandler("onClientGUIClick", GUIEditor.button[4], 
    function (  ) 
            local vehicle =  getPedOccupiedVehicle ( localPlayer ) 
                if vehicle then 
                    setElementPosition ( vehicle,1363.7724609375, -1264.3046875, 13.546875 ) 
      else 
              setElementPosition ( localPlayer,1363.7724609375, -1264.3046875, 13.546875 )      
            end 
    end,false 
) 
Edited by Guest
Link to comment

تم التعديل ... نسيت اخلي كودات الي تقفل اللوحة :)

Client Side --

  
addEventHandler("onClientGUIClick",اسم الزر, 
    function  ( ) 
        if isPedInVehicle(localPlayer) then return outputChatBox(" * عليك النزول من السيآرة للإنتقال",255,0,0,true) end 
            setElementPosition(localPlayer,x,y,z) 
           guiSetVisible ( GUIEditor.window[1],false ) 
          showCursor ( false ) 
                outputChatBox("* تـــم نقـــلك بنجـــــآح",0,255,0,true) 
    end,false 
) 

جرب .. :roll:

Edited by Guest
Link to comment
يمديك تنقلة بسيارة شوف كودي ذذذذذذذذذذذذذذذذذذذذذذذذذذذذ

هو مايبغى اللاعب ينتقل في سيآرةة ,,

addEventHandler("onClientGUIClick",اسم الزر, 
    function  ( ) 
        if isPedInVehicle(localPlayer) then return outputChatBox(" * عليك النزول من السيآرة للإنتقال",255,0,0,true) end 
            setElementPosition(localPlayer,x,y,z) 
 guiSetVisible ( GUIEditor.window[1],false ) 
          showCursor ( false ) 
                outputChatBox("* تـــم نقـــلك بنجـــــآح",0,255,0,true) 
    end,false 
) 

Edited by Guest
Link to comment

function msh1() 
     if source == GUIEditor.button[4] then 
     if isPedInVehicle (getLocalPlayer) then  
          return 
          outputChatBox("*Down from the car first",0,255,0,true) 
          end 
          setElementPosition(localPlayer,1363.7724609375, -1264.3046875, 13.546875) 
          outputChatBox("*Successfully War",255,255,0,true) 
          guiSetVisible ( GUIEditor.window[1],false ) 
          showCursor ( false ) 
         end 
end 
addEventHandler("onClientGUIClick", root, msh1) 

جــرب أخوي # < ~ ولوفيه غلط نبهوني !

Edited by Guest
Link to comment
function msh1() 
     if source == GUIEditor.button[4] then 
     if isPedInVehicle (getLocalPlayer) then  
          return 
          outputChatBox("*Down from the car first",0,255,0,true 
          end 
          setElementPosition(localPlayer,1363.7724609375, -1264.3046875, 13.546875)) 
          outputChatBox("*Successfully War",255,255,0,true) 
          guiSetVisible ( GUIEditor.window[1],false ) 
          showCursor ( false ) 
         end 
end 
addEventHandler("onClientGUIClick", root, msh1) 

جــرب أخوي # < ~ ولوفيه غلط نبهوني !

اغلاط موب غلط ض1

Link to comment
سطر 3 وسطر 4 وسطر 5 وسطر 7,

+ مشوش سوي مثل ما قلت لك ترايقر...

صلحتها كلها قبل ما تقول لي # بس

3 .؟

#~ اش الغلط فيه

ناقص قوسين حق اللوكال + تقدر تختصرها

getLocalPlayer() = localPlayer

اقصد يعني لو حطيت اي وحده بتضبط ,,

+ return = وجودها مثل عدمها بس تاخذ مسآحه ._.

Edited by Guest
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...