Leaderboard
Popular Content
Showing content with the highest reputation on 24/08/17 in all areas
-
السلام عليكم ورحمة الله وبركاته حبيت اشرح شي مهم واعتقد فيه ناس كثيره ما تلاحظه وهو ترتيب موقع الكود طيب بدون مقدمات طويله على سبيل المثال -- client outputChatBox ( "message 1", 0, 255, 0 ) outputChatBox ( "message 2", 255, 0, 0 ) الرسالة الاولى رح تظهر اولاً ثم بعدها الرساله الثانيه طيب تعتقد هذا شي طبيعي ؟؟ عادي طيب طيب وش بالنسبه لهذا الكود -- client guiSetVisible ( window, false ) window = guiCreateWindow ( .... ) بعد الناس رح تقول ان الكود ما فيه اخطاء لكن في الواقع الكود فيه خطأين الاول وهو guiSetVisible الموجوده في window ماهي معرفه والثاني اللوحة ما رح تختفي ورح تكون ظاهره مع انك ضفت كود اخفائها طيب و التصحيح ؟ -- client window = guiCreateWindow ( .... ) guiSetVisible ( window, false ) طيب مثال ثاني -- client givePlayerMoney ( money ) money = 5000 نفس الوضع غير معرفه في البدايه money كلمه ومارح يكسب شي اللاعب طيب التصحيح -- client money = 5000 givePlayerMoney ( money ) طيب مثال اصعب -- client bindKey ( "g", "down", Bind ) function Bind () outputChatBox ( "error", 255, 0, 0 ) end الخطأ هنا كلآتي bindKey ماهو معرف في Bind اسم الفنكشن طيب التصحيح ؟ -- client function Bind () outputChatBox ( "good work", 0, 255, 0 ) end bindKey ( "g", "down", Bind ) المقصد من الموضوع هو ترتيب موقع الاكواد بحيث ان كل الاكواد تشتغل بشكل طبيعي بدون مشاكل واعتقد ان فيه بعض المبرمجين ياخذون وقت طويل في انشاء سكربت بسبب عدم ترتيب مواقع الاكواد لأن تواجهم مشاكل كثيره فـ بس هذا اللي عندي اتمنى يفيدكم والسلام عليكم ورحمة الله وبركاته1 point
-
Hello there! You found Dystopia: The Incident, an original sandbox post-apocalyptic RPG. Keep reading below and you’ll find out more... Test server: mtasa://46.105.109.59:22008 Discord: https://discord.gg/Zs5bWSX Current version: alpha 0.75, check out details here DOWNLOAD (0.75 alpha) Key concepts Food and water are scarce and you need to be on the move to stay alive. Inventory size is limited, forcing you to prioritize. Vehicles require constant maintenance. Faction camps, bases, shanty towns and other encounter zones all over San Andreas. Exploration is rewarded. World is densely populated with NPCs and who you choose to kill matters. Environment is harsh and punishes the weak and the dumb. Moral decisions to be made. End goal. Roleplay friendly. Designed to be also enjoyable as a single-player experience. Setting 2000: A series of catastrophic earthquakes smashed the cities and countryside of San Andreas. In the aftermath, the whole state found itself separated from mainland. Fear and selfishness roamed free, pushing society into chaos. In the heart of San Fierro, one of the largest cities of San Andreas, government-sponsored Zombotech Corporation was researching biological weapons in its underground facility. The labs were heavily damaged by the cataclysm and a deadly infectious agent escaped in the streets. While emergency services struggled to contain the disaster and minimize collateral damage, death was spreading unnoticed. 2001: The Establishment evacuated survivors of the outbreak in the barricaded city of Las Venturas but infection spread inside the fence. They nuked the city and placed San Andreas under strict military quarantine. Nobody gets in, nobody gets out. They dubbed the disaster ‘The Incident’ to minimize its amplitude, media soon went silent and survivors were forgotten. 2007: 6 years passed and things have not become better. Regular people picked things up from where the government left them and started to organize. This is a tough new world, populated with the full spectrum of humanity: resilient survivors, vicious bandits, cannibalistic raiders, oppressive military forces and the rest of the loons. No line between good and bad was ever so ill-defined. San Andreas is ruled with an iron hand by Governor Skinner, who took office only six days after the Incident. His armed forces fight to control the territory, herding men into the new Refugee Camp. Resources are scarce and many dropped the last remnants of morality when they faced starvation. Violent clans and factions fight over the remains, establishing turfs or just trying to stay alive. Militias fight for supremacy, idealists work to maintain civilization and everybody else just struggles to survive another day in an increasingly suffocating world. As it became evident that the government has no rescue plan for them, despair started to crumble the minds of the few sane left. All attempts to flee San Andreas are met with airstrikes. But there must be ways to escape this place... What you can experience right now Explore a detailed post-apocalyptic map with many encounter zones. Plenty of NPCs, both friendlies and baddies. Dynamic faction and spawn system. More than 40 missions already in the game. Detailed inventory with more than 100 items to be found and used. Basic needs, stamina, infection, various other modifiers like pain, bleeding, exhaustion or inebriation. Innovative looting mechanic. Four zombie types, with different behavior. Scavenge the world for materials to build settlements or to use simple crafting and cooking. Upgrade and drive rugged vehicles across the wasteland and engage in vehicular combat. Trade, recruit and discover parts of the story by chatting with NPCs. Experience dark humor and some strong themes (16+). Simple interface, consistent graphic style. What still needs to be done The current gamemode version is alpha 0.75. Required for beta: skills and abilities implementation, npc traffic, karma system and map completion (now >90%). Once the project hits beta and the core is completed we’ll start focusing exclusively on the missions and story. Seeking friends for the end of the world Want to jump onboard and take part in the development? Great, join our Discord server using the link on top (the recommended approach) or PM me here. We're always looking for like-minded developers. Wanted: scripters, mappers, storytellers, 3D artists and testers. However, keep in mind that we're not looking to monetize this project in any way. We’ve used the work of many MTA community members and the gamemode will be shared alike with the community when completed. You will gain full credit for your work but no other type of compensation. Share your thoughts We do love suggestions and implement all good fitting ones, so don’t be shy and tell us what you think about this project, using the channels highlighted above. The answer is guaranteed and we'll also give full credit for any original ideas. Media 100+ development screenshots here (I suppose this is what you were looking for from the beginning, instead of reading a wall of text) Thanks for reading! Watch this space for fresh information and media.1 point
-
hello , i have question about "%" on coding .. I use it sometimes but i didn't understand Its usefulness .. anyone can explain me what is its usefulness ?1 point
-
لاول شوف حد يصححلك بالخاص لأن المود مو حقك وتقول جديد بالبرمجة رح نوصل 4 صفحات وماتعطينا الأسطر اللي فيها أخطاء1 point
-
السلام عليكم ورحمة الله وبركاته اليوم باذن الله جايبلكم وظيفه خرافيه يب اكيد خرافيه لاني تعبت بطريقه اسويها جالس الليل كله افكر صراحه وقلت افيدكم واوفر عليكم الوظيفه اسمها copyResourceIntoResource بالظبط نفس ما في الاسم الوظيفه تسمحلك انك تنسخ مود داخل مود مب زي copyResource ابد ما تسمحلك انك تنسخ المود داخل مود اخر الزبده ما اطول عليكم واخش في السورس كود function copyResourceIntoResource(res,tores) local ta={} local conf=xmlLoadFile( ':'..res..'/meta.xml' ) local cildren=xmlNodeGetChildren(conf) local function isreg(value,msr) if #msr==0 then return false end for l,c in pairs(msr) do if c==value or (#split(c,',')>1 and split(c,',')[1]==value) then return l end end return false end for k=1,#cildren do local name=xmlNodeGetName(cildren[k]) local jj=isreg(name,ta) if jj~=false then ta[jj]=ta[jj]..','..name else table.insert(ta,name) end end fileCopy(':'..res..'/'..'meta.xml', tores..'/'..res.."/meta.xml") for k,v in pairs(ta)do local spl=#split(v,',') for m=0,spl-1 do local chil=xmlFindChild (conf,split(v,',')[1],m) local at=xmlNodeGetAttribute(chil,'src') if at then fileCopy(':'..res..'/'..at, tores..'/'..res.."/"..at) if #ta==k then xmlUnloadFile(conf) return true end end end end return false end صراحه حاولت ارتب وزي ما تشوفون انا ما اعرف ارتب الاكواد بس ارصهم ورا بعض المهم معلينا نخش بالساينتكس copyResourceIntoResource(string res,string tores) طبعا الاثنين ارقمنت الزاميين الاول اسم السكربت اللي تبي تنسخه والثاني اي مكان باي سكربت تبيه لو مثلا تبي سكربت اسمه ماستر داخل ملف 1 :master/1 كذا يصير معك نخش على الامثلة طبعا قبل ما نخش للامثله الوظيفه تنسخ المود حتى الميتا حقته واللي بيجي يقولي بتصير مشاكل 2 سكربت بنفس الاسم اقوله جرب الاول بعدين تكلم مافي اي مشاكل بتصير المهم ننتقل للامثله function backupResource (player,command,resourcetobackup) if (resourcetobackup) and (getResourceFromName(resourcetobackup)) then copyResourceIntoResource(resourcetobackup,':chatbubbles') outputChatBox ("Resource " .. resourcetobackup .. " succesfully backed up!",player,255,0,0,false) else outputChatBox ("Resource can't be backed up! (don't forget the parameters!)",player,255,0,0,false) end end addCommandHandler ("backupresource",backupResource) ملاحظه الكود سيرفر سايد ما جربته صراحه كلنت سايد وما اتوقع بيزبط اصلا بالختام عجبك لا تنسى لايك +_+ والسلام عليكم ورحمة الله وبركاته1 point
-
بسم الله وظيفة التحقق من الرققم فردي نشوف السورس كود function isNumberIndividual(num) assert(type(num)=='number','isnumberindividual expected number at argment #1 got '..type(num)) local result=(num/2) local sp=split(tostring(result),'.') if #sp>1 then return true end return false end الساينتاكس isNumberIndividual(int num) الارقمنتات المطلوبه num:الرقم اللي تبي تتحقق منه امثله outputChatBox(tostring(isNumberIndividual(10)))--->false outputChatBox(tostring(isNumberIndividual(13)))--->true في الختام اسال الله التوفيق لي ولكم1 point
-
1 point
-
--Server addEventHandler("onPlayerJoin",root, function () setElementData(source,"Serial",getPlayerSerial(source)) end ) addEventHandler("onResourceStart",root, function () for _,v in ipairs ( getElementsByType ( "player" ) ) do setElementData(v,"Serial",getPlayerSerial(v)) end end ) -- Client guiSetText(GUIEditor.label[5], "Serial : "..getElementData(localPlayer,"Serial").."")1 point
-
Mustafa asking sponsors for vps is really hard no one can sponsor you a vps that too for game servers ,I advised you to look for a correspond hosting site which offers sponsors ,next make a deal with him if you buy a vps in return you need a vps for sponsors it will work like this ,no one will sponsor you in free ! I also have my own website WWW.pirateshosting.com have 2 sponsors already host4fun &virmarch and 2 partners -Medhahost &Post4vps if you need game server sponsors I will give you free samp or MTA servers that too on TOC !1 point
-
Você quer impedir que o jogador troque de skin quando morre? Pra ele respawnar com a skin que já estava antes?1 point
-
مافهمت عليك كيف ماتحفظ اللامنت داتا بس تطلع وتدخل تروح . #Edit: تم إضافة وظيفة جديدة : getGroupDatas بإختصار ترجع لك جدول فيه الداتا الي مخزنها على القروب function getGroupDatas ( group ) if ( group and aclGetGroup ( group ) and GroupsData [ group ] ) then local datas = { } for k,v in pairs ( GroupsData [ group ] ) do table["insert"] ( datas , k ) ; end return datas end return { } end @!#NssoR_) عدل الرد لآهنت .1 point
-
NeXuS™ presents dxLib Introduction You want to work with dx functions, but you don't understand them? This is a script for you. You can create panels created by dx functions just like with GUI functions. Status IN DEVELOPMENT Sorry guys, its not finished yet, so I'm not publishing it. This is just a show off, that you'll get this in weeks. Whats done already Screenshots Syntax1 point
-
(sorry for the last 2 minutes ) Download: https://community.multitheftauto.com/index.php?p= ... ls&id=5060 I think the video tells you enough Heres the help within the tool: Please report any bugs you notice!1 point
