Leaderboard
Popular Content
Showing content with the highest reputation on 28/03/19 in Posts
-
1 point
-
السلام عليكم ورحمة الله وبركاته كثير سمعنا هالكلام من اصدقائنا الي اعتزلو وراحو للالعاب الثانية ولاكن وش السر ؟ !! خلونا نكون واقعين شوي ! سيرفرات الحرب العصابات , الهجولة , الرول بلاي الخ.. وكثير سيرفرات كلها مكررة وقليل من يطلع بفكرة جديدة وسيرفر ياخذ مدة ويتقفل للأسف و أحنا كعرب لازم ندعم بعضنا البعض ونشجع بعض mta بس هالمرة راح يفتح مجتمع كامل لسيرفرات أكيد تفكر وتقول ذا وش يبي بالظبط واصلا ليش ارجع اللعبة صارت مخيسة والطيبين راحو !! كلنا ماحد ينكر الماضي سواء كان جميل او سيء لاكن ليش مانصنع مستقبلنا جميل ونخلية ذكريات جميلة الموضوع بكل بساطة أحب اقول لكم انه راح نفتح سسيرفرات وبأفكار جدأ جبارة وماحد قد فكر فيها والتجديد الي راح يكون مع الوقت #Arab_Unity. والي أنضم معنا مبرمجين وأداريين من أفضل المبرمجين والأداريين ومن هالمـنبر أدعوكم وأرحب بكم .. في الأتحاد العربي وأشكركم على حسن القراءة ... وأشكر كل الداعمين لنا واخص أدارة اللعبة ملاحظة مهمة : ولمن يود الأنضمام معنا من مبرمج او مصمم او ايا من كان نقول لك حياك الله بين أخوانك وشرف لنا1 point
-
1 point
-
try it local wx , wy , wz = 0 , 0 , 0 function test( ) local peds , positions , ped = getElementsByType( "ped" ) , { } , { }; for index = 1 , #peds do local distance = getDistanceBetween3DPoints( wx , wy , wz , getElementPosition( peds[ index ] ) ); table.insert( positions , distance ) ; ped[ distance ] = peds[ index ] end return ped[ math.min( unpack( positions ) ) ]; end1 point
-
1 point
-
1 point
-
1 point
-
للاسف ما تقدر لانوا نوع من انواع الحماية عشان لا حد يجي يسويلك علي الامر login ويجيب اسم وباسورد الحساب وممكن تسوي لك لوحة كوماند خاصة فيك1 point
-
tableNamePlayersTFO = { {"theBlack"}, {"Alpicture"}, {"Delmon"} }, MarkerTFO = createMarker ( 2772.85, -2514.28, 13.63 - 1, 'cylinder', 5.0, 255, 0, 0, 0 ) MarkerTwoTFO = createMarker ( 2767.72, -2518.99, 13.64 - 1, 'cylinder', 5.0, 255, 0, 0, 0 ) function SetSkinTFO(player) if getElementData(player,'vipskin') == true then else if getElementType ( player ) == "vehicle" then else for i, v in ipairs(tableNamePlayersTFO) do if getPlayerName ( player ) == ( v[1] ) then if (getPlayerSkin(player) == 290) then else setPlayerSkin(player, 290) end end else local PlayerTeamTFO = getPlayerTeam ( player ) local TeamNTFO = getTeamFromName ( "The First Order" ) if isElementWithinMarker ( player, MarkerTFO ) or isElementWithinMarker ( player, MarkerTwoTFO ) then if PlayerTeamTFO == TeamNTFO then if (getPlayerSkin(player) == 288) then else setPlayerSkin(player, 288) end end end end end end end addEventHandler("onMarkerHit", MarkerTFO, SetSkinTFO) addEventHandler("onMarkerHit", MarkerTwoTFO, SetSkinTFO) This will work1 point
-
1 point
-
change color in Color.rgb = round((Color.r+Color.g+Color.b)*10.0f)/30.0f; // gray Color.r=Color.rgb; // here Color.g=Color.rgb; // here Color.b=Color.rgb; // here // example Color.r *= 1.10; // here Color.g *= 1.10; // here Color.b *= 1.10; // here1 point
-
1 point
-
خادم مدينتي للعب الادوار ديسكورد :- https://discord.gg/YAT5nSJ ip :- mtasa://37.10.113.101:27115 في فاعلية صيد الاسماك icly في روم event مرحبا بكم في اي وقت1 point
-
With a loop, as you are already doing. Or use a meta table on top of your table, which can be used as `firewall` + to keep track of inserted item counts. If you need an example for that, feel free to ask. Meta tables can be a bit confusing and I most of the time try not to use them as they can executing a lot of functions for just simple operations.1 point
-
factor = 0.03 function createVehicles(player) for i,v in ipairs(getElementsByType("vehicle")) do if getVehicleType (v) ~= "BMX" then fuel = math.random(10,25) setElementData(v, "fuel", fuel) end end end function processFuel(player) for i,v in ipairs(getElementsByType("vehicle")) do if getVehicleType (v) ~= "BMX" then local fuel = getElementData(v, "fuel") or math.random(10,25) if (getVehicleEngineState(v) and fuel > 0 ) then fuel = fuel - factor end if (fuel <= 0.99) then fuel = 0 setVehicleEngineState(v, false) end setElementData(v, "fuel", fuel) end end end createVehicles() setTimer(processFuel, 1000, 0) Colocando a verificação do tipo de veículo. Onde só funciona se o tipo for diferente de "BMX" (bicicleta)1 point
-
local expGanho = 5 -- Supondo que o trabalho está dando 5 de EXP. if (tonumber(getElementData(source,"LSys:EXP")) + expGanho) >= 100 then -- Se o EXP que o player já tem, somado com o EXP que ele ganhou agora for maior ou igual a 100, então passa de level. local expExtra = tonumber(getElementData(source,"LSys:EXP")) + expGanho - 100 setElementData(source,"LSys:EXP",expExtra) -- O EXP que passou de 100 acumula e seta no EXP do level seguinte. (Se ficou com 104 de EXP, vai acumular 4 e setar no EXP) setElementData(source,"Level",tonumber(level)+1) -- Passa de level. outputChatBox("#9ACD32[TRABALHO]: #FFFFFFVocê acumulou #9ACD32100 #FFFFFFde experiência e subiu de level - #ffffff( #9ACD32"..tonumber(level)+1 .." #ffffff)",source,255,255,255,true) playSoundFrontEnd ( source, 101 ) else setElementData(source,"LSys:EXP",tonumber(getElementData(source,"LSys:EXP")) + expGanho) playSoundFrontEnd ( source, 101 ) end1 point
-
@IIYAMA No success with onClientPreRende + setCameraMatrix Respecting attaching the camera to an object, might it works, but I just don't want to extend the code.. Regards.1 point
-
1 point
-
1 point
-
1 point
-
Not sure if this works: https://wiki.multitheftauto.com/wiki/OnClientMouseMove Attach it to the gridlist. + -- doing some cursor position recalculation ... -- ... -- some more till you get the inner bounding box of the gridlist + https://wiki.multitheftauto.com/wiki/GuiGridListGetRowCount math.ceil(cursorInBoxPositionY / boxHeight * columns)1 point
-
وشدخل mtaserver.conf المشكلة هي ان مضاد الغش طرد اللاعب بسبب برنامج بروسيس هاكر يعني لازم يطفي هذا البرنامج1 point
-
وظيفة triggerLatentClientEvent الكثير منا يتجاهلها ويستخدم triggerClientEvent والفرق اللي بينهم ان triggerClientEvent اسرع في النقل لانها بتحمل الداتا كلها مرة واحدة ولكن triggerLatentClientEvent تاخد وقت ااكثر بقليل جدا من التريقر العادي للنقل 15% CPU ولكن لما تستخدم التريقر العادي هيسحب من ال CPU ولكن بالتريقر ليتينت ما راح يسحب شئ من ال لذالك انصح باستخدام triggerLatentClientEvent بالتوفيق1 point
-
بالتوفيق + قريبا بزور سيرفركم1 point
-
بالتفويق لك كريمم افضل مبرمج+افضل سسيرفر+ليا زيارة1 point
-
The MTA release cycle does not work like that. A new minor version (1.5.x, 1.6.x etc.) is released to squash a couple of changes together so that updating and requiring new features via min_mta_version works easily. A major version (1.x) by contrast is only released when we have to release it because of incompatible changes (for example at the network layer), because the client's and server's major version must match (that means you cannot join a 1.5.1 server using a 1.6 client, but you can join it with 1.5.2). In conclusion: The next version will be 1.5.3 most likely (which will get released soon probably)1 point
