mostafaalal Posted January 22, 2016 Share Posted January 22, 2016 شباب هذا كود بوابة شغال بس ابي اعدل عليه اخليه الي يجي البوابة لازم يحط كلمة مرور عشان تفتح Door3 = createObject(2990,1004,-643.5,124.30000305176,0,358,202) markerDoor3 = createMarker(1003.200012207,-643.29998779297,120.09999847412,'cylinder',6,0,0,0,0) addEventHandler('onMarkerHit',markerDoor3, function ( hitElement ) moveObject(Door3,4000,1004,-643.5,130.80000305176) end ) addEventHandler('onMarkerLeave',markerDoor3, function ( hitElement ) moveObject(Door3,4000,1004,-643.5,124.30000305176) end ) Link to comment
Rockyz Posted January 22, 2016 Share Posted January 22, 2016 سو لوحة وحط فيها ايديت وزر وبضبطها الك Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 سو لوحة وحط فيها ايديت وزر وبضبطها الك اوك Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 سو لوحة وحط فيها ايديت وزر وبضبطها الك تفضل GUIEditor = { button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(522, 239, 307, 180, "فتح البوابة الخاصة", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(82, 70, 150, 34, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(118, 114, 78, 34, "فتح البوابة", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(82, 40, 155, 20, " ضع كلمة المرور هنا لفتح البوابة", false, GUIEditor.window[1]) end ) Link to comment
' A F . Posted January 22, 2016 Share Posted January 22, 2016 GUIEditor = {button = {},window = {},label = {},edit = {}} pass = '1212' addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window [ 1 ] = guiCreateWindow(522, 239, 307, 180, "فتح البوابة الخاصة", false) guiSetVisible ( GUIEditor.window [ 1 ] , false ) GUIEditor.edit [ 1 ] = guiCreateEdit(82, 70, 150, 34, "", false, GUIEditor.window [ 1 ]) GUIEditor.button [ 1 ] = guiCreateButton(118, 114, 78, 34, "فتح البوابة", false, GUIEditor.window [ 1 ]) GUIEditor.label [ 1 ] = guiCreateLabel(82, 40, 155, 20, " ضع كلمة المرور هنا لفتح البوابة", false, GUIEditor.window [ 1 ]) addEventHandler('onClientGUIClick',GUIEditor.button [ 1 ] , openDoor , false ) end ) Door3 = createObject(2900,-2485.61157,-615.84094,132.56523,0,358,202) markerDoor3 = createMarker(-2484.16626,-615.90326,132.56483-1,'cylinder',1.5,0,0,0,255) addEventHandler('onClientMarkerHit',markerDoor3, function ( hitElement ) if ( hitElement == localPlayer ) then guiSetVisible ( GUIEditor.window [ 1 ] , true ) showCursor ( true ) end end ) function openDoor ( ) if ( guiGetText ( GUIEditor.edit [ 1 ] ) == pass ) then moveObject(Door3,4000,-2485.31323,-615.99457,145.46979) guiSetVisible ( GUIEditor.window [ 1 ] , false ) showCursor ( false ) outputChatBox('Welcome!',255,0,0,true) else outputChatBox('Error!',255,0,0,true) end end addEventHandler('onClientMarkerLeave',markerDoor3, function ( hitElement ) moveObject(Door3,4000,-2485.61157,-615.84094,132.56523) end ) ترا عدلت الاحداثيات لاني كنت آجرب Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 GUIEditor = {button = {},window = {},label = {},edit = {}} pass = '1212' addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window [ 1 ] = guiCreateWindow(522, 239, 307, 180, "فتح البوابة الخاصة", false) guiSetVisible ( GUIEditor.window [ 1 ] , false ) GUIEditor.edit [ 1 ] = guiCreateEdit(82, 70, 150, 34, "", false, GUIEditor.window [ 1 ]) GUIEditor.button [ 1 ] = guiCreateButton(118, 114, 78, 34, "فتح البوابة", false, GUIEditor.window [ 1 ]) GUIEditor.label [ 1 ] = guiCreateLabel(82, 40, 155, 20, " ضع كلمة المرور هنا لفتح البوابة", false, GUIEditor.window [ 1 ]) addEventHandler('onClientGUIClick',GUIEditor.button [ 1 ] , openDoor , false ) end ) Door3 = createObject(2900,-2485.61157,-615.84094,132.56523,0,358,202) markerDoor3 = createMarker(-2484.16626,-615.90326,132.56483-1,'cylinder',1.5,0,0,0,255) addEventHandler('onClientMarkerHit',markerDoor3, function ( hitElement ) if ( hitElement == localPlayer ) then guiSetVisible ( GUIEditor.window [ 1 ] , true ) showCursor ( true ) end end ) function openDoor ( ) if ( guiGetText ( GUIEditor.edit [ 1 ] ) == pass ) then moveObject(Door3,4000,-2485.31323,-615.99457,145.46979) guiSetVisible ( GUIEditor.window [ 1 ] , false ) showCursor ( false ) outputChatBox('Welcome!',255,0,0,true) else outputChatBox('Error!',255,0,0,true) end end addEventHandler('onClientMarkerLeave',markerDoor3, function ( hitElement ) moveObject(Door3,4000,-2485.61157,-615.84094,132.56523) end ) ترا عدلت الاحداثيات لاني كنت آجرب ميب مشكلة حب ^^ Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 GUIEditor = {button = {},window = {},label = {},edit = {}} pass = '1212' addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window [ 1 ] = guiCreateWindow(522, 239, 307, 180, "فتح البوابة الخاصة", false) guiSetVisible ( GUIEditor.window [ 1 ] , false ) GUIEditor.edit [ 1 ] = guiCreateEdit(82, 70, 150, 34, "", false, GUIEditor.window [ 1 ]) GUIEditor.button [ 1 ] = guiCreateButton(118, 114, 78, 34, "فتح البوابة", false, GUIEditor.window [ 1 ]) GUIEditor.label [ 1 ] = guiCreateLabel(82, 40, 155, 20, " ضع كلمة المرور هنا لفتح البوابة", false, GUIEditor.window [ 1 ]) addEventHandler('onClientGUIClick',GUIEditor.button [ 1 ] , openDoor , false ) end ) Door3 = createObject(2900,-2485.61157,-615.84094,132.56523,0,358,202) markerDoor3 = createMarker(-2484.16626,-615.90326,132.56483-1,'cylinder',1.5,0,0,0,255) addEventHandler('onClientMarkerHit',markerDoor3, function ( hitElement ) if ( hitElement == localPlayer ) then guiSetVisible ( GUIEditor.window [ 1 ] , true ) showCursor ( true ) end end ) function openDoor ( ) if ( guiGetText ( GUIEditor.edit [ 1 ] ) == pass ) then moveObject(Door3,4000,-2485.31323,-615.99457,145.46979) guiSetVisible ( GUIEditor.window [ 1 ] , false ) showCursor ( false ) outputChatBox('Welcome!',255,0,0,true) else outputChatBox('Error!',255,0,0,true) end end addEventHandler('onClientMarkerLeave',markerDoor3, function ( hitElement ) moveObject(Door3,4000,-2485.61157,-615.84094,132.56523) end ) ترا عدلت الاحداثيات لاني كنت آجرب مب شغال مدري ليش حاط الاحداثيات صح بس مدري وش فيه+الماركر مو مخفي انا كنت مخفيه هذا الكود مع احداثياتي GUIEditor = {button = {},window = {},label = {},edit = {}} pass = '1212' addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window [ 1 ] = guiCreateWindow(522, 239, 307, 180, "فتح البوابة الخاصة", false) guiSetVisible ( GUIEditor.window [ 1 ] , false ) GUIEditor.edit [ 1 ] = guiCreateEdit(82, 70, 150, 34, "", false, GUIEditor.window [ 1 ]) GUIEditor.button [ 1 ] = guiCreateButton(118, 114, 78, 34, "فتح البوابة", false, GUIEditor.window [ 1 ]) GUIEditor.label [ 1 ] = guiCreateLabel(82, 40, 155, 20, " ضع كلمة المرور هنا لفتح البوابة", false, GUIEditor.window [ 1 ]) addEventHandler('onClientGUIClick',GUIEditor.button [ 1 ] , openDoor , false ) end ) Door3 = createObject(2990,1004,-643.5,124.30000305176,0,358,202) markerDoor3 = createMarker(1003.200012207,-643.29998779297,120.09999847412,'cylinder',7,0,0,0,255) addEventHandler('onClientMarkerHit',markerDoor3, function ( hitElement ) if ( hitElement == localPlayer ) then guiSetVisible ( GUIEditor.window [ 1 ] , true ) showCursor ( true ) end end ) function openDoor ( ) if ( guiGetText ( GUIEditor.edit [ 1 ] ) == pass ) then moveObject(Door3,4000,1004,-643.5,130.80000305176) guiSetVisible ( GUIEditor.window [ 1 ] , false ) showCursor ( false ) outputChatBox('Welcome!',255,0,0,true) else outputChatBox('Error!',255,0,0,true) end end addEventHandler('onClientMarkerLeave',markerDoor3, function ( hitElement ) moveObject(Door3,4000,1004,-643.5,124.30000305176) end ) Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 شباب نسيت لا احط زر اغلاق للوحة ممكن تحطوها لا هنتو @@ Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 والله يا انه سيفون Link to comment
' A F . Posted January 22, 2016 Share Posted January 22, 2016 سلامات احسن شيء نسوي لك ميتا ؟ اللوحة انت تسويها الكود انا مجربه مافيه ولا خطاً Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 سلامات احسن شيء نسوي لك ميتا ؟ اللوحة انت تسويها الكود انا مجربه مافيه ولا خطاً بس ترى مب شغال عندي خلاص ميب مشكلة انت اولا واخيرا رديت علي وساعدتني جزاك الله خير حقك علينا لا تزعل ترى نشتري رضاك بفلوس مشكور على كل حال Link to comment
#|_oskar_|# Posted January 22, 2016 Share Posted January 22, 2016 (edited) كلنت Marker = createMarker (1003.3,-644,121, "cylinder",4,0,0,0, 170 ) window = guiCreateWindow(522, 239, 307, 180, "فتح البوابة الخاصة", false) guiSetVisible (window , false ) edit = guiCreateEdit(82, 70, 150, 34, "", false, window ) button = guiCreateButton(118, 114, 78, 34, "فتح البوابة", false, window ) label = guiCreateLabel(82, 40, 155, 20, " ضع كلمة المرور هنا لفتح البوابة", false, window ) addEventHandler("onClientMarkerHit",Marker, function (player) if player ~= localPlayer then return end guiSetVisible ( window , true ) showCursor ( true ) end) addEventHandler('onClientGUIClick',button,function ( ) if guiGetText ( edit ) == '123' then triggerServerEvent('open', localPlayer) guiSetVisible ( window , false ) showCursor ( false ) outputChatBox('Welcome!',255,0,0,true) else guiSetVisible ( window , false ) showCursor ( false ) outputChatBox('Error!',255,0,0,true) end end, false ) سيرفر local x,y,z = 1003.3,-644,123.2 local gate = createObject(2990,x,y,z,0,358,202) --------- addEvent("open", true) addEventHandler("open",getRootElement(),function() moveObject(gate,4000,1003.3,-644,z+10) time = setTimer ( function(source) if time and isTimer(time) then killTimer(time) end moveObject(gate,4000, x,y,z) end, 5000,1,source) end) Edited January 22, 2016 by Guest Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 اشتغلت يعطيك العافية بس المشكلة بلوحة الدخول نسيت احطلها زر خروج والحين لما احاول احطلها يقولي An error in the database E213 احد يقدر يعدلها؟؟؟؟؟؟؟؟ Link to comment
#|_oskar_|# Posted January 22, 2016 Share Posted January 22, 2016 اشتغلت يعطيك العافيةبس المشكلة بلوحة الدخول نسيت احطلها زر خروج والحين لما احاول احطلها يقولي An error in the database E213 احد يقدر يعدلها؟؟؟؟؟؟؟؟ دخول ايش مافهمت ؟ Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 اشتغلت يعطيك العافيةبس المشكلة بلوحة الدخول نسيت احطلها زر خروج والحين لما احاول احطلها يقولي An error in the database E213 احد يقدر يعدلها؟؟؟؟؟؟؟؟ دخول ايش مافهمت ؟ صح فيه لوحة لفتح البوابة هذي اللوحة نسيت ما احط فيها زر للخروح يعني الي ما يعرف كلمة المرور راح تبقى اللوحة في وجهه وما يقدر يسكرها Link to comment
Ja[B]er[X]Pro Posted January 22, 2016 Share Posted January 22, 2016 Marker = createMarker (1003.3,-644,121, "cylinder",4,0,0,0, 170 ) window = guiCreateWindow(522, 239, 307, 180, "فتح البوابة الخاصة", false) guiSetVisible (window , false ) edit = guiCreateEdit(82, 70, 150, 34, "", false, window ) button = guiCreateButton(118, 114, 78, 34, "فتح البوابة", false, window ) label = guiCreateLabel(82, 40, 155, 20, " ضع كلمة المرور هنا لفتح البوابة", false, window ) addEventHandler("onClientMarkerHit",Marker, function (player) if player ~= localPlayer then return end guiSetVisible ( window , true ) showCursor ( true ) end) addEventHandler('onClientGUIClick',button,function ( ) if guiGetText ( edit ) == '123' then triggerServerEvent('open', localPlayer) outputChatBox('Welcome!',255,0,0,true) guiSetVisible ( window , false ) showCursor ( false ) else guiSetVisible ( window , false ) showCursor ( false ) outputChatBox('Error!',255,0,0,true) end end, false ) ما جربته Link to comment
#|_oskar_|# Posted January 22, 2016 Share Posted January 22, 2016 صح فيه لوحة لفتح البوابة هذي اللوحة نسيت ما احط فيها زر للخروح يعني الي ما يعرف كلمة المرور راح تبقى اللوحة في وجهه وما يقدر يسكرها عدلت لك الكود حق الكلنت انسخه ثاني وجرب Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 صح فيه لوحة لفتح البوابة هذي اللوحة نسيت ما احط فيها زر للخروح يعني الي ما يعرف كلمة المرور راح تبقى اللوحة في وجهه وما يقدر يسكرها عدلت لك الكود حق الكلنت انسخه ثاني وجرب مشكور حبيبي ما قصرت والله Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 صح فيه لوحة لفتح البوابة هذي اللوحة نسيت ما احط فيها زر للخروح يعني الي ما يعرف كلمة المرور راح تبقى اللوحة في وجهه وما يقدر يسكرها عدلت لك الكود حق الكلنت انسخه ثاني وجرب ما تغير اي شيئ Link to comment
mostafaalal Posted January 22, 2016 Author Share Posted January 22, 2016 صح فيه لوحة لفتح البوابة هذي اللوحة نسيت ما احط فيها زر للخروح يعني الي ما يعرف كلمة المرور راح تبقى اللوحة في وجهه وما يقدر يسكرها عدلت لك الكود حق الكلنت انسخه ثاني وجرب الا تغير انا كنت احسب انك ضفت زر مشكورررررررررررر والله ما اعرف كيف اشكرك كملت معي الين اخر لحظة 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