Leaderboard
Popular Content
Showing content with the highest reputation on 01/07/17 in Posts
-
سلام عليكم ورحمة الله انا الحين شغال على يوزر بانل تقدر تقول زي لوحة تحكم وتشتري فيها تزبط كم حاجة لوحتي فيها شراء مابات -تزبيط السيارات - الإعدادات-لوحة خاصة للمتبرعين وصورت لكم كم حاجة خلصتها يا ريت تقيمون اليوزر بانل وتعطون عليها ثمن ^^ في أمان الله1 point
-
السلام عليكم ورحمة الله تعالى وبركاته ، اليوم جبت لكم طريقة بسيطة أغلب المبرمجين المحترفين يستعملونها ، مثلا موداتك يوم تنزل على جهاز اللاعب ، يجي الكلينت بس ، وحنا في درسنا اليوم بنتعلم كيف نحميه # طبعا الطريقة مب حقتي بس حابب أشاركها :> أول شي نحط الملفات في جدول : dxLibFiles = { "dxButton.lua", "dxWindow.lua", "dxEditBox.lua", "dxMain.lua" } تمام ، هذولي هم الملفات اللي حابين نحميها بعدها نجي نسوي فنكشن ونسوي فيه لوب لجميع ملفات الجدول ، تم نحذفهم في وس اللوب ، ثم نجيبهم من جديد function SecureFiles() for i=0, #dxLibFiles do fileDelete(dxLibFiles[i]) local files = fileCreate(dxLibFiles[i]) if files then fileWrite(files, "تحياتي ، Skype : Conolel44") fileClose(files) end end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), SecureFiles) أتمنى الدرس يكون فادكم و ، يكون خفيف ظريف هههه في أمان الله1 point
-
السلام عليكم و رحمه الله و بركاته اقدم لكم اليوم سيرفر مجتمع العرب ArabCommunity نوع السيرفر : حرب عصابات تاريخ الأفتتاح : اليوم الساعه 8 بتوقيت مكه المكرمه مميزات السيرفر؟ : السيرفر مميزاتو كتيره , و اشياء جديده هتشوفوها بالأفتتاح ان شاء الله السيرفر 99% من صنعنا فقط الاساسيات مثل bone_attach - scoreboard #1Bero - #VaasMontenegro مبرمجين السيرفر : بيرو - فاس مونتينيرجو HoLsTeN - 7SaFH - من هم الأداره ؟ : هولستن - حسافه ايبي السيرفر : mtasa://193.70.17.9:22003 شعار السيرفر : [Gta-Ac] بعض صور المودات : 1 - F1 F2 - F5 - https://f.top4top.net/p_547j3jkb1.png محل السلاح https://c.top4top.net/p_54749ksa1.png طبعا السيرفر هيفتح اليوم و في اشياء كتير حصريا لهيك ما ابا احرق الباقي المبرمج الرأيسي للسيرفر #1Bero رابط المنتدي = : www.G-Cty.com1 point
-
1 point
-
1 point
-
1 point
-
السلام عليكم ورحمة الله وبركاته من غير ما اطول عليكم اليوم جبتلكم كود مرغوب طبعا هو مشترك ما بين سيرفر وكلينت تمام وش وظيفة الفنكشن الفنكشن يعطل اي فنكشن مضاف للماركر وانت مار عليه بجيت باك من فوق مثلا كيف يعني ما فهمت شوف يقلبي يعني انت مسوي ماركر ومسوي لوحة بغيت اول ما يلمس الماركر يفتح اللوحه تمام لكن في مشكله لو انت سويت ماركر من نوع cylinder وجيت تمر من فوق الماركر بتصير اللوحه تفتح وبكذا بيكون عندك مشكله افرض انت مسوي ماركرين فوق بعض بتصير مشكله لو انت مسوي الماركرين يفتحو لوحتين راح تفتح اللوحتين فوظيفة ذا الفنكشن تلغي الارتفاع الزائد يعني ما تفعل الكلام ذا فقط ارتفاع 2 زياده فوق ارتفاع الماركر اللي بتفتح له تمام نشوف طولت عليكم اسف نجي نشوف السورس كود function disableMarkerHitHighet(themarker,evname,tt) if getElementType(themarker)=='marker' and type(evname)=='string' then local x,y,z=getElementPosition(themarker) local ta={} if #getEventHandlers( evname, themarker )==0 then return end for k,v in ipairs(getEventHandlers( evname, themarker ))do removeEventHandler(evname, themarker, v) table.insert(ta,v) end if tt then addEventHandler(evname,themarker,function(plr,dim) if dim then local xp,yp,zp=getElementPosition(plr) if zp<=z+2 then for k,v in ipairs(ta)do v(plr,dim) end end end end) else addEventHandler(evname,themarker,function(plr) local xp,yp,zp=getElementPosition(plr) if zp<=z+2 then for k,v in ipairs(ta)do v(plr) end end end) end end end نجي للارقمنتات الحين وطريقة الاستخدام disableMarkerHitHighet(element marker,string event,bolean state) طيب بسم الله marker:الماركر اللي تبي تنفذ عليه الوظيفه او الخاصيه ذي event:اسم الايفينت وهو يمكن ان يكون 4 اولا بالكلنت سايد onClientMarkerHit onClientMarkerLeave ------------------------سيرفر سايد onMarkerHit onMarkerLeave -----------------ارقمنت اختياري state:يمكن ان تكون قيمتين true----لو في نفس العالم false-----لو مو في نفس العالم وتقدر تخليها ما منها فاظيه هي القيمه اصلا false طيب state هذي تحقق لو الالمنت اللي لمس الماركر او تركه في نفس العالم اللي فيه الماركر ملااااااااحظه مهمة الخاصية بتزبط لو انت مسوي الحدث حق الماركر كالاتي مثلا m1 = createMarker ( 2487.7041015625, -1665.9248046875, 12.34375, "cylinder", 1.5, 215, 215, 255 ) addEventHandler('onClientMarkerHit',m1,function ( hitPlayer ) if ( hitPlayer == localPlayer ) then if ( source == m1 ) then guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end end end ) disableMarkerHitHighet(m1,'onClientMarkerHit') اما كذا فما بتزبط m1 = createMarker ( 2487.7041015625, -1665.9248046875, 12.34375, "cylinder", 1.5, 215, 215, 255 ) addEventHandler('onClientMarkerHit',root,function ( hitPlayer ) if source==m1 then if ( hitPlayer == localPlayer ) then if ( source == m1 ) then guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end end end end ) disableMarkerHitHighet(m1,'onClientMarkerHit') وفي الختام اتمنى اكون افدتكم ويكون مفيد للجميع بالتوفيق للجميع1 point
-
مرحبا مود سيارة Stretch شبيها بالسيارة الموجودة في لعبة gta v:) صورة: https://e.top4top.net/p_546ubvqn1.jpg Download1 point
-
بدّي اشغل أغنيه في الجيم مود اول ما يدخل اللاعب وبدئ تقفل اللاعب اول ما ينزل او يختار مكان كيف1 point
-
Thanks sounds easier to be honest, quicker than putting them all in gamemode.1 point
-
1 point
-
1 point
-
7.3/10 لو تضيف بحث للمابات + تخلي اسماء المابات تحت بعض شوي كذا قريبة من بعض1 point
-
1 point
-
هات الترايقر من كلاينت + createMarker ( x , y , z , 'type' , size , red , green , blue , alpha , visible )1 point
-
Spawns = { ["Start"] = { {0, 0, 0} } } addEventHandler("onPlayerWasted", root, function() local spawn = getElementData(source, "Spawn") or "Start" local x, y, z = Spawns[spawn][1][1], Spawns[spawn][1][2], Spawns[spawn][1][3] spawnPlayer(source, x, y, z) end )1 point
-
Una recomendación mía para las posiciones es que lo guardes todo en una tabla. Así: -- Lo guardas asi, con la rotacion y todo local x, y, z = getElementPosition( objeto ) local rx, ry, rz = getElementRotation( objeto ) local pos = toJSON( { x = x, y = y, z = z, rx = rx, ry = ry, rz = rz } ) -- Lo cargas asi local pos = fromJSON( consultaSQL["pos"] ) local x, y, z, rx, ry, rz = pos[1], pos[2], pos[3], pos[4], pos[5], pos[6] Quizás no sea lo más óptimo posible, pero acorta bastante el código si vas a almacenar muchos datos.1 point
-
I see, but the "proper" way to start up multiple individual resources that are not dependent on other resources, is to add them in the mtaserver.conf, scroll down to the very bottom and add the following line(s) <resource src="your-resource-name" startup="1" protected="0" /> Attributes: src: the resource name. This is the only mandatory flag. startup: controls whether the resource will be started with the server or not. If "1", "true" or "yes", the resource will be started. If not specified, defaults to not starting the resource. protected: if "1", "true" or "yes", the resource will not be able to be stopped when started. Otherwise, even if not specified, it will default to the normal behaviour. default: if given a "1", "true" or "yes" value, this resource will be the one who populates the built-in HTTP server main page, which is seen when no resource is given in the web address. It is not possible to have more than one default resource.1 point
-
local shops = { {name="Clucking Bell", px=368.11337, py=-4.49257, pz=1001.85156, mx=368.12790, my=-6.02016, mz=1001.85156, dim=5, int=9, skin=167, rot=180}, } function ped () for index, shop in pairs(shops) do ped = createPed(shop.skin, shop.px, shop.py, shop.pz) setElementInterior(ped, shop.int) setElementDimension(ped, shop.dim) setPedRotation(ped, shop.rot) setElementFrozen(ped, true) setElementData(ped,"shopPed",true) end end addEventHandler ( "onResourceStart", root , ped ) function onPlayerTarget ( targetElem ) if targetElem == ped then setPedAnimation ( targetElem, "ped", "handsup",-1, false, false, false, true) setTimer( function() local ran = math.random(1000, 2000) givePlayerMoney(source, ran) end, 5000, 1) end end addEventHandler ( "onPlayerTarget", getRootElement(), onPlayerTarget )1 point
-
Puedes hacerlo de esa manera o agregando columnas a la db (pero el resultado será algo grande).1 point
-
What do you exactly want? Do you want number of resources to start when x resource starts? Or you want them to start when the server starts?1 point
-
1 point
-
1 point
-
الطريقة غلط لان السكربت اللي يحمي الملفات هذا ماينفذ شغله الا بعد التحميل يعني لو لاعب قاعد يحمل راح تكون ملفات الكلنت موجودة لكن راح تختفي اذا اشتغل المود للكلنت تقدر تستخدم الكاش او تقدر تسوي تشويش تشفره بتشفيرة معينة وتستخدم loadstring1 point
-
بعض عناصر الواجهة يكون فيها حالتين نشطة وغير نشطة مثال لما تضغط على الايديت يطلع لك المؤشر وهذا يعني انه نشط وجاهز للكتابة ويكون الحدث الاول اذا تم تنشيط الواجهة والثاني العكس1 point
-
تبي لون خلفية يتغير لانهائي عالعموم شكرا على اقتراحات لكن التصميم مدقق عليه اسبوع كامل1 point
-
triggerEvent =/= triggerClientEvent To trigger from Client -> Server: triggerServerEvent To trigger from Server -> Client: triggerClientEvent To trigger from Client -> Client: triggerEvent To trigger from Server -> Server: triggerEvent1 point
-
1 point
-
كخبير في صنع البيتزا عيد سعيد سعيد ولا بشير ضضضضضضضضضضضض٢ ستسبيي جو ويلسون حزب وز ي مدير لو ب1 point
-
I explained you before that OEM drivers are the ones you can get from laptop manufactorer driver page. And obviously a driver update tool will interfere with that.. As you still don't understand, let me clarify and repeat: Simply go to the laptop brand manufacturer site and then their driver/support page, enter your laptop model and get the drivers supplied for your laptop specifically, even if they are way outdated. There are too many laptops architecturally bad that suffer from having the latest drivers (generic) available, as it can disable your whole Nvidia card by breaking Optimus. (so if true, MTA would run on that slow Intel HD graphics only) And don't forget to uninstall that ''driver update tool'' before doing so, as it will interfere by overwriting what you just installed from OEM drivers.1 point
-
1 point
