Leaderboard
Popular Content
Showing content with the highest reputation on 16/08/18 in all areas
-
السلام عليكم ورحمة الله وبركاته يشباب كيف الحال طبعا انا كنت معتزل وها انا رجعت من الاعتزال ولطلبات البرمجه بمقابل يا ليت بالخاص وشكرا بالتوفيق +_+2 points
-
You can easily find the resource/piece of code responsible for anything you'd like to locate, by using certain tools. My favourite method: - download & install Notepad++ (https://notepad-plus-plus.org/download) - go to the main folder (parent to all your resource folders) and use Windows explorer to perform a file search for: *.lua like this; Depending on the size of your gamemode, all script files (.lua) will be the search result after a while. Now, select all of them (CTRL + A) and rightclick, "Edit with Notepad++". Notepad++ will take a while to open all files at the same time, again depending on the amount and size of them (trust me, it's never a hang.. just wait). The final step is, once Notepad has the files open, to press CTRL + F which is the "Find" window. Now, enter the keyword or what you need to locate in which script it is (in your case the "OMG ...arabic text.. OMG") and don't just hit enter or search, but click: "Find All in All Opened Files". It's exactly this button: Now we're done, all results from any script files are listed at the bottom of your screen, nicely sorted. Ofcourse grep is easier and quicker ('better' editors like VS code can even include similar functionality), this is just for beginners. You can use these instructions for any type of file if you change the search query in explorer (like .xml, .fx, .js, anything that can be found in resources and contains code or text). Novice tip: you could search (in Notepad++) for anything you see visually in-game (in text form) to identify the resource and part of the code responsible, just write it over from your screen or copy it. These methods are especially helpful when you're not very familiar with your codebase.2 points
-
2 points
-
well, you can do this with the old table assignLOD(createObject(unpack(v, 1, 7)))2 points
-
dbConnect : ? test_db = dbConnect( "sqlite", "file.db" ) -- عندك بطريقتين تفتح او تصنع ملف باستخدامه test_db = dbConnect( "sqlite", ":myresource/file.db" ) -- تصنع او تفتحه بمود آخر test_db = dbConnect( "mysql", "dbname=dbname;host=5.196.43.208", "username", "password", "share=1" ) -- او تفتحه من قاعدة بيانات الخاصة بالخادم -- الارقمنت الاول --[[ تحدده يكون sqlite عشان تفتح ملفات .db او mysql عشان تفتح اتصالات خارجية ]] dbExec : ? -- اذا تبي تستعمل الأمر مباشرة بدون ماتستعملها -- وما بتحتاج تستعمل معها : -- dbPoll -- dbFree dbExec ( test_db, "DELETE FROM table_name WHERE name=?", "Wifi" ) -- وبيرجع ترو اذا زبطت العملية وفولس اذا مازبطت dbQuery : dbPoll : dbFree : ? -- هذي تستعمل مع dbFree && dbPoll -- dbFree لاستعمالها مباشرة بدون نتائج -- dbPoll لاستعمالها عشان تستلم نتيجة الشهادة -- قصدي الاستعلام -- مثل SELECT local Query = dbQuery ( test_db, "SELECT * FROM table_name WHERE name=?", 'Wifi' ) -- كذا مابيصير شيء -- لازم تستعمل -- dbPoll او -- dbFree local Result = dbPoll ( Query, -1 ) -- كذا بتقدر تستفيد من النتيجة -- مع الأفتراض انه عند تحديد قيمة وايفاي وتحديد number -- بيطلع 10 outputChatBox( tostring( Result["number"] ) ) --[[ بيطلع : 10 ]] -- ولو جربنا كذا local Result = dbFree ( Query ) outputChatBox( tostring( Result["number"] ) ) --[[ بيطلع : خطأ , لان dbFree بترجع true او false ]] شرح الأخ .. # @iMr.WiFi..!2 points
-
Peaky Blinders <3 Arrow Lost Breaking Bad Agents Of Shield Power The Flash Homeland2 points
-
2 points
-
Vice City Roleplay is an entirely new roleplaying experience made completely from scratch utilizing MTA's latest script features in currently in Closed Beta. Our service exhibits a wide array of features, ranging from common functionalities such as factions and vehicle dealerships to a unique vehicle sound system based off of RPM with manual and automatic gear shifting or a slot based inventory system. The server is set in current day Vice City and due to the entire map being hosted on the server, players can connect and play without having to install a single client-side modification. The server tailors to your needs by giving players the ability to adjust the object streaming distance to their own preferences. The core features are listed below: Roleplay in Vice City. An entirely new script: Scripted from the ground up. Multi-faction system: Players can be in 3 factions at the same time, whilst each faction provides 5 sub-divisions. Unrestricted faction ranks: Each member of a faction can have a unique rank set to them. Jobs-system: Players can make money in a simple way by working jobs, such as thrash masters or taxi drivers. Business-system: Players can start their own business and link jobs to them, meaning you can hire people to your business as thrash masters who will collect garbage. A slot-based inventory-system. Makes players able to expand their inventories using backpacks, which they can drop on the ground whilst the contents of it save. A right click menu allows players to interact with the objects in their inventory such as equipping different types of body armor. A Health System that calculates damage and simulates pain, and bleeding effects based off of the type of injuries such as cuts, blunt trauma, and even the caliber of a bullet. A Suppression system which makes firefights even more intense and realistic. An in-depth weapon-system which utilizes an entire library of firearms, magazines, and calibers where firearms can be named after real-life counterparts and will be displayed using the correct image in the inventory. Magazine compatibility checks ensure that the correct magazines can only be used in compatible weapon systems. Interior System: Enter interiors without delay or lag, even when entering interiors located in San Andreas. Or create your own using our Interior Builder. Place each wall or floor individually and in different sizes, making the perfect interior for your character. Furniture System: After you purchase or create your own interior, you can purchase furniture and model your home to your own liking. Texture System: Makes players able to texture anything from a Wall, Floor, Couch or Television, using a library provided by the server, or their own by simply putting in a link. A Vehicle System that uses custom vehicle sounds and calculates RPM, allowing cars to use any sound in our library independently whilst also giving players to option to purchase automatic or manual transmission vehicles. An MDC System that integrates both a dispatch and a web-interface, allowing easy callsign distribution, dispatching and accessing of reports. As states the features listed above are our core systems, meaning there's much more for players to enjoy and much more will be added as the server development progresses. Below you can go through some of our media and updates released in the past. Vice City Roleplay Teaser #1 Interior Building Timelapse Teaser #2 Sale Rules & Information Private Message Offers Only (@Dias) Payments by PayPal No maintenance contracts Full Game mode & Database structure are included in this sale1 point
-
[EUROPE]The Walking Dead DayZ[INTERNATIONAL] SERVER STATUS : ONLINE SERVER IP : mtasa://144.76.68.79:22513 Everybody is wellcome!! Features: English Group System Zombie System Helmet and armor protection International BASES & FREE BASES FOR 5 MEMBERS NO LAG Staffs: Admin: BlueBoy Server needs couple moderators. _________________________________________________________________________________________________________________________________________________________________________1 point
-
ok, i understand now) Replace this part if seat ~=1 then with this if seat == 0 then1 point
-
Da pra fazer tudo client-side. Basta você setar uma data no jogador quando ele clica no botão e depois tirar essa data quando ele clica novamente. Enquanto ele estiver com essa data ("protegido") ele estará protegido. local x, y = guiGetScreenSize () buttonPro = guiCreateButton (x/2, y/2, 80, 25, "Proteção", false) -- Botão de exemplo. addEventHandler ("onClientGUIClick", buttonPro, function () -- Executa essa função ao clicar no buttonPro. if not getElementData (localPlayer, "protegido") then -- Se o jogador não está protegido, então: setElementData (localPlayer, "protegido", true) -- Torna o jogador protegido. outputChatBox ("Você está protegido.", 0, 255, 0) else -- Se o jogador está protegido, então: setElementData (localPlayer, "protegido", false) -- Torna o jogador desprotegido. outputChatBox ("Você está desprotegido.", 255, 0, 0) end end, false) addEventHandler ("onClientPlayerDamage", getRootElement(), function () -- Protege o jogador contra danos se ele estiver com data "protegido". if getElementData (source, "protegido") then cancelEvent() end end) addEventHandler ("onClientPlayerStealthKill", localPlayer, function (targetPlayer) -- Protege o jogador contra a facada mortal se ele estiver com data "protegido". if getElementData (targetPlayer, "protegido") then cancelEvent() end end)1 point
-
1 point
-
1 point
-
TeaEncode returns a base64 representation of the encoded payload that's about 33% inflated in size from the original text. When dealing with DFFs or other binary, TeaEncode needs a base64 encoded input, a ~33% larger input. The output size with base64'd input is ~76.89% larger. encodeString doesn't base64 the output nor does it need the input to be base64'd, and seems to return a barely inflated output; Specifically, 100.00168517551% of the original size in my quick test using a vehicle model DFF for input.1 point
-
1 point
-
--==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==- addEvent("ativado", true) addEvent("desativado", true) addEventHandler ("ativado", getRootElement(), function() addEventHandler ("onClientPlayerDamage", getRootElement(), cancelEventEvent) end) --==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==- addEventHandler ("desativado", getRootElement(), function() removeEventHandler ("onClientPlayerDamage", getRootElement(), cancelEventEvent) end) --==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==- function cancelEventEvent () cancelEvent() end Utiliza essa função no client,agora só pegar triggerClientEvent e puxar pro server.1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
iZombie انصحك به مسلسل زومبي البطله فيه زومبي شي خيالي المسلسل 4 مواسم + الموسم الخامس هينزل بعد كم شهر عن نفسي خلصت الـ4 اجزاء 4 مرات و داخل في المره الخامسه1 point
-
1 point
-
https://up.top4top.net/downloadf-958j723f1-zip.html تحياتي لك اخوك MR.TOUNSI1 point
-
حط اكواد هونا <> جنب سمايل اخوي ارفعلي المود من top4top1 point
-
شغلي كذا حب مافي ازعاج المهم انت لو تبي مساعده سويلي تاغ1 point
-
1 point
-
MapEditor - ذا للإيديتور الخاص بالمابات raceACLGroup - قيم مود الريس زبدة الموضوع لا تحذفها وخلاص, ممكن بالمستقبل تحتاجها ولا شيء ويبي لها مشوار عشان ترجعها1 point
-
بيكي بلايندرز ادمان مو مسلسل, تفرجته مرتين وقاعد افكر اتفرجه مرة ثانية والله يعافيك1 point
-
1 point
-
1 point
-
oh, you can use setElementData to connect cars with faction. I also added car spawn. local policeVehicles = { {597, -1594.15295, 674.24622, 7.18750, 92.063659667969}, } local police = "Police" -- name of your faction addEventHandler("onResourceStart",resourceRoot,function() for _, v in ipairs(policeVehicles) do local veh = createVehicle(v[1],v[2],v[3],v[4],0,0,v[5]) -- spawn a car setElementData(veh,"carFaction",police) -- set car's faction end end) function vh ( player, seat ) if seat ~=1 then -- allow to sit only next to the driver if getElementData(source,"carFaction") == police then -- check car if getElementData(player,"faction") ~= police then -- check player cancelEvent() outputChatBox ( "#ffff00your are not in police department faction", player,240,155,15,true) end end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), vh )1 point
-
ترا اصلا ما تهمني اللايكات ترا ما بتاخذ فيها مشرف مثلا تشوف عبد الكريم وماستر شوف لايكاتهم وما اخذو شي ترا مالها فايدة1 point
-
1 point
-
اول شئ انتا مكرر الموضوع مرتين @!#NssoR_) ثاني شئ هنا انتا تطرح اكوادك ونساعدك ما ينفع تطلب ان احنا نسويلك1 point
-
1 point
-
Não acredito que não vi essa função. Estava me quebrando todo para descobrir como fazer isso. Eu já tinha descoberto que precisava trabalhar com tangente mas estava com problemas para converter o valor obtido em graus. Eu só havia feito isso até então: function lookAt (theSource, target) if isElement (theSource) and isElement (target) then local px, py = getElementPosition (theSource) local tx, ty = getElementPosition (target) local relatedAngle = math.atan2 (px - tx, py - ty) if (relatedAngle < 0) then relatedAngle = relatedAngle + 360 elseif (relatedAngle > 360) then relatedAngle = relatedAngle - 360 end return math.floor(relatedAngle) end end Preciso voltar a estudar mais a Wiki. Muito obrigado.1 point
-
انا عاملها مثلاً لجروب تحكم بالاسل بدل ما احطه بجروب الادمن فتحتها له تحكم بالاسل = اضافة و ازالة لاعبين من الاسل او يمكن قيم مود و في عندك اشيء كثير مثلاً ازالة الحساب و كذا كذا كذا و مو مفتوحه بالاسل و مثاقل تفتحها ف تحطها و خلاص1 point
-
1 point
-
Positions = { {1941,197.7,2352,25.9,0,0,0,1, true}, {1943,412.20001,2455.1001,15.5,0,0,90,1, false}, {1941,268.5,2396.7,25.5,0,0,0,1, true}, } addEventHandler ("onResourceStart", resourceRoot, function() for i,v in pairs ( Positions ) do assignLOD(createObject(v[1], v[2],v[3], v[4], v[5], v[6], v[7])) end end ) function assignLOD(element) local lod = createObject(getElementModel(element),0, 0 ,0, 0, 0, 0, true) setElementDimension(lod,getElementDimension(element)) setElementPosition(lod, getElementPosition(element)) setElementRotation(lod, getElementRotation(element)) setElementCollisionsEnabled(lod,false) setLowLODElement(element,lod) return lod end1 point
-
1 point
-
Because non-latent events are guaranteed to arrive in order, a side effect is that a large payload (such as a file) in such event will hang the event manager, since subsequent events need to wait and yield to this big event, so that they arrive after that big one, ensuring order. Using latent events, however, allows you to forego this guarantee, and also limit transfer rates among other things. Latent events are suited for sending over large data that isn't sync-like, such as file contents. As to fileDownload, it downloads the file as-is on the server, and at every reconnect or restart, it compares the server's hash; if the file is different on the client (outdated, for example), it will re-download; so if you encrypt the file after downloading, it's no longer identical to the server file and thus will be re-downloaded on restart. You should, as suggested above, encrypt it on the server and send to the client via a latent event, later caching the contents into some file on the client's computer. You will also need manual hash checks to make sure the client didn't replace, edit or break the file, on onClientResourceStart. Further, the loading errors are almost definitely because you did not Base64 the TEA input (required for binary data in teaEncode); preferably move towards encodeString and decodeString as these do not require Base64ing (thus lower CPU and bandwidth use). Finally, I'd ultimately recommend just pre-encryping rather than encrypting on-the-go whenever a client demands either a hash check or the encrypted contents from the server, as that causes the server becomes busy encrypting what could have just as easily been encrypted earlier.1 point
-
Use this to find out which resource is responsible: addEventHandler("onChatMessage", root, function (msg, element) if getElementType(element) == "resource" and element ~= resource then outputChatBox(getResourceName(element)) end end)1 point
-
@JeViCo Once you change the file, it is no longer valid for MTA and will be re-downloaded.(your previous problem, which is related to file security) Please show me your code. Because it looks like you either didn't close the file in time or deleted it too fast.1 point
-
1 point
-
1 point
-
السلام عليكم ورحمة الله اليوم اقدم لكم فيدو بعيد عن لعبه شخص فلسطيني عمره اقل من 11 سنه ويشوفو وش يقول وسلام1 point
-
1 point
-
طبعا كلهم مختارهم عشوائي وكلهم تقريبا اصدقائي واخوياي م عدا عبد الكريم ونصور لاكنهم ساعدوني ببدايتي بالمنتدي MyBestProgrammers = { {"#Soking"}, {"iMr.Wifi"}, {"Ahmed Ly"}, {"Default"}, {"MR.GRAND"}, {"Master_MTA"}, {"Abu-Solo"}, {"!#NssoR"}, {"MR.S3D"}, {"Killer Project"}, {"MR.StoRm"}, {"Abdul KariM"}, {"DTC12"}, {"Jupiter"}, {"xIRock"}, {"DABL"} }1 point
