-
Posts
4,805 -
Joined
-
Last visited
-
Days Won
10
Everything posted by فاّرس
-
عدل الاحداثيات لأنك سويت احداثيات خارج النافذه
-
كيف مو ظاهرين؟ هم اساسا اول كانوا خارج النافذه الحين خليتها داخل النافذه يعني لازم تفتح النافذه وتلقى الازرار ذذ
-
انت تقصد انك تبيه يسحب من اللاعب 3000 وتطلع اللوحه؟ -- Client Side # GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(296,183,182,291,"Airport v1.0 By MR.KING",false) guiSetAlpha(GUIEditor_Window[1],1) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Button[1] = guiCreateButton(302,211,165,42,"CIT 1",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(304,264,160,41,"CIT 2",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(306,316,160,41,"CIT 3",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(309,365,154,38,"Close",false,GUIEditor_Window[1]) addEventHandler('onClientGUIClick',root,function() if source == GUIEditor_Button[1] then setElementPosition(localPlayer,1685.6872558594,-2333.2932128906,-2.6796875) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[2] then setElementPosition(localPlayer,1713.2843017578,1598.498046875,10.171875) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[3] then setElementPosition(localPlayer,-1381.6556396484,-215.08587646484,14.1484375) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[4] then setElementPosition(localPlayer,x,y,z) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[4] then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end ) addEvent('window',true) addEventHandler('window',root,function() if not guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end ) -- Server Side # markers = { { 1685.7978515625,-2239.2492675781,-2.7029404640198 }, { 1714.3428955078,1614.2807617188,10.015625 }, { -1409.9799804688,-201.85282897949,14.1484375 } } for k,v in ipairs(markers) do marker = createMarker(v[1],v[2],v[3],'cylinder',2,255,255,9,170) end addEventHandler('onMarkerHit',resourceRoot,function(plr) if ( getElementType(plr) == 'player' and getPlayerMoney(plr) >= 3000 ) then takePlayerMoney(plr,3000) triggerClientEvent(plr,'window',plr) end end )
-
-- Client Side # GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(296,183,182,291,"Airport v1.0 By MR.KING",false) guiSetAlpha(GUIEditor_Window[1],1) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Button[1] = guiCreateButton(302,211,165,42,"CIT 1",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(304,264,160,41,"CIT 2",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(306,316,160,41,"CIT 3",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(309,365,154,38,"Close",false,GUIEditor_Window[1]) local markerName = createMarker(1278.53, -1328.4, 13.3, "cylinder", 2, 255, 0, 0,170 ) addEventHandler('onClientMarkerHit', markerName, function (plr) if plr == localPlayer and not guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end ) addEventHandler('onClientGUIClick',root,function() if source == GUIEditor_Button[1] then setElementPosition(localPlayer,1685.6872558594,-2333.2932128906,-2.6796875) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[2] then setElementPosition(localPlayer,1713.2843017578,1598.498046875,10.171875) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[3] then setElementPosition(localPlayer,-1381.6556396484,-215.08587646484,14.1484375) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[4] then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end ) بالنسبه لـ انه ما يسحب فلوس , انا حاط شرط انه لازم يكون فلوسه 3000 وفوق عشان ما يجي سالب لو كانت الفلوس اقل
-
اي شيء موب فاهمه قول ؟ ترا ما بتستفيد لو اخذته ومو فاهمه ... وبالنسبه للتشفير فيه تشفيره قويه نوعا ما , https://luac.multitheftauto.com/ طبعا حط صح على خيار Encrypt (only from 1.3.4) ولازم يكون اصدار السيرفر 1.3.4
-
اقولك نادرا تلقى احد عنده افكار جديده اكثر الناس سوو الافكار, وطبعا الفكره تجيك من واقع الحياه مثلا الشرطه والحراميه والزراعه والقمر... واساسا لو احد عنده افكار ما بيعطيك بيسوي مود وبينشره او يحتفظ به لنفسه.
-
-- Client Side # GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(296,183,182,291,"Airport v1.0 By MR.KING",false) guiSetAlpha(GUIEditor_Window[1],1) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Button[1] = guiCreateButton(302,211,165,42,"CIT 1",false) GUIEditor_Button[2] = guiCreateButton(304,264,160,41,"CIT 2",false) GUIEditor_Button[3] = guiCreateButton(306,316,160,41,"CIT 3",false) GUIEditor_Button[4] = guiCreateButton(309,365,154,38,"Close",false) local markerName = createMarker(1278.53, -1328.4, 13.3, "cylinder", 2, 255, 0, 0,170 ) addEventHandler('onClientMarkerHit', markerName, function (plr) if plr == localPlayer and not guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end ) addEventHandler('onClientGUIClick',root,function() if source == GUIEditor_Button[1] then setElementPosition(localPlayer,x,y,z) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[2] then setElementPosition(localPlayer,x,y,z) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[3] then setElementPosition(localPlayer,x,y,z) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[4] then setElementPosition(localPlayer,x,y,z) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end ) -- Server Side # markers = { { x,y,z }, { x,y,z }, { x,y,z } } for k,v in ipairs(markers) do marker = createMarker(v[1],v[2],v[3],'cylinder',2,255,255,9,170) end addEventHandler('onMarkerHit',resourceRoot,function(plr) if ( getElementType(plr) == 'player' and getPlayerMoney(plr) >= 3000 ) then takePlayerMoney(plr,3000) end end ) في الجدول, { x,y,z }, { x,y,z }, { x,y,z } بـ احداثيات الماركرات x,y,z استبدل وفي الكلنت setElementPosition(localPlayer,x,y,z) x,y,z = احداثيات الاماكن
-
الله يشفيك ولا يبتلينا
-
-- Server Side # markers = { { x,y,z }, { x,y,z }, { x,y,z } } for k,v in ipairs(markers) do createMarker(v[1],v[2],v[3],'cylinder',2,255,255,9,170) end addEventHandler('onMarkerHit',resourceRoot,function(plr) if ( getElementType(plr) == 'player' and getPlayerMoney(plr) >= 3000 ) then takePlayerMoney(plr,3000) end end ) Edit # كيف تفتح لحالها ؟ اصلا بتكون مقفله -_-" واظن عطيتك كود فوق ليه مستخدك ذا في حاطه ؟ -__-"
-
اذا تبي الماركرات تسوي نفس الوظيفه سوي جدول, onMarkerHit table = {...} -- Ex : table = {x,y,z...} getElementType getPlayerMoney >= 3000 takePlayerMoney
-
Key.lua = client?
-
خلي الكود كذا, bindKey ( Key , 'down' , function() guiSetVisible(Wnd,not guiGetVisible(Wnd)) showCursor(not isCursorShowing()) guiSetInputEnabled(not guiGetInputEnabled()) end ) وسوي ملف كلنت جديد وحط فيه Key = 'F9'
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(258,134,343,305,"][ مود الانتقالات ][",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(498,382,102,53,"ساحة الزومبي",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(498,382,102,53,"ساحة الزومبي 2",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) local markerName = createMarker(1278.53, -1328.4, 13.3, "cylinder", 2, 255, 0, 0,170 ) addEventHandler('onClientMarkerHit', markerName, function (plr) if plr == localPlayer and not guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end ) addEventHandler('onClientGUIClick',root,function() if source == GUIEditor_Button[1] then setElementPosition(localPlayer,x,y,z) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif source == GUIEditor_Button[2] then setElementPosition(localPlayer,x,y,z) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end )
-
سوي مثلا كذا bindKey(TheKey,'down', وبالملف TheKey = 'F2'
-
تحقق من اللاعب This function gets the player element of the client running the current script.
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(258,134,343,305,"][ مود الانتقالات ][",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(498,382,102,53,"ساحة الزومبي",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) local markerName = createMarker(1278.53, -1328.4, 13.3, "cylinder", 2, 255, 0, 0,170 ) addEventHandler('onClientMarkerHit', markerName, function (plr) if plr == localPlayer and not guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end )
-
يمكن هو فاهم غلط افضل شيء انه يترجم ويشوف انه اي واحد عربي يفهم الكلام لكن فيه اشياء ماعرف كيف اوصفها مثل الساينتكس نحطها مصطلحات او وش؟ هو اساسا معناه بناء الجمله , ولكن تحسها موب واضحه وتقدر تحطها تركيب الجمله او الكود
-
جرب هالطريقه ذذ onClientResourceStart setElementData onPlayerChat getElementData cancelEvent outputChatBox
-
سوي ماركر او كول شيب جيب الاحداثيات ذذ الماركر اسهل لك , createMarker onVehicleStartExit isElementWithinMarker cancelEvent
-
^ ما اظنها من الوظائف الصعبه , ولكنها صعبه في القياس عشان كذا نمشيها , Returns : This returns two floats representing the player's screen resolution, width and height. local width,height = guiGetScreenSize () width = العرض, height = الارتفاع,
-
Blaawee في طريقه شفتها للأخ local sc = {guiGetScreenSize()} addEventHandler('onClientRender',root,function() dxDrawText('Health:', sc[ 1 ] / 2 - dxGetTextWidth( 'Health:', 1, 'bankgothic' ) / 2, sc[ 2 ] / 2 + 128, sc[ 1 ], sc[ 2 ], tocolor(0, 0, 0, 255), 0.50, 'bankgothic', 'left', 'top', false, false, false, false, false) end ) ^ جرب ممكن تضبط
-
الموضوع المقصد منه يعلمك وش فايده الوظيفه , وانا بالذات اقصد الصعبه مثل string.format < اقصد مثلا الرموز وكذا مثل HTTP Functions
-
يكون معك كود جاهز عدم وضع اكثر من كود في نفس الوقت , حتى يتم الرد على الي قبله وايضا يسمح بالوظائف الصعبه داخل الويكي table.concat... يسمح بوظائف خارج الويكي مثل ياريت لو تقرأ القوانين.
