Jump to content

jafar

Members
  • Posts

    1,434
  • Joined

  • Last visited

Everything posted by jafar

  1. -- Client triggerServerEvent ( "GetData", localPlayer ); -- حطه في مكان فتح القريد ليست .. addEvent ( "ReturnData", true ); addEventHandler ( "ReturnData", root, function ( table ) guiGridListClear ( GridGList ); for i, v in ipairs ( table ) do local row = guiGridListAddRow ( GridGList ); guiGridListSetItemText ( GridGList, row, 1, tostring ( v [ "Name" ] ), false, false ); end end ); -- Server addEvent ( "GetData", true ); addEventHandler ( "GetData", root, function ( ) local GroupsList = executeSQLQuery ( "SELECT * FROM Gangs" ); triggerClientEvent ( source, "ReturnData", source, GroupsList ); end );
  2. جيب كل القروبات من قاعدة البيانات وأرسل الجدول بواسطة الترايقر للكلنت
  3. ممكن يفيدك . https://community.multitheftauto.com/ind ... ls&id=8221
  4. https://mirror.multitheftauto.com/mtasa/resources/
  5. موجود مود ف المودات الأساسية اسمه traffic , بتشوف بيدات يسوقون سيارات .
  6. function aGangChat ( aPlayer, _, ... ) local pGang = getElementData ( aPlayer, "gang" ); local pName = getPlayerName ( aPlayer ); local aText = table.concat ( { ... }, " " ); if pGang ~= "N/A" and aText ~= "" then for _, v in ipairs ( getElementsByType ( "player" ) ) do local vGang = getElementData ( v, "gang" ); if vGang == pGang then outputChatBox ( "(" .. pGang .. " Chat): " .. pName .. ": #FFFFFF " .. aText, v, 255, 255, 255, true ); end end end end addCommandHandler ( "GangChat", aGangChat ); addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "i", "down", "chatbox", "GangChat" ); end end ); addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "i", "down", "chatbox", "GangChat" ); end );
  7. غير باسوورد حسابك وكل حسابات الادمنية عندكك, احتمال يكون عندهم احد الباسووردات
  8. jafar

    طلب

    marker = createMarker ( x, y, z, "cylinder", size, r, g, b, a ); teamName = "Your Team" addEventHandler ( "onMarkerHit", marker, function ( element ) if getElementType ( element ) == "player" then if getPlayerTeam ( element ) ~= getTeamFromName ( teamName ) then killPed ( element ); end end end , false ); x, y, z = احداثياتكـ size = حجم الماركر r, g, b = ألوان الماركر a = شفافية الماركر ---------- teamName = اسم التيم
  9. getPlayerTeam - getTeamFromName
  10. car = { }; carmarker = createMarker ( x, y, z, "cylinder", 1.5, 255, 0, 0, 255 ); function d ( player ) if getElementType ( player ) == "player" then if isElement ( car [ player ] ) then destroyElement ( car [ player ] ); end if isPedInVehicle ( player ) then local vehicle = getPedOccupiedVehicle ( player ); if vehicle then destroyElement ( vehicle ); end end car [ player ] = createVehicle ( x, y, z ); warpPedIntoVehicle ( player, car [ player ] ); end end addEventHandler ( "onMarkerHit", carmarker, d ); addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( car [ source ] ) then destroyElement ( car [ source ] ); end car [ source ] = nil end );
  11. car = { }; carmarker = createMarker ( x, y, z, "cylinder", 1.5, 255, 0, 0, 255 ); function d ( player ) if getElementType ( player ) == "player" and not isPedInVehicle ( player ) then if isElement ( car [ player ] ) then destroyElement ( car [ player ] ); end car [ player ] = createVehicle ( x, y, z ); warpPedIntoVehicle ( player, car [ player ] ); end end addEventHandler ( "onMarkerHit", carmarker, d ); addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( car [ source ] ) then destroyElement ( car [ source ] ); end car [ source ] = nil end );
  12. تأكد إن انت معدل الميتا ومسوي الملف داخله بصيغة luac
  13. * وعليكمم آلسلآمم # اضافهه ع ككلام الشبابب ^ if ... then سوي تحقق ان دم اللآعبب 100 = اذ يساوي 100 م يقدر وسوي تحقق 100 < اصغغر من يققدر يسحب دمم ذذ
  14. Vehicles = { [ 429 ] = true }; -- اي دي سيارة teamName = "Grove" -- اسم التيم function enterVehicle ( thePlayer, seat, jacked ) local playerTeam = getPlayerTeam ( thePlayer ); if ( Vehicles [ getElementModel ( source ) ] ) then if playerTeam and getTeamFromName ( playerTeam ) == teamName then outputChatBox ( "اهلا وسهلا بك", thePlayer, 255, 255, 0, false ); else cancelEvent ( ); outputChatBox ( "هذه سيارة خاصة بـفريق " .. teamName, thePlayer, 255, 0, 0, false ); end end end addEventHandler ( "onVehicleStartEnter", root, enterVehicle );
  15. التعديل مابيشتغل على العصابات القديمة إذا من ملف meta.xml
  16. مكآن وضعك للتعديلات خطأ افتح الفري روم وابحث عن وظيفة toggleFRWindow واستبدلها بذي : toggleFRWindow = function ( ) if getElementData ( localPlayer, "DeathMatch" ) == true then return end if isWindowOpen ( wndMain ) then showCursor ( false ); hideAllWindows ( ); colorPicker.closeSelect ( ); else showCursor ( true ); showAllWindows ( ); end end
  17. https://wiki.multitheftauto.com/wiki/Meta.xml
×
×
  • Create New...