MSHOOSH Posted June 7, 2013 Posted June 7, 2013 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) السلام عليكم و رحمه الله و بركاته زي ما انتو شايفين كود تضغط زر ينقلك لمكان معين بس اذا كنت في سياره ما ينقلني ذذ وش استخدم من فكشنات ؟,
#DRAGON!FIRE Posted June 7, 2013 Posted June 7, 2013 و عليكم السلأم أخوي # اخوي استخدم isPedInVehicle return end To Contact Me at Skype : [email protected]
MSHOOSH Posted June 7, 2013 Author Posted June 7, 2013 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 ?
#DRAGON!FIRE Posted June 7, 2013 Posted June 7, 2013 (edited) 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 June 7, 2013 by Guest To Contact Me at Skype : [email protected]
MSHOOSH Posted June 7, 2013 Author Posted June 7, 2013 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 ??
#DRAGON!FIRE Posted June 7, 2013 Posted June 7, 2013 (edited) 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 September 12, 2014 by Guest To Contact Me at Skype : [email protected]
iPrestege Posted June 7, 2013 Posted June 7, 2013 (edited) -- # 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 June 7, 2013 by Guest
AhmeD~9MoD Posted June 7, 2013 Posted June 7, 2013 (edited) تم التعديل ... نسيت اخلي كودات الي تقفل اللوحة 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 ) جرب .. Edited June 7, 2013 by Guest
iPrestege Posted June 7, 2013 Posted June 7, 2013 يمديك تنقلة بسيارة شوف كودي ذذذذذذذذذذذذذذذذذذذذذذذذذذذذ
#DRAGON!FIRE Posted June 7, 2013 Posted June 7, 2013 يمديك تنقلة بسيارة شوف كودي ذذذذذذذذذذذذذذذذذذذذذذذذذذذذ برسستيج هو ما يبغى ينقل بالسيارة To Contact Me at Skype : [email protected]
AhmeD~9MoD Posted June 7, 2013 Posted June 7, 2013 (edited) يمديك تنقلة بسيارة شوف كودي ذذذذذذذذذذذذذذذذذذذذذذذذذذذذ هو مايبغى اللاعب ينتقل في سيآرةة ,, 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 June 7, 2013 by Guest
#DRAGON!FIRE Posted June 7, 2013 Posted June 7, 2013 (edited) الاكواد اللي قبل كلها خطأ ~حق احمد صح بس ~ ممكن تقولي وش الغلط اللي عندي ^ . Edited September 12, 2014 by Guest To Contact Me at Skype : [email protected]
MSHOOSH Posted June 7, 2013 Author Posted June 7, 2013 ي شباب انا ابيه اذا ضغطته و انا كعابي و لا سياره ينقلني الكود ما اشتغل
فاّرس Posted June 7, 2013 Posted June 7, 2013 استخدم , removePedFromVehicle سو ترايقر... Sha67 سابقاً
#DRAGON!FIRE Posted June 7, 2013 Posted June 7, 2013 (edited) 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 June 7, 2013 by Guest To Contact Me at Skype : [email protected]
AhmeD~9MoD Posted June 7, 2013 Posted June 7, 2013 ي شباب انا ابيه اذا ضغطته و انا كعابي و لا سياره ينقلنيالكود ما اشتغل يمكن نسخك غلط , جرب انسخ مرة ثانية
فاّرس Posted June 7, 2013 Posted June 7, 2013 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 Sha67 سابقاً
#DRAGON!FIRE Posted June 7, 2013 Posted June 7, 2013 (edited) معليش ي اخوان لاكن نبي نتعلم وش هي الأغلاط ؟ Edited September 12, 2014 by Guest To Contact Me at Skype : [email protected]
فاّرس Posted June 7, 2013 Posted June 7, 2013 سطر 3 وسطر 4 وسطر 5 وسطر 7, + مشوش سوي مثل ما قلت لك ترايقر... Sha67 سابقاً
#DRAGON!FIRE Posted June 7, 2013 Posted June 7, 2013 سطر 3 وسطر 4 وسطر 5 وسطر 7,+ مشوش سوي مثل ما قلت لك ترايقر... صلحتها كلها قبل ما تقول لي # بس 3 .؟ #~ اش الغلط فيه To Contact Me at Skype : [email protected]
فاّرس Posted June 7, 2013 Posted June 7, 2013 (edited) سطر 3 وسطر 4 وسطر 5 وسطر 7,+ مشوش سوي مثل ما قلت لك ترايقر... صلحتها كلها قبل ما تقول لي # بس 3 .؟ #~ اش الغلط فيه ناقص قوسين حق اللوكال + تقدر تختصرها getLocalPlayer() = localPlayer اقصد يعني لو حطيت اي وحده بتضبط ,, + return = وجودها مثل عدمها بس تاخذ مسآحه ._. Edited June 7, 2013 by Guest Sha67 سابقاً
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now