MSHOOSH Posted June 7, 2013 Share 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) السلام عليكم و رحمه الله و بركاته زي ما انتو شايفين كود تضغط زر ينقلك لمكان معين بس اذا كنت في سياره ما ينقلني ذذ وش استخدم من فكشنات ؟, Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share Posted June 7, 2013 و عليكم السلأم أخوي # اخوي استخدم isPedInVehicle return end Link to comment
MSHOOSH Posted June 7, 2013 Author Share 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 ? Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share 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 Link to comment
MSHOOSH Posted June 7, 2013 Author Share 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 ?? Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share 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 Link to comment
iPrestege Posted June 7, 2013 Share 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 Link to comment
AhmeD~9MoD Posted June 7, 2013 Share 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 Link to comment
iPrestege Posted June 7, 2013 Share Posted June 7, 2013 يمديك تنقلة بسيارة شوف كودي ذذذذذذذذذذذذذذذذذذذذذذذذذذذذ Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share Posted June 7, 2013 يمديك تنقلة بسيارة شوف كودي ذذذذذذذذذذذذذذذذذذذذذذذذذذذذ برسستيج هو ما يبغى ينقل بالسيارة Link to comment
iPrestege Posted June 7, 2013 Share Posted June 7, 2013 الاكواد اللي قبل كلها خطأ ~ حق احمد صح بس ~ Link to comment
AhmeD~9MoD Posted June 7, 2013 Share 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 Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share Posted June 7, 2013 (edited) الاكواد اللي قبل كلها خطأ ~حق احمد صح بس ~ ممكن تقولي وش الغلط اللي عندي ^ . Edited September 12, 2014 by Guest Link to comment
iPrestege Posted June 7, 2013 Share Posted June 7, 2013 else وانت مسوي ريتورن اند و لوكال بلاير Link to comment
MSHOOSH Posted June 7, 2013 Author Share Posted June 7, 2013 ي شباب انا ابيه اذا ضغطته و انا كعابي و لا سياره ينقلني الكود ما اشتغل Link to comment
فاّرس Posted June 7, 2013 Share Posted June 7, 2013 استخدم , removePedFromVehicle سو ترايقر... Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share 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 Link to comment
AhmeD~9MoD Posted June 7, 2013 Share Posted June 7, 2013 ي شباب انا ابيه اذا ضغطته و انا كعابي و لا سياره ينقلنيالكود ما اشتغل يمكن نسخك غلط , جرب انسخ مرة ثانية Link to comment
فاّرس Posted June 7, 2013 Share 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 Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share Posted June 7, 2013 (edited) معليش ي اخوان لاكن نبي نتعلم وش هي الأغلاط ؟ Edited September 12, 2014 by Guest Link to comment
فاّرس Posted June 7, 2013 Share Posted June 7, 2013 سطر 3 وسطر 4 وسطر 5 وسطر 7, + مشوش سوي مثل ما قلت لك ترايقر... Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share Posted June 7, 2013 سطر 3 وسطر 4 وسطر 5 وسطر 7,+ مشوش سوي مثل ما قلت لك ترايقر... صلحتها كلها قبل ما تقول لي # بس 3 .؟ #~ اش الغلط فيه Link to comment
فاّرس Posted June 7, 2013 Share Posted June 7, 2013 (edited) سطر 3 وسطر 4 وسطر 5 وسطر 7,+ مشوش سوي مثل ما قلت لك ترايقر... صلحتها كلها قبل ما تقول لي # بس 3 .؟ #~ اش الغلط فيه ناقص قوسين حق اللوكال + تقدر تختصرها getLocalPlayer() = localPlayer اقصد يعني لو حطيت اي وحده بتضبط ,, + return = وجودها مثل عدمها بس تاخذ مسآحه ._. Edited June 7, 2013 by Guest Link to comment
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