Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 16/06/18 in all areas

  1. Provavelmente o erro está no seu painel de login. Procure no script client essa linha: addEvent ("hideLoginWindow") E coloque um true no segundo argumento. addEvent ("hideLoginWindow", true) Se tiver um false no segundo argumento, substitua o false pelo true.
    1 point
  2. addEvent ( string eventName [, bool allowRemoteTrigger = false ] ) O segundo argumento do evento está definido como false. Significa que o evento só vai poder ser chamado no próprio lado.
    1 point
  3. local s = 'v a l a l' local k = 2 print(s:gsub('%s', '', k))
    1 point
  4. Troque a linha inteira do outputServerLog por isso: outputServerLog (getPlayerName(player)..": Limpou o chat!")
    1 point
  5. الحلول كثيرة بالنسبة لي افضل حل يكون فيه جدول , وكل مايدخل لاعب تسوي لوب على عدد الاعبين وتحط لكل لاعب ايدي خاص مثال وتتحقق number = { } if not number [ i ] then number [ i ] = source end وتسوي داتا على الاعب برقم الايدي حقه وبس يطلع الاعب تجيب الداتا وتخلي قيمة الرقم غير معرفة مثل number [ getElementData ( ... ) ] = nil هذي اساسيات من الفكرة موب كاملة
    1 point
  6. https://tapleto-host.net/ar/ عندي سيرفر هناك صار له سنة و 100 ال 100 @TAPL صاحبها
    1 point
  7. اقصد كـ رأي ما اتوقع انها بتسوي مشاكل لأن جميع العمليات رح تكون على الحاسب الشخصي فقط وما استعملت الجداول لأن الكود رح يكون اكبر ولو لاحظت ( موجود جدول بالفعل بس نسيت ازيله ) لكن انا افضل استعمال الداتها لسهولتها
    1 point
  8. انا معطيك مثال موب كود كامل هذا جزء بالنسبة اذا تبي تغير الرقم تسوي متغير يزيد مع كل لاعب يدخل + جرب بنفسك وحاول تصلح الخطأ انت جاي تتعلم موب تاخذ وتمشي بالتوفيق
    1 point
  9. Yes. More custom fonts use more video memory. But I've never been watching this. In negligible part. I'm paying attention to not creating multiple fonts in a Resource. Example: In the resource folder I create a fonts.lua (client) file. And I create the dxfont only here and I can use this custom font in every client file.
    1 point
  10. if attacker and getElementData(attacker, "1shot") == true ) then
    1 point
  11. myString = " How Are You" repStr = string.sub ( myString,2 ) print ( repStr ) طبعا لو فيه اكثر من مسافة ببداية السترنق غير رقم 2 ل 3 او 4 ع حسب المسافات
    1 point
  12. مسافات وش ؟
    1 point
  13. function cl_RemoveVehicleOwner ( theVehicle ) if isElement (theVehicle) then local theOwner = getElementData ( theVehicle, "cl_vehicleowner" ) if ( theOwner ~= false ) then removeElementData ( theOwner, "cl_ownedvehicle" ) removeElementData ( theVehicle, "cl_vehicleowner" ) removeElementData ( theVehicle, "cl_vehiclelocked" ) removeElementData ( owned, "cl_enginestate" ) end setVehicleLocked ( theVehicle, false ) end end
    1 point
  14. function cl_RemoveVehicleOwner ( theVehicle ) if not (theVehicle) or getElementType(theVehicle) ~= "vehicle" then return end local theOwner = getElementData ( theVehicle, "cl_vehicleowner" ) if ( theOwner ~= false ) then removeElementData ( theOwner, "cl_ownedvehicle" ) removeElementData ( theVehicle, "cl_vehicleowner" ) removeElementData ( theVehicle, "cl_vehiclelocked" ) removeElementData ( owned, "cl_enginestate" ) end setVehicleLocked ( theVehicle, false ) end Se esses erros não tiverem afetando o funcionamento do script, não é obrigatório corrigir, menos que esteja te incomodando no debug.
    1 point
  15. Java for android C# for android , windows and IOS swift for IOS كل لغه فيها مميزات وسلبيات لكن انا ابرمج بأستخدام الجافا
    1 point
  16. @hawkbr Realmente não era pra ter mostrado só essas mensagens no chat sem ter algum erro no script. Pode ter um erro no trecho da tabela BlipsMEC, essa tabela tá definida no script? Seria mais fácil postar o código inteiro, poderíamos ter resolvido faz tempo sem ter que ficar olhando pra pequenas partes do código. Fica a seu critério mandar o código pra alguém em privado ou não. Acho que faltou uma explicação do que vocês de fato querem fazer com essa marcação, mecânico, etc. O destroyElement(BlipsMEC[theUser]) vai remover o blip do jogador sem erros, o problema como eu já disse pode estar em outra coisa.
    1 point
  17. Realmente, é um pequeno problema, porém deve ser reportado !
    1 point
  18. Deve-se encaminhar o problema para o pessoal do MTA. Resources nativos não devem ter esses pequenos problemas. No meu eu coloquei assim: setTimer (kickPlayer, 100, 1, player, string.gsub(getPlayerName (source), "#%x%x%x%x%x%x", ""), mdata) Sem erros.
    1 point
  19. السلام عليكم ورحمة الله وبركاته guiFadeElement لكن بشكل مختلف guiSetVisible الوظيفة تشبه انا ما ادري اذا احد مسوي الوظيفة قبل او لا بس سويت نسخة تجريبية - ان شاء الله ما فيها مشاكل - والوظيفة عبارة عن تقليل او زيادة الشفافية لعنصر معين من عناصر التصميم GUI الكود الاساسي function guiFadeElement ( element, boolean, time, inOut ) if isElement ( element ) ~= true or type ( boolean ) ~= "boolean" then return false end guiSetEnabled ( element, boolean ) if type ( fadeTable ) ~= "table" then fadeTable = {} end if getElementData ( element, "real.alpha" ) == false then setElementData ( element, "real.alpha", ( ( guiGetAlpha ( element ) / 1 ) * 255 ) ) end if guiGetVisible ( element ) == false then guiSetAlpha ( element, 0 ) end local remove = function ( element ) if isTimer ( getElementData ( element, "gui.timer" ) ) then killTimer ( getElementData ( element, "gui.timer" ) ) end end remove ( element ) local execute = function ( element, boolean, inOut ) if boolean == false then guiSetAlpha ( element, ( ( ( guiGetAlpha ( element ) / 1 ) * 255 ) - ( inOut or 25 ) ) / 255 ) if ( ( guiGetAlpha ( element ) / 1 ) * 255 ) <= 5 then remove ( element ) guiSetAlpha ( element, 0 ) guiSetVisible ( element, boolean ) end elseif boolean == true then guiSetVisible ( element, boolean ) guiSetAlpha ( element, ( ( ( guiGetAlpha ( element ) / 1 ) * 255 ) + ( inOut or 25 ) ) / 255 ) if ( ( guiGetAlpha ( element ) / 1 ) * 255 ) >= tonumber ( getElementData ( element, "real.alpha" ) ) then remove ( element ) guiSetAlpha ( element, getElementData ( element, "real.alpha" ) / 255 ) end end end guiTimer = setTimer ( execute, ( time or 50 ), 0, element, boolean, inOut ) setElementData ( element, "gui.timer", guiTimer ) end التركيبة guiFadeElement ( element guiElement, true / false[, speed 50:unlimited, decrease rate 1:255] ) مثال بسيط button = guiCreateButton(50, 50, 150, 50, "killerProject", false) function test () guiFadeElement ( button, not guiGetVisible ( b ) ) end setTimer ( test, 1*1000, 0 ) احس اني ما اعطيت الكود حقه في البرمجة واللي يبي يعدل على الكود ما فيه مشاكل لأني صراحة شايفه كبير شوي
    1 point
  20. اترك نظام تستقعد له . انت تشوف ماله استعمال غيرك يشوف له استعمال . يعني لآتدور المشاكل مع الرجال . لو بينكم شي ومشاكل مو تجي هنا تطلع حرتك ؟ قدر واحترم اللي يقرون الموضوع كذا غلطت عليه وغلطت علينا . بكل موضوع هو يعلق اشوفك بذا الحساب او حسابك الثاني تدور معه مشاكل خلك رجل !
    1 point
  21. عادي تقدر تضيف كولمن ثاني فيه الاسعار ولما يشتري يجلب له السعر من الكولمن ؟ صعبه
    1 point
  22. Ele não editou a resource, isso é um warning nativo da propria resource, a solução é: setTimer ( kickPlayer, 100, 1, player, (getElementType(source) = "player") and source or "Console", reason ) Igual o DNL disse, esse warning causa quando você tenta kikar alguém pelo console!
    1 point
  23. السلام عليكم ورحمة الله وبركاته اليوم رجعتلكم بوظيفة بسيطة وجديدة guiGridListAddWeapons من اسم الوظيفة واضح وهي عبارة عن اضافة اسماء الاسلحة لجريد ليست نروح للجملة التركيبية Syntax bool guiGridListAddPlayers ( element gridList, int columnIndex ) gridlist : الجريد ليست حقتك columnIndex : الكولمن حقك سورس كود : function guiGridListAddWeapons(gridlist, column) if( getElementType( gridlist ) == "gui-gridlist" ) then guiGridListClear(gridlist) for i=1,40 do local row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, row, column, getWeaponNameFromID(i), false, true) end end end مثال : local screenW, screenH = guiGetScreenSize() gridweapon = guiCreateGridList((screenW - 221) / 2, (screenH - 309) / 2, 221, 309, false) guiGridListAddColumn(gridweapon, "#", 0.9) guiSetVisible(gridweapon, false) function guiGridListAddWeapons(gridlist, column) if( getElementType( gridlist ) == "gui-gridlist" ) then guiGridListClear(gridlist) for i=1,40 do local row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, row, column, getWeaponNameFromID(i), false, true) end end end bindKey("F2","down", function( ) if ( guiGetVisible(gridweapon) == false ) then guiSetVisible(gridweapon, true) showCursor(true) guiGridListAddWeapons(gridweapon, 1) else guiSetVisible(gridweapon, false) showCursor(false) end end) النتيجة أتمني تكون اعجبتكم ويلا مع السلامة
    1 point
  24. Tenta substituir essa linha com isto: setTimer ( kickPlayer, 100, 1, player, (getElementType(source) = "player") and source or "Console", reason )
    1 point
  25. قل والله ؟؟؟؟؟؟؟؟؟ظ؟؟
    0 points
×
×
  • Create New...