-
Posts
1,647 -
Joined
-
Last visited
Everything posted by iMr.Dawix~#
-
function close(thePlayer) if ( thePlayer == Button3 ) then guiSetVisible(window,false) showCursor(false) end addEventHandler( "onClientGUIClick", close,) أتوقع كذا ض- لآ ذا اللي فوق شغال اللي سويتة بـ الرد اللي فوق ردك ^ الي انت حطيته اضغط اي مكان بالنافذه يقفل
-
function close(thePlayer) if ( thePlayer == Button3 ) then guiSetVisible(window,false) showCursor(false) end addEventHandler( "onClientGUIClick", close,) أتوقع كذا
-
Client and Server function االبيند كي يجي سيرفر وكلنت يعني ماتوقع فيه فرق bindKey ( player thePlayer, string key, string keyState, string commandName, string arguments )
-
جربه ماجربته local tempCol = createColCuboid ( X, Y, Z, 10.0, 10.0, 10.0 ) if ( tempCol == false ) then toggleControl ( source, "tempCol_Enter ", false ) toggleControl ( source, "tempCol_Enter ", true ) addEventHandler ( "onColShapeHit", tempCol, tempCol_Enter ) addEventHandler ( "onColShapeLeave", tempCol, tempCol_Leave ) end كودكـ خطير ممكن تفسر لي وظيفته ؟
-
elseif source == GUIEditor_Image[1] then playSound("sot/1.mp3") كررها ع اسامي الصور الي بالمود
-
مازا بكم كلكم تريدون باب بضغطة زر؟
-
أولاً بخصوص كود السيرفر , onPlayerMarkerHit انت مستخدم حدث thePlayer وحاط في الفنكشن thePlayer و عند إعطآء الفلوس حاط يكون صح onMarkerHit لو انك مستخدم onPlayerMarkerHit بكذآ رح يصير يعطي الفلوس للماركر وليس للاعب , لأنك مستخدم onPlayerMarkerHit, The source of this event is the player that hit the marker. + حآط كود إنشاء الماركر , عندما تنلمس الماركر نفسها , وهو اصلاً مافي ماركر حتى يلمسها ! + نآقصكـ إند + منت محدد اسم الماركر الي ينلمس + إسم الفنكشن يختلف عن إسمها في الحدث ذذ على ككل حأإل يصصير كذآ , -- Server Side ! dMarker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) -- x, y, z = الإحداثيات function x ( ) givePlayerMoney ( source, 5000 ) destroyElement ( dMarker ) end addEventHandler("onPlayerMarkerHit", dMarker, x) ثانياً بخصوص كود الكلنت , وهآذ الحدث سيرفر , ما يصير تستخدمه بالكلنت onPlayerMarkerHit انت مستخدم نفس الحدث الي هو + نآقصكـ إند + منت محدد اسم الماركر الي ينلمس + إسم الفنكشن يختلف عن إسمها في الحدث ذذ ونفس الأخطاء الي بكود السيرفر , وانصحكـ تبعد عن الكلنت بالأشياء الي تتعلق بالفلوس . آسف دخلت الويكي على طول وكتبت ع السريع وطلعت
-
حطيته بالميتآ سيرفر؟
-
object = createObject ( 2930, 1520.3000488281, -1629.5999755859, 15.199999809265 ) marker = createMarker ( 1520.0999755859, -1630.5999755859, 13.5, 'cylinder', 2, 0, 0, 0, 0 ) function Move (thePlayer) if isElementWithinMarker ( thePlayer, marker ) then moveObject ( object, 1500, 1520.3000488281, -1631.0999755859, 18.199999809265 ) end function Move2 (thePlayer) if isElementWithinMarker ( thePlayer, marker ) then moveObject ( object, 1500, 1520.3000488281, -1629.5999755859, 15.199999809265 ) end bindKey ( thePlayer, "h", "down", Move ) bindKey ( thePlayer, "h", "down", Move2 ) !! ادخل داخل الماركر واضغط h
-
اكتب في اف8 debugscript 3 وسو رستارت للمود واكتب الكلام الي يجيك هنا
-
object = createObject ( 2930, 1520.3000488281, -1629.5999755859, 15.199999809265 ) marker = createMarker ( 1520.0999755859, -1630.5999755859, 13.5, 'cylinder', 2, 0, 0, 0, 0 ) function Move (thePlayer) if isElementWithinMarker ( thePlayer, marker ) then moveObject ( object, 1500, 1520.3000488281, -1631.0999755859, 15.199999809265 ) else moveObject ( object, 1500, 1520.3000488281, -1629.5999755859, 15.199999809265 ) end end bindKey ( thePlayer, "H", "down", Move )
-
خلاص هدي هدي function (thePlayer)
-
object = createObject ( 2930, 1520.3000488281, -1629.5999755859, 15.199999809265 ) marker = createMarker ( 1520.0999755859, -1630.5999755859, 13.5, 'cylinder', 2, 0, 0, 0, 0 ) function Move () if isElementWithinMarker ( source, marker ) then moveObject ( object, 1500, 1520.3000488281, -1631.0999755859, 15.199999809265 ) else moveObject ( object, 1500, 1520.3000488281, -1629.5999755859, 15.199999809265 ) end end bindKey ( source, "H", "down", Move ) !! لم يتم التجربه source = ?? thePlayer = ?? آسف غلطت انا كنت حاطه ذا بلير بعدين خليته سورس ونسيت الأخيره
-
object = createObject ( 2930, 1520.3000488281, -1629.5999755859, 15.199999809265 ) marker = createMarker ( 1520.0999755859, -1630.5999755859, 13.5, 'cylinder', 2, 0, 0, 0, 0 ) function Move (source) if isElementWithinMarker ( source, marker ) then moveObject ( object, 1500, 1520.3000488281, -1631.0999755859, 15.199999809265 ) else moveObject ( object, 1500, 1520.3000488281, -1629.5999755859, 15.199999809265 ) end end bindKey ( source, "H", "down", Move ) !! لم يتم التجربه
-
حطجه مككان x,y,z
-
server function x(thePlayer) dMarker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 )--x,y,zالأحداثيات مكان givePlayerMoney ( thePlayer, 5000 ) addEventHandler("onPlayerMarkerHit",getRootElement(),dMarker) client function x(thePlayer) dMarker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) givePlayerMoney (5000) addEventHandler("onPlayerMarkerHit",getRootElement(),dMarker)x,y,z الأحداثيات اختار الي تبي كلنت او سيرفر !! الكود مو مجرب
-
مو كل مرا نعطيك جاهز لآزم تتعلم وتسوي بنفسك مو بس تاخذ وتحط اسمك وسلام
-
او بنافذة المود حط نقطه في مكان اكثر من المكان الثاني
-
طيب ع الأقل سو الماركرات الي عند بيت سي جي والي عند البنك مو كل شي يجيك جاهز https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/index.ph ... /Main_Page https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87 ويكي عربي https://wiki.multitheftauto.com/index.ph ... /Main_Page وبرنامج يساعدك في معرفة الأخطا http://scripteditor.beta.mtasa.com/file ... Editor.zip
-
طيب ع الأقل سو الماركرات الي عند بيت سي جي والي عند البنك مو كل شي يجيك جاهز
