Leaderboard
Popular Content
Showing content with the highest reputation on 24/08/18 in all areas
-
كيف حالكم عساكم بخير , مثل ماهو واضح بالعنوان سويت سكربت بسيط تستفيدون منه مع وظائف مفيدة السكربت مسويه من شهر ونص تقريبا وحبيت اليوم اطرحه xml وهو بديل للسكل لكن يحفظ المعلومات في ملف ونخش على الوظائف لكن حبيت افصل الوظائف عشان تكون سهلة الاستخدام وماتلخبط executeSQLQuery طبعا اقدر ادمجهم بوظيفة وحده مثل ملاحظة جميع الوظائف استخدامها يكون في السيرفر سايد والسكربت مشفر فقط لحفظ الحقوق https://up.top4top.net/downloadf-968v8aeg1-zip.html : الرابط طبعا سويت سكربتين واستخدمت اغلب الوظائف فيهم السكربت الاول عبارة عن رسالة ترحيب تحطها بنفسك وبس تدخل السيرفر تظهر لك طريقة الاستخدام موضحة في السكربت https://up.top4top.net/downloadf-968zk7wb2-zip.html : الرابط السكربت الثاني عبارة عن اي كلمة تكتبها بالشات راح يحفظها وتقدر تتحكم وطريقة الاستخدام موضحة في السكربت https://up.top4top.net/downloadf-968jcuf83-zip.html: الرابط ملاحظة : ملف الاكس ام ال راح يكون سيرفر سايد بمعنى انه ماراح يظهر للاعب الي يدخل السيرفر او الى اخره الملف بيظهر في مجلد السكربت فقط يعني كأنك مسوي داتا بيس خاصة ماراح تظهر الا بالسكربت اي استفسارات او ملاحظات حط ردك تحت , اتمنى السكربت نال اعجابكم ولاتنسونا من صالح دعائكم وهذا والله اعلم , والسلام عليكم ورحمة الله وبركاته4 points
-
2 points
-
2 points
-
moveElement وظيفة تحريك الالمنت عن طريق انشاء اوبجكت ولصقه بالالمنت وتحريك الاوبجكت Syntax : bool moveElement ( element theElement , int time, float targetx, float targety, float targetz, [ float moverx, float movery, float moverz, string strEasingType, float fEasingPeriod, float fEasingAmplitude, float fEasingOvershoot ] ) بشرح اهم الارقمنتات theElement : الالمنت الذي تريد تحريك time : الوقت ليصل الالمنت في الاحداثيات المحددة targetx targety tagetz : الاحداثيات المراد توصيل الالمنت اليها moveObject وظيفة واضحة وبسيطة تركيبها تركيب source Code : local elements = { [ "player" ] = true , [ "ped" ] = true , [ "vehicle" ] = true , [ "object" ] = true , [ "weapon" ] = true , [ "blip" ] = true , [ "effect" ] = true , [ "light" ] = true , [ "camera" ] = true , [ "pickup" ] = true , [ "searchlight" ] = true } function moveElement ( theElement , theTime , tx , ty , tz , moverx, movery, moverz, strEasingType, fEasingPeriod, fEasingAmplitude, fEasingOvershoot ) local Check = not ( theElement and isElement ( theElement ) and elements [ getElementType ( theElement ) ] ) and error ( "moveElement Bad Argument 1 got ".. ( not theElement and "nil" or getElementType ( theElement ) or "nil" ) ) local objMove = createObject ( 1906 , getElementPosition ( theElement ) ) setElementAlpha ( objMove , 0 ) attachElements ( theElement , objMove ) moveObject ( objMove , theTime , tx , ty , tz , moverx, movery, moverz, strEasingType, fEasingPeriod, fEasingAmplitude, fEasingOvershoot ) setTimer ( function ( ) if theElement and isElement ( theElement ) then detachElements ( theElement , objMove ) end destroyElement ( objMove ) end , theTime , 1 ) return true end مثال -- server addCommandHandler ( "BringVehicleAtMe" , function ( player ) local randVeh = #getElementsByType ( "vehicle" ) > 0 and getElementsByType ( "vehicle" ) [ math.random ( 1 , #getElementsByType ( "vehicle" ) ) ] or false if not randVeh then return end moveElement ( randVeh , 500 , getElementPosition ( player ) ) end ) سيقوم بأحضار سيارة عشوائية قريبة منك BringVehicleAtMe عند كتابة امر اتمنى الوظيفة نالت اعجابكم وهذا والله اعلم والسلام عليكم ورحمة الله وبركاته2 points
-
2 points
-
2 points
-
Hello. This is my new custom window system with widgets. Just rewrited window system, including this custom GUI widgets: - Scroll Panes - Buttons (+ buttons with images) - Progress Bars (automatic checking for vertical or horizontal using its size, square is horizontal) - Scroll Bars (same as progress bars) - Custom Themed Edit Boxes, Memo Boxes, new widget - Number Boxes (support mouse scrolling) - Check Boxes - Combo Boxes - Tab Panel with tabs - Labels - Dialog Boxes - Tooltips - Loading Circles - Table Views (Grid Lists) Here I've just used only OOP coding style, just copy this one lua file in your projects, and start this resource automatically, because this file getting directories from main resourcename, and using files without copying. Screenshots Video: Example - Login Panel. Author - Estet (DK). Tutorial of installation: Download (GitHub) Wiki Documentation Thank you.1 point
-
السلام عليكم ورحمة الله وبركاته حبيت اشرح شي مهم واعتقد فيه ناس كثيره ما تلاحظه وهو ترتيب موقع الكود طيب بدون مقدمات طويله على سبيل المثال -- 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
-
بسم الله الرحمن الرحيم سلام عليكم ورحمة الله وبركاتة كيف الحال ؟ ان شاء الله طيبين اليوم قررت افتح موضوع بسيط وحلو يفيد المبتدئين والمتوسطين اننا نشارك ببعض المعلومات البرمجية مع أضافة مثال كمثال : مثال آخر : واتمنى انكم تحطون معلومات مهمة مو معلومات عادية مثل وفي أمان الله1 point
-
تستطيع دهس الزومبي بالمركبة تقدر تغير سرعة السيارة اللازمة لدهس الزومبي من الملف التحميل http://www.mediafire.com/file/k6dmlicks85wsp2/run_over_zombies.zip/file1 point
-
function hirsiz (player) if not isGuestAccount(getPlayerAccount(player)) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Hirsiz")) then takeAllWeapons (player ) setPedArmor (player, 0 ) giveWeapon(player,4) giveWeapon(player,22,100) setPedSkin(player, 144 ) setPlayerTeam ( player, Hirsiz ) outputChatBox("#FFFFFF[#00FF00!#FFFFFF] Hırsızlık araçları verildi.", player, 255, 0, 0, true) else outputChatBox("#FFFFFF[#FF0000!#FFFFFF] Bu komutu kullanmak için Hırsız olmanız gerekiyor.", player, 255, 0, 0, true) end end end addCommandHandler("hirsiz",hirsiz) I want the players to use this command once a minute.1 point
-
Ative a textura com o evento onPlayerJoin e desative com onPlayerQuit. Vai precisar usar triggerClientEvent.1 point
-
O floor arredonda para baixo e o ceil arredonda para cima. No exemplo: Floor: 1.276813074565884 >> 1.270000000000000 >> 1.27 Ceil: 1.276813074565884 >> 1.280000000000000 >> 1.28 Se nenhum dos dois for declarado, ele arredonda para o mais próximo, por exemplo: 1.556 >> 1.56 1.555 >> 1.55 1.554 >> 1.551 point
-
Sua função de redução está diferente da minha. Estou usando assim: function math.round (number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end E no código que está chamando o math.round, está faltando parâmetro como eu já havia mencionado da outra vez. -- Como está: math.round(tonumber(ratio[i]), 2) -- Como deve ser: math.round (tonumber(ratio[i]), 2, "floor") E a função só funciona direito client-side.1 point
-
setTimer( function () return nil end ,60000,1) Add this before "else". Im on phone srry1 point
-
No exemplo em questão ele por padrão já deixa desativado. Ele só ativa ao usar o /enable. Só adicionar uma condição que verifica se txd já existe. addCommandHandler ("ativartexturas", function () if not txd then txd = engineLoadTXD ("Diretorio da textura") engineImportTXD (txd, id) outputChatBox ("Texturas ativadas!", 0, 255, 0) else outputChatBox ("Texturas já estão ativadas!", 255, 255, 0) end end) addCommandHandler ("desativartexturas", function () if isElement (txd) then destroyElement (txd) txd = nil outputChatBox ("Texturas desativadas!", 255, 0, 0) else outputChatBox ("Texturas já estão desativadas!", 255, 255, 0) end end)1 point
-
1 point
-
1 point
-
كلمه هو انا قلتله طريقة ما فهم يمكن تشرحله انت لدخل كلمه @liwahadri1 point
-
Fiz este exemplo que você pode ativar e desativar a textura da Grove Street em seus respectivos modelos usando /enable e /disable. addCommandHandler ("enable", function () txd = engineLoadTXD ("Los Santos/lae2roadshub.txd") -- Neste exemplo, substitui a textura da Grove Street. engineImportTXD (txd, 17595, 17597, 17610, 17611, 17612, 17613) -- Aplica a textura aos respectivos objetos. end) addCommandHandler ("disable", function () if isElement (txd) then -- Se existe a textura, então: destroyElement (txd) -- Deleta a textura e volta ao original. txd = nil end end) Da mesma forma, você pode usar para ativar ou desativar texturas de lojas.1 point
-
اكلمك من جوال ما برجع للعبة الا بعد سنة دراسة#~ يمكن يقدر يساعدك مسوي شروحات دي اكس @coNolel1 point
-
function renderCountDown (text) dxDrawText("1", (screenW * 0.1596) + 1, (screenH * 0.2839) + 1, (screenW * 0.8404) + 1, (screenH * 0.4297) + 1, tocolor(0, 0, 0, 255), 4.00, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("1", screenW * 0.1596, screenH * 0.2839, screenW * 0.8404, screenH * 0.4297, tocolor(255, 255, 255, 255), 4.00, "bankgothic", "center", "top", false, false, false, false, false) end setTimer (function() addRenderEvent(renderCountDown, "onClientRender") end, 1000, 1 ) setTimer ( function() removeRenderEvent(renderCountDown, "onClientRender") end, 3000, 1 )1 point
-
لما تطلق بالسلاح راح يرتد لم اقم بالتجربة https://up.top4top.net/downloadf-965edsp61-zip.html1 point
-
1 point
-
1 point
-
@Mr.Mostafa الخطأ واضح كيف تخلي الالمنت يظهر في الشات جرب هذا وراح تعرف وش اقصد addCommandHandler("ta", function (player ) x, y, z = getElementPosition ( player ) createPickup ( x, y, z, 3, 1272, 1 ) outputChatBox("done",root,255,0,0) end ) addCommandHandler("ka", function ( ) --for i, v in ipairs( getElementsByType( 'pickup' ) ) do for i, v in ipairs( getElementsByType( 'pickup', getResourceRootElement() ) ) do outputChatBox(getPickupType ( v ),root,255,0,0) outputChatBox("donew",root,255,0,0) end end )1 point
-
عليكم السلآم , وضائف ممتازه وراح تفيد الكثير , وسكربتات مميزه , والله يوفقك اخوي عبد الكريم , واصل #1 point
-
1 point
-
1 point
-
1 point
-
outputChatBox ( "#FB00FF• You can't select weapons outside the event", 255, 255, 255, true) -- عدل هاذا الصطر الى عندك localplayer = Clinet Side source = على حسب الافنت الى بتستخدمه1 point
-
السؤال هذا انطرح 514834959621294595959520295 مره بالقسم دور وبتلاقي لو مكلف على نفسك وخاش قسم الشروحات بتحصل طلبك1 point
-
1 point
-
1 point
-
1 point
-
The resource-creator destroys all its child elements when stopped.1 point
-
1 point
-
1 point
-
سيرفر جميل و حبيته دخلته برمضان مره و حلوة المسابقات و الفعاليات بالتوفيق1 point
-
1 point
-
1 point
-
هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه صدق تعبت هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه1 point
-
1 point
-
RS:RPG (Realistic Soldiers Role-Play-Game) RS:RPG is a roleplaying themed MTA server including a lot of unique and fun features including... Gangs & turf wars. Police squads. Civilian Companies. Events. Bank robberies. Assassinations. VIP Jobs. A lot of unique donator rewards. Many G/S/C rewards. Easy start! RS:RPG concludes of a few very passionate individuals who wish to get this community to greater heights. The team is professional and work hard to keep everything working, constantly working on updates and continuing to keep people interested with fun events and a lot more things to do in-game. We would enjoy getting some new faces into the community to help us succeed, you definitely wouldn't regret playing here! We would also love to recruit new scripters for the development team as we only have one developer so if you know how to script and you're interested it would be a huge help. | | \/ If you're interested join us here - rsrpg.boards.net or mtasa://51.255.215.248:23002 For more information about the community or what we do visit our discord where we are mostly active. discord.gg/AaWQFn91 point
-
1 point
-
1 point
-
1 point
-
There's a crap ton of maps made for SA. Also converting a large map (Such as Pubgs) is a massive project that would take months to do. What you guys need to realize is that I don't want to spend every waking moment working on this crap.1 point
-
بسم الله الرحمن الرحيم سلام عليكم ورحمة الله وبركاته كيفكم شباب ان شاء الله تكونو بأتم الصحة والعافية , اليوم شباب بشرح كيف تسوي وظيفة خاصة فيك وتنشره او تصنع وظيفة مفيدة , سواءً لنفسك او للموضوع وظايف العرب المفيدة بسم الله نبدأ , : الخطوات المهمة عشان تسوي الوظيفة : 1- اسم الوظيفة يكون سهل وواضح 2- كود الوظيفة مايكون طويل جداً الا ان تطلب ذلك 3- انه الوظيفة ماتكون مكررة , 4- يكون للوظيفة فايدة معينة 5- وش الارقمنتات المطلوبة الي راح اطلبها من الشخص =[ نقطة مهمة ]= حاول ماتخلي كل شيء يعتمد على الارقمنتات 6- وش راح يرجعلي ؟ فأنت لما تسوي وظيفة ممكن تخليها ترجع boolean -- قيمة منطقية او true or false == string -- سلسلة نصية او "سلسلتك النصية" == table -- جدول 7- نتحقق انه مافي أي خطأ في الأرقمنتات عشان مايكتبله خطأ في الفنكشن طيب الحين فهمنا الخطوات بنطبقها الحين انا عندي وظيفة بسميها بأسم getPlayersOnMarker طبعاً من اسم الوظيفة يعني جلب اللاعبون الموجودون داخل الماركر طيب بنسوي الكود function getPlayersOnMarker( marker ) حطينا الارقمنت الأول والي هو الماركر احنا بنخليها الماركر المراد به جلب اللاعبون داخله طبعاً القيمة بتكون اكثر من قيمة واحدة فبنستعمل جدول طيب نكمل الوظيفة بنسوي تحقق انه الماركر موجود , وانه نوعه ماركر function getPlayersOnMarker( marker ) PlayersOnMarker = { } -- سوينا جدول if isElement( marker ) and getElementType( marker ) == 'marker' then -- سوينا التحقق -- بنكمل الكود else -- اذا ماكتمل التحقق return false -- بيرجعله فولس end -- اند للتحقق end -- اند للوظيفة تمام تحققنا طيب الحين نبي يكتبله الخطأ وش نوعه وأي ارقمنت ؟ نستعمل وظيفة error -- وظيفة موجودة بلوا تلقائياً اذا استخدمت الوظيفة هذي راح يطبع لك في الديبق + راح يرجع القيمة فولس function getPlayersOnMarker( marker ) PlayersOnMarker = { } -- سوينا جدول if isElement( marker ) and getElementType( marker ) == 'marker' then -- سوينا التحقق -- بنكمل الكود else -- اذا ماكتمل التحقق error("getPlayersOnMarker Bad Argument 1@ [ Execpted 'marker' got "..getElementType( marker ).." ]") end -- اند للتحقق end -- اند للوظيفة تمام الحين بنسوي لوب للاعبين ونسوي تحقق انه اللاعب داخل الماركر بـ isElementWithinMarker ثم نضيفه لجدول function getPlayersOnMarker( marker ) PlayersOnMarker = { } -- سوينا جدول if isElement( marker ) and getElementType( marker ) == 'marker' then -- سوينا التحقق for PlayerIndex,PlayerValue in ipairs ( getElementsByType ( 'player' ) ) do -- نسوي لوب لجميع اللاعبين , وطبعاً ذي الوظيفة ترجع القيمة لاعب if isElementWithinMarker( PlayerValue, marker ) then -- سوينا تحقق انه اللاعب في الماركر table.insert(PlayersOnMarker, PlayerValue ) -- نضيف اللاعب في الجدول end -- آند للتحقق end -- آند للوب else -- اذا ماكتمل التحقق error("getPlayersOnMarker Bad Argument 1@ [ Execpted 'marker' got "..getElementType( marker ).." ]") end -- اند للتحقق end -- اند للوظيفة تمام قربنا نخلص الحين وش بيرجع للاعب ؟ أو مستخدم الوظيفة ؟ جدول الي سويناه PlayersOnMarker نسوي بعد اللوب استرجاع للجدول ويصير بهذا الشكل function getPlayersOnMarker( marker ) PlayersOnMarker = { } -- سوينا جدول if isElement( marker ) and getElementType( marker ) == 'marker' then -- سوينا التحقق for PlayerIndex,PlayerValue in ipairs ( getElementsByType ( 'player' ) ) do -- نسوي لوب لجميع اللاعبين , وطبعاً ذي الوظيفة ترجع القيمة لاعب if isElementWithinMarker( PlayerValue, marker ) then -- سوينا تحقق انه اللاعب في الماركر table.insert(PlayersOnMarker, PlayerValue ) -- نضيف اللاعب في الجدول end -- آند للتحقق end -- آند للوب return PlayersOnMarker -- راح يرجع الجدول الي فيه اللاعبين else -- اذا ماكتمل التحقق error("getPlayersOnMarker Bad Argument 1@ [ Execpted 'marker' got "..getElementType( marker ).." ]") end -- اند للتحقق end -- اند للوظيفة كذا سوينا وظيفة خاصة فينا , اتمنى انه يكون الشرح مفهوم وواضح , أي خطأ موجود في الشرح نبهوني عليه وانا اعدله , <3 وسلام خير الختام1 point
-
1 point
