Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 وش اللي تبية تبي لآاختار الزر مرهـَ يلغي التشيك بـوكـس ! ؟ لا القصد ما تقدر تحدد الا واحد يعني لو حددث الثاني يروح التحديد عن الاول ولو حددت الاول يروح التحديد عن الثاني guiCreateComboBox حطguiCreateCheckbox بدل جربت ولا ضبط Link to comment
iPrestege Posted January 5, 2013 Share Posted January 5, 2013 addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) triggerServerEvent ( "setPedStats2", localPlayer ) setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) guiSetVisible ( GUIEditor_Label[3], true ) guiSetEnabled ( GUIEditor_Checkbox[2], false ) guiSetEnabled ( GUIEditor_Checkbox[1], true ) elseif( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) elseif ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) guiSetEnabled ( GUIEditor_Checkbox[1], false ) guiSetEnabled ( GUIEditor_Checkbox[2], true ) setGameSpeed(tonumber(1.5)) setTimer(setGameSpeed,60000,1,1) end end end end ) Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) triggerServerEvent ( "setPedStats2", localPlayer ) setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) guiSetVisible ( GUIEditor_Label[3], true ) guiSetEnabled ( GUIEditor_Checkbox[2], false ) guiSetEnabled ( GUIEditor_Checkbox[1], true ) elseif( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) elseif ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) guiSetEnabled ( GUIEditor_Checkbox[1], false ) guiSetEnabled ( GUIEditor_Checkbox[2], true ) setGameSpeed(tonumber(1.5)) setTimer(setGameSpeed,60000,1,1) end end end end ) not work ;( Link to comment
iPrestege Posted January 5, 2013 Share Posted January 5, 2013 addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) triggerServerEvent ( "setPedStats2", localPlayer ) setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) guiSetVisible ( GUIEditor_Label[3], true ) guiSetEnabled ( GUIEditor_Checkbox[2], false ) guiSetEnabled ( GUIEditor_Checkbox[1], true ) elseif( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) elseif ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) guiSetEnabled ( GUIEditor_Checkbox[1], false ) guiSetEnabled ( GUIEditor_Checkbox[2], true ) setGameSpeed(tonumber(1.5)) setTimer(setGameSpeed,60000,1,1) end end end end ) not work ;( انا خليتة لك لآضغط الزر الثاني يفعل التشيك بوكس الاول ويلغي الثاني واذا ضغط الزر الاول يلغي التشيك بوكس الاول ويفعل التشيك بوكس الثاني هذا اللي تبية صحيح ؟ Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) triggerServerEvent ( "setPedStats2", localPlayer ) setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) guiSetVisible ( GUIEditor_Label[3], true ) guiSetEnabled ( GUIEditor_Checkbox[2], false ) guiSetEnabled ( GUIEditor_Checkbox[1], true ) elseif( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) elseif ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) guiSetEnabled ( GUIEditor_Checkbox[1], false ) guiSetEnabled ( GUIEditor_Checkbox[2], true ) setGameSpeed(tonumber(1.5)) setTimer(setGameSpeed,60000,1,1) end end end end ) not work ;( انا خليتة لك لآضغط الزر الثاني يفعل التشيك بوكس الاول ويلغي الثاني واذا ضغط الزر الاول يلغي التشيك بوكس الاول ويفعل التشيك بوكس الثاني هذا اللي تبية صحيح ؟ الموضوع مافيه الغاء شي الوضوع يروح التحديد = ما تقدر تحدد اثنين نفس الوقت Link to comment
iPrestege Posted January 5, 2013 Share Posted January 5, 2013 مافهمتكـ , يفيدكـ غيري . Link to comment
iMr.Dawix~# Posted January 5, 2013 Share Posted January 5, 2013 بعد الأختبارات انشالله يسير كل خير يالبى الأختبارات Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 بعد الأختبارات انشالله يسير كل خير يالبى الأختبارات ضض1 روح اختبر لحالك Link to comment
MR.S3D Posted January 5, 2013 Share Posted January 5, 2013 م في مساعده ؟ سوسو اي مساعدة راسلني عالخاص Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 م في مساعده ؟ سوسو اي مساعدة راسلني عالخاص ي لبى قلبك الرساله عندك Link to comment
3NAD Posted January 5, 2013 Share Posted January 5, 2013 قول وش مشكلتكـ واطرح كودك .. / Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 قول وش مشكلتكـ واطرح كودك .. / addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) triggerServerEvent ( "setPedStats2", localPlayer ) setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) guiSetVisible ( GUIEditor_Label[3], true ) guiSetEnabled ( GUIEditor_Checkbox[2], false ) guiSetEnabled ( GUIEditor_Checkbox[1], true ) elseif( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) elseif ( source == GUIEditor_Button[1] ) then if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) guiSetEnabled ( GUIEditor_Checkbox[1], false ) guiSetEnabled ( GUIEditor_Checkbox[2], true ) setGameSpeed(tonumber(1.5)) setTimer(setGameSpeed,60000,1,1) end end end end ) المشكله ان الاعب يقدر يحدد تشيك بوكس انا ابغى اذا حدد واحد يروح التحديد عن الاول يعني مايقدر يحدد الاثنين في الوقت نفسه Link to comment
3NAD Posted January 5, 2013 Share Posted January 5, 2013 -- جرب addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor_Checkbox[1] then if guiCheckBoxGetSelected ( GUIEditor_Checkbox[1] ) then guiCheckBoxSetSelected ( GUIEditor_Checkbox[2], false ) end elseif source == GUIEditor_Checkbox[2] then if guiCheckBoxGetSelected ( GUIEditor_Checkbox[2] ) then guiCheckBoxSetSelected ( GUIEditor_Checkbox[1], false ) end end end ) Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 -- جرب addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor_Checkbox[1] then if guiCheckBoxGetSelected ( GUIEditor_Checkbox[1] ) then guiCheckBoxSetSelected ( GUIEditor_Checkbox[2], false ) end elseif source == GUIEditor_Checkbox[2] then if guiCheckBoxGetSelected ( GUIEditor_Checkbox[2] ) then guiCheckBoxSetSelected ( GUIEditor_Checkbox[1], false ) end end end ) مشكؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤر واللله انك شننننننب يسلممؤؤ Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 ي شباب ككيف اسوي شرط اذا لمس الماركر 3 مرات وكذا يعني الوظيفة ماتصير الا اذا لمس الماركر 3 لاعبين ؟ Link to comment
abu5lf Posted January 5, 2013 Share Posted January 5, 2013 ي شباب ككيف اسوي شرط اذا لمس الماركر 3 مرات وكذا يعني الوظيفة ماتصير الا اذا لمس الماركر 3 لاعبين ؟ يعني اذا كانوا ثلاثة لاعبين داخل الماركر تتنفذ او تعني اذا ثلاثة لاعبين لمسوا الماركر وخرجوا تتنفذ الوظيفة ؟ Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 ي شباب ككيف اسوي شرط اذا لمس الماركر 3 مرات وكذا يعني الوظيفة ماتصير الا اذا لمس الماركر 3 لاعبين ؟ يعني اذا كانوا ثلاثة لاعبين داخل الماركر تتنفذ او تعني اذا ثلاثة لاعبين لمسوا الماركر وخرجوا تتنفذ الوظيفة ؟ اقصد اذا واحد جا ولمس الماركر وجا ثاني وثالث لمسو الماركر تتنفذ Link to comment
abu5lf Posted January 5, 2013 Share Posted January 5, 2013 يعني مهب لازم ثلاث لاعبين في الماركر؟ Link to comment
Bo7meeeD Posted January 5, 2013 Author Share Posted January 5, 2013 يعني مهب لازم ثلاث لاعبين في الماركر؟ لا Link to comment
TAPL Posted January 5, 2013 Share Posted January 5, 2013 local marker = createMarker(x, y, z "cylinder", 3, 255, 255, 0) local Hit_Cont = 0 addEventHandler("onMarkerHit", marker, function(hitElement) if (getElementType(hitElement) == "player") then if (Hit_Cont == 3) then -- نفذ الكود هنا elseif (Hit_Cont < 3) then Hit_Cont = (Hit_Cont + 1) end end end) Link to comment
Bo7meeeD Posted January 6, 2013 Author Share Posted January 6, 2013 local marker = createMarker(x, y, z "cylinder", 3, 255, 255, 0) local Hit_Cont = 0 addEventHandler("onMarkerHit", marker, function(hitElement) if (getElementType(hitElement) == "player") then if (Hit_Cont == 3) then -- نفذ الكود هنا elseif (Hit_Cont < 3) then Hit_Cont = (Hit_Cont + 1) end end end) يسلمؤؤ اخوي تابل شباب كيف اسوي الكلام اللي يطلع في الايدت يكون كذا ****** يعني كلمة سر ؟ ابغى الكود بس ! Link to comment
Bo7meeeD Posted January 6, 2013 Author Share Posted January 6, 2013 guiEditSetMasked يسلمؤؤ 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