Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 14/07/17 in all areas

  1. السلام عليكم ورحمة الله وبركاته معليش عالجودة (النت %$#@)ء material designصممته بنمط ال البرمجة كلها بلوا 100% مافي تدخلات بلغات ثانية
    8 points
  2. كثير ناس ما حافظين الفنكشنات .. والمحرر القديم توقف الدعم له ف قررت اسوي محرر بنفسي صور من المحرر باقيلي Syntax highlighting - تلوين الفنكشنات اضافة البرامترات اضافتهن تلقائئيه كل ما تجي فنكشن جديده بالويكي بس تحدث البرنامج يجيبلك كل الفنكشنات Source code soon :3
    5 points
  3. الابداع البرمجي لدى تنطيل شكرا للرد
    2 points
  4. ي أخ كلام سري لاتفضحنا بس .. xDD ) :, بأختصار يقول : ( للافادة ) انا اشتغل على شيء يخليه يكتب البارتمرات وتلوين الفنكشنات تلقائياً وبيساعد انه يقلل من الوقت الي بستهلكه , وابحث عن طريقة لأضافة الكلمات في السينتاكس تلقائياً
    2 points
  5. مب ذكاء انك تتكلم نجليزي ممكن انا فهمتت وايفاي فهم بس مب الكل يفهم انجليزي
    2 points
  6. بسم الله الرحمن الرحيم سلام عليكم ورحمة الله وبركاتة كيف الحال ؟ ان شاء الله طيبين اليوم قررت افتح موضوع بسيط وحلو يفيد المبتدئين والمتوسطين اننا نشارك ببعض المعلومات البرمجية مع أضافة مثال كمثال : مثال آخر : واتمنى انكم تحطون معلومات مهمة مو معلومات عادية مثل وفي أمان الله
    1 point
  7. Hello everybody! I want to offer you a new language for writing scripts for MTA: SA. By the tags in the topic, you've already seen that it's Puthon 3. Many will say that Python 3 is bad for scripting, but it's not! It is similar to lua but has a wider OOP, and has the ability to connect modules. In the Internet very little material on lua, it is available but only in English, and what to do to the Russian community? The Russian segment in the MTA is very large, and lua materials are very small. Of course, the small amount of materials on the Internet for lua is not the reason for switching to Python 3. I understand that I will have to rewrite all functions from scratch, but this can prolong the life of the MTA. Python 3 is not one language that can be used as scripting under MTA: SA, there is also a wonderful language JavaScript v5. Many multiplayer use it as a language for writing scripts. This is just my opinion. I just suggested that the idea is not bad. Decide for you, dear multiplayer developers. Oh, sorry for my bad English!
    1 point
  8. DOWNLOAD: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14592 Video demonstration: Scroll with mousewheel once to switch rocket mode from default to the new missiles. I advise you to not tamper with the missile speed, as it can result in buggy hit positions.
    1 point
  9. اشهددد انك ديب يرباااااااااااه شالابداع ابدعت يلد
    1 point
  10. ماشاءالله , شغل جميل ومتعوب عليه واصــل واتمني لك الافضل
    1 point
  11. 1 point
  12. 1 point
  13. local shops = { { name ="Example Shop", x = 369.48327636719, y = -6.5628895759583, z = 1001, dim = 1, int = 9, blip = 47, type = "cylinder", size = 1, r = 203, g = 150, b = 25, a = 100 }, } function on_shop_start1() for i = 1, #shops do local theShop = shops[ i ] theShop[ "marker" ] = createMarker( theShop.x, theShop.y, theShop.z, theShop.type, theShop.size, theShop.r, theShop.g, theShop.b, theShop.a ) theShop[ "blip" ] = createBlipAttachedTo( theShop[ "markeR" ], theShop.blip ) setElementCollisionsEnabled( theShop[ "marker" ], false ) setElementInterior( theShop[ "marker" ], theShop.int ) setElementDimension( theShop[ "marker" ], theShop.dim ) end end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),on_shop_start1) function shopROB_1(source) local playercount = getPlayerCount() for i = 1, #shops do local theShop = shops[ i ] if ( theShop[ "marker" ] ) then if ( ( isElement( theShop[ "marker" ] ) ) and ( isElementWithinMarker( source, theShop[ "marker" ] ) ) and ( ( getElementType( source ) ) == "player" ) ) then if ( ( tonumber( playercount ) ) > 0 ) then setElementFrozen( source, true ) setPedAnimation( source, "rob_bank", "cat_safe_rob", 2 * 30000, true, true, true, false ) outputChatBox( getPlayerName( source ) .. " started robbing the " .. theShop[ "name" ], source, 0, 255, 0 ) setTimer( function( source, theShopID ) local theShop = shops[ theShopID ] setElementFrozen( source, false ) local random_var = math.random( 1500, 400000 ) exports.rc_core:giveMoney( source, random_var ) destroyElement( theShop[ "marker" ] ) destroyElement( theShop[ "blip" ] ) end, 60000, 1, source, i ) setTimer( function( theShopID ) local theShop = shops[ theShopID ] theShop[ "marker" ] = createMarker( theShop.x, theShop.y, theShop.z, theShop.type, theShop.size, theShop.r, theShop.g, theShop.b, theShop.a ) theShop[ "blip" ] = createBlipAttachedTo( theShop[ "marker" ], theShop.blip ) end, 1800000, 1, i ) else outputChatBox( "Not enough players!", source, 255, 0, 0, true ) end break end end end end addCommandHandler("shoprob",shopROB_1)
    1 point
  14. The error occurs because I forgot to put an if theres a marker element.
    1 point
  15. gettok تستخدم لفصل السترنج على حسب الرقم اللي تحدده و الرمز /الحرف اللي تفصل به مثال : local theString = "666, 911, 100" local result = gettok(theString,2,',') outputChatBox(result) -- 911 مثال اخر local kkk = "Why im 9 wasting 9 my time" local weeb = gettok(kkk,2,'9') outputChatBox(weeb) -- wasting
    1 point
  16. مايصير تسوي تريقر للكلنت مباشرة اذا استخدمت فنشكن 'onResourceStart' مثال : -- #Server Side : addEventHandler ( "onResourceStart", root, function ( ) for i, v in ipairs ( getElementsByType ( "player" ) ) do triggerClientEvent ( "outtt", v ) end end ) -- #Client Side : addEvent ( "outtt", true ) addEventHandler ( "outtt", root, function ( ) outputChatBox ( "Test" ) end ) بيطلع في الدي بق : ERROR : Server triggered clientside event outtt, but event is not added clientside
    1 point
  17. كان عنده قوس زائد ماستر جرب : exports["dxmessages"]:outputDx ( plr, "[ " .. i .. " ] " .. getPlayerName ( plrsz [ i ] ), "info" )
    1 point
  18. جرب plrsz = getPlayersInMission ( ) for i = 1, #plrsz do exports["dxmessages"]:outputDx ( plr,'['..i..']'..(getPlayerName ( plrsz [ i ] ), "info" ))
    1 point
  19. It should work. local shops = { { name ="Example Shop", x = 369.48327636719, y = -6.5628895759583, z = 1001, dim = 1, int = 9, blip = 47, type = "cylinder", size = 1, r = 203, g = 150, b = 25, a = 100 }, } function on_shop_start1() for i = 1, #shops do local theShop = shops[ i ] theShop[ "marker" ] = createMarker( theShop.x, theShop.y, theShop.z, theShop.type, theShop.size, theShop.r, theShop.g, theShop.b, theShop.a ) theShop[ "blip" ] = createBlipAttachedTo( theShop[ "markeR" ], theShop.blip ) setElementCollisionsEnabled( theShop[ "marker" ], false ) setElementInterior( theShop[ "marker" ], theShop.int ) setElementDimension( theShop[ "marker" ], theShop.dim ) end end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),on_shop_start1) function shopROB_1(source) local playercount = getPlayerCount() for i = 1, #shops do local theShop = shops[ i ] if ( theShop[ "marker" ] ) then if ( ( isElementWithinMarker( source, theShop[ "marker" ] ) ) and ( ( getElementType( source ) ) == "player" ) ) then if ( ( tonumber( playercount ) ) > 0 ) then setElementFrozen( source, true ) setPedAnimation( source, "rob_bank", "cat_safe_rob", 2 * 30000, true, true, true, false ) outputChatBox( getPlayerName( source ) .. " started robbing the " .. theShop[ "name" ], source, 0, 255, 0 ) setTimer( function( source, theShopID ) local theShop = shops[ theShopID ] setElementFrozen( source, false ) local random_var = math.random( 1500, 400000 ) exports.rc_core:giveMoney( source, random_var ) destroyElement( theShop[ "marker" ] ) destroyElement( theShop[ "blip" ] ) end, 60000, 1, source, i ) setTimer( function( theShopID ) local theShop = shops[ theShopID ] theShop[ "marker" ] = createMarker( theShop.x, theShop.y, theShop.z, theShop.type, theShop.size, theShop.r, theShop.g, theShop.b, theShop.a ) theShop[ "blip" ] = createBlipAttachedTo( theShop[ "marker" ], theShop.blip ) end, 1800000, 1, i ) else outputChatBox( "Not enough players!", source, 255, 0, 0, true ) end break end end end end addCommandHandler("shoprob",shopROB_1)
    1 point
  20. استخدم الفنكشنات الي اعطيتك ياها
    1 point
  21. نسيت اقره القوانين المره الجايه استخدم لهجتي :3
    1 point
  22. No problem, if you want any more help contact me via, skype ( killer.68x ), email ( [email protected] ) or just by PM's
    1 point
  23. اخي العزيز يرجي منك مراجعة قوانين القسم العربي ، المناقشات الإنجليزية غير مسموح بها في هذه الأقسام بشكل عام. المشاركة بالإنجليزية في هذه الأقسام يمكن أن يؤدي إلى صدور تحذير وكما ان يمكنك التحدث باللغة العربية الفصحي ليفهمك جميع من يتحدثها وإذا كنت لاتتقن اللغة العربية الفصحي يمكنك اللجوء الي الاقسام الاجنبيه واتمني لك التوفيق
    1 point
  24. Like @IIYAMA said you must make a new melee damage in order to get to remove those limits.
    1 point
  25. What do you want being more detailed?
    1 point
  26. والله قلبتوه قسم انجليزي هنا يرجل تكلم عراقي انا احب العراقيين اصلا <3 عادي ما يهمك بنفهمك باذن الله
    1 point
  27. خلني اجرب يب معك حق ض2
    1 point
  28. impressive and useful as always i'd like to see some pics :3
    1 point
  29. Well because I'm from iraq You will have a hard time trying to understand what i wrote .. at least English is translatable اني عراقي واذا حچيت بلهجتي مراح تفهمني على الاقل الانگليزي تگدر تترجمه وتفهمه ?
    1 point
  30. How do you get this error when you haven't used that function anywhere lol? [2017-07-14 08:00:42] WARNING: BigPlaneEnter\c_bigplane.lua:2: Bad argument @ 'getVehicleName' [Expected vehicle at argument 1, got nil]
    1 point
  31. انا ماني مصدق ان صاحب المنتدى مخلي الموضوع للان !!
    1 point
  32. جميل جداً ,, أي مساعدة اطلب مني , عندي خلفية للغة ,, من الممكن ان اساعدك في أضافة البارتمرات او تلوين الفنكشنات : )
    1 point
  33. eu fiz esse comando para criar uma gang, a cor da gang será aleatoria. para mudar o preço para criar uma gang só mudar o valor em local gangCost. local gangCost = 650000 function createGang(player, commandName, commandGang, gangName) if (commandGang == "criar") then if (gangName) then if (getPlayerMoney(player) >= gangCost) then local r, g, b = math.random(0,255), math.random(0,255), math.random(0,255) local team = createTeam(gangName, r, g, b) if (team) then setPlayerTeam(player, team) takePlayerMoney(player, gangCost) outputChatBox("[GANG] "..gangName.." criada com sucesso!!", player, 0, 255, 0) else outputChatBox("Falha ao criar a gang!", player, 255, 0, 0) end else outputChatBox("Dinheiro insuficiente para criar uma gang! Valor: "..tostring(gangCost).." !", player, 255, 0, 0) end else outputChatBox("Digite o nome da gang. Exemplo: /gang criar GroveStreet", player, 255, 0, 0) end end end addCommandHandler("gang", createGang) script server side. Espero ter ajudado.
    1 point
  34. Then, juste trigger the function bindKey clientside from serverside when the player login onPlayerLogin triggerClientEvent
    1 point
  35. جرب عدلت الوظيفة وضفت لها كم شي : local marker = createMarker ( 2488.88281, -1675.15833, 13.33595, "cylinder", 1.5, 255, 255, 255, 255 ) plrs = { } function setPlayerInMission ( plr ) if ( isElement ( plr ) and ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, "MissionR" ) == true ) ) then table.insert ( plrs, plr ) end end function getPlayersInMission ( ) return plrs end function isPlayerInMission ( num, plr ) if ( isElement ( plr ) and ( getElementType ( plr ) == "player" ) ) then if ( num == 2 ) then if ( getElementData ( plr, "MissionR" ) == true ) then return true else return false end else if ( num == 1 ) then if ( getElementData ( plr, "MissionP" ) == true ) then return true else return false end end end end end function endRace ( plr ) if ( getElementData ( plr, "datap" ) == true ) then setElementDimension ( plr, 0 ) setElementPosition ( plr, 2486.92505, -1665.90735, 13.34375 ) exports["dxmessages"]:outputDx ( plr, " The mission end and the winner is : " .. getElementData ( root, "Winner" ), "info" ) setElementData ( plr, "datap", false ) destroyElement ( marker1 ) plrs = { } end end addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( source == marker ) and ( getElementType ( player ) == "player" ) then if ( isPlayerInMission ( 1, player ) == true ) then exports["dxmessages"]:outputDx ( player,"Hi "..getPlayerName(player).." #FFFFFFthe mission not started yet", "error" ) else if not ( isPedInVehicle ( player ) ) then exports["dxmessages"]:outputDx ( player, "this join was mission , Good Luck", "success" ) setElementData ( player, 'MissionR', true ) setElementData ( player, 'MissionP', true ) setPlayerInMission ( player ) end end elseif ( source == marker1 ) and ( getElementType ( player ) == "player" ) then setElementData ( root, "Winner", getPlayerName ( player ) ) for i, v in ipairs ( getElementsByType ( "player" ) ) do endRace ( v ) plrs = { } end end end ) function openMission ( ) for _ ,plr in ipairs ( getElementsByType ( "player" ) ) do exports["dxmessages"]:outputDx ( plr, "the mission will start after 5 seconds", "info" ) setElementData ( plr, 'MissionP', false ) if ( isPlayerInMission ( 2, plr ) == true ) then marker1 = createMarker ( -2662.63989, 1175.23840, 55.42969, "cylinder", 1.5, 255, 255, 255, 255 ) setElementDimension ( plr, 100 ) setElementDimension ( marker1, 100 ) setElementPosition ( plr, -2690.51367, 1289.90479, 55.42969 ) setElementFrozen( plr, true ) setTimer ( function ( ) setElementData ( plr, 'MissionR', false ) setElementFrozen ( plr , false ) setElementData ( plr, "datap", true ) exports["dxmessages"]:outputDx ( plr, "the mission was stated", "info" ) exports["dxmessages"]:outputDx ( plr, "Players in the mission :", "info" ) plrsz = getPlayersInMission ( ) for i = 1, #plrsz do exports["dxmessages"]:outputDx ( plr, getPlayerName ( plrsz [ i ] ), "info" ) end end , 5000, 1 ) end end end addEventHandler ( "onResourceStop", resourceRoot, function ( ) for _ ,plr in ipairs ( getElementsByType ( "player" ) ) do setElementData ( plr, 'MissionP', false ) setElementData ( plr, 'MissionR', false ) end end ) addCommandHandler ( "Start", function ( ) openMission ( ) end )
    1 point
  36. You can't understand that the script overwrites/re-sync the melee damage that is given to peds by players? If that is not what you want, then indeed there is no possible way to help you.
    1 point
  37. طيب وش هو getPlayerTable هل هو فنشكن مفيد ولا انت جايبنه كذا وليش حاط جدول في البداية دامك ماستخدمته + في حدث الماركر الثاني للحين ماستخدمت if source يعني بتصير الفنكشنات ع كل الماركرات #Edit: مثال جرب كذا : local marker = createMarker(2027.60059, 1007.15759, 10.82031,'cylinder',2,0,255,0,150) function getPlayersInMission ( plr ) local plrs = { } if ( isElement ( plr ) and ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, "MissionR" ) == true ) ) then table.insert ( plrs, plr ) end return plrs end function isPlayerInMission ( num, plr ) if ( isElement ( plr ) and ( getElementType ( plr ) == "player" ) ) then if ( num == 2 ) then if ( getElementData ( plr, "MissionR" ) == true ) then return true else return false end else if ( getElementData ( plr, "MissionP" ) == true ) then return true else return false end end end end addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( source == marker ) and ( getElementType ( player ) == "player" ) then if ( isPlayerInMission ( 1, player ) == true ) then exports["dxmessages"]:outputDx ( player,"Hi "..getPlayerName(player).." #FFFFFFthe mission not started yet", "error" ) else if not ( isPedInVehicle ( player ) ) then exports["dxmessages"]:outputDx ( player, "this join was mission , Good Luck", "success" ) setElementData ( player, 'MissionR', true ) setElementData ( player, 'MissionP', true ) end end end end ) function openMission ( ) for _ ,plr in ipairs ( getElementsByType ( "player" ) ) do exports["dxmessages"]:outputDx ( plr, "the mission will start after 5 seconds", "info" ) setElementData ( plr, 'MissionP', false ) if ( isPlayerInMission ( 2, plr ) == true ) then setElementDimension ( plr, 100 ) setElementPosition ( plr, -2690.51367, 1289.90479, 55.42969 ) setElementFrozen( plr, true ) setTimer ( function ( ) setElementData ( plr, 'MissionR', false ) setElementFrozen ( plr , false ) exports["dxmessages"]:outputDx ( plr, "the mission was stated", "info" ) exports["dxmessages"]:outputDx ( plr, "Players in the mission :", "info" ) exports["dxmessages"]:outputDx ( plr, #getPlayersInMission ( plr ), "info" ) end , 5000, 1 ) end end end طبعا لازم اذا تبي تشغل الوضيفة تسوي كذا مثلا addCommandHandler ( "Start", function ( ) openMission ( ) end )
    1 point
  38. بعيدا عن الاكواد في شوية خبصات في الاكواد و بعض الفنكشنات getPlayerTable -- ? onMarkerHIT = onMarkerHit if source == marker then exports["dxmessages"]:outputDx(player,"Hi "..getPlayerName(player).." #FFFFFFthe mission not started yet","error") if ( Mission == 'false' ) then return -- هنا اتوقع انك تبي اذا راح للماركر والمهم ما بدأت يطلعله كذا وانت حاط الكلام قبل التحقق ^ -- + ماليه داعي تكرر حدث onMarkerHit تقدر تختصر addEventHandler('onMarkerHIT',root,function (aPlayer) -- ولاحظت في هذا الحدث انك حاط روت يعني لكل الماركرات بسبب انك ماحطيت if source ^ -- يعني الفنكشنات بتصير ع اي ماركر تروح له function openMission (player) thetimer = setTimer(function() exports["dxmessages"]:outputDx(player,"the mission started","success") Mission = "true" end , 5000 , 1 ) end) -- وعندك في هالحدث قوس زايد ^ addEventHandler('onMarkerHIT',root,function (aPlayer) if getElementType (aPlayer) == 'player' and not isPedInVehicle (aPlayer) then if Mission == false then return end exports["dxmessages"]:outputDx(aPlayer,"the mission was closed","info") if ( Mission == 'true' ) then setElementDimension ( aPlayer, 100 ) setElementPosition(aPlayer,-2690.51367, 1289.90479, 55.42969) exports["dxmessages"]:outputDx(player,"this join this mission , Good Luck","success") setElementFrozen(aPlayer,true) setElementData(player,'missionR',true) setTimer ( function () Mission = false for _ , plr in ipairs ( getElementsByType ( "player" ) ) do if getElementData ( plr , "MissionR" == true) then setElementFrozen ( plr , false ) exports["dxmessages"]:outputDx(player,"the mission was stated","info") end end end , 5000, 1 ) end end end ) -- وهنا player مو معرفة ^ -- والخ
    1 point
  39. وعليكم السلام وش تبي تسوي بالضبط ؟
    1 point
  40. انا ببساطة بنكر هالكلام .. السالفة ومافيها : انه السيرفر ذا خدعني ونصب فيني بسبب شيء تافهة .. قبل انا دفعت حوالي 20 دولار عشان مقر تمام .. بسبب وعد لصديقي ثم قلت لهم حولت لهم الفلوس وكلشيء عشان يسوي المقر جا قال انك ماحولت شيء وصورت وكل شيء وقال كذب ونصب .. بعدها بشويات يوم دخلت السيرفر عشان اكلمهم صكوني بان .. ووش سويت انا قفلت حسابهم بالبايبال بشكوى , مدري لو رجع او لا هذا السيرفر مايهمني ابد ولا اني طاق له هم , بس احذركم من الي صار لي .. بس حسبي الله ونعم الوكيل ما راح اسامحكم ابد
    1 point
  41. The crash is related to sound, it can be your modded GTA sound files but we're first going to try drivers for your audio devices. Your sound and recording/audio equipment is quite complicated and this setup may cause the issue, I did some research on these devices and trust me the following drivers are appropiate. It would be better though if you used an PC not attached to a whole mixing/recording suite, as we might not be able to locate the problem source. What I can see that atleast one driver of these devices uses a Windows 7 driver. (for which a more recent version is also below) Download and install: 1) http://12244.wpc.azureedge.net/8012244/drivers/rtdrivers/pc/audio/0008-64bit_Win7_Win8_Win81_Win10_R281.exe 2) https://pdj-ecom-cdn.azureedge.net/-/media/pioneerdj/downloads/drivers/ddj-rx/ddjrxdriver1100exe.zip (or try disconnecting this device for a while) 3) https://www.dropbox.com/s/q5ubyykeg1n5lj7/VBCable_drivers.zip?dl=1 (update Win7 driver of VoiceMeeter Input (VB-Audio Virtual Cable) 4) https://download01.logi.com/web/ftp/pub/techsupport/gaming/LGS_8.94.108_x64_Logitech.exe (trying to get rid of the generic USB audio driver) 5) http://download.steinberg.net/downloads_hardware/Yamaha_Steinberg_USB_Driver/PC/1.9.10/YSUSB_V1910-2_Win.zip 6) http://tippach.business.t-online.de/asio4all/downloads_11/ASIO4ALL_2_13_English.exe After updating with all of the above drivers, if it still doesn't fix your crash, perform a clean GTA SA install without any modded files, especially not modded audio files. @Blizzar
    1 point
  42. Não existe. Vc terá que criar um próprio. Evite de ficar criando vários posts com assuntos parecidos.
    1 point
  43. Do you mean your server stops once you close the SSH console (e.g. putty)? If so, you'd have to use either screen (https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/) or deploy a systemd service (https://wiki.archlinux.org/index.php/systemd).
    1 point
  44. مبروك عليكم الاقسام الجديدة
    1 point
  45. لا تفقد الأمل وثق بربك , فربك هو الرحمن الرحيم brb forever 2012 - 2017
    1 point
×
×
  • Create New...