Jump to content

Adham

Members
  • Posts

    2,259
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Adham

  1. Adham

    طب

    لا م ابي اعدل علي سكورد هذا مود جديد الاكواد هذه call(getResourceFromName("scoreboard"),"scoreboardAddColumn","Rank") addEventHandler("onPlayerLogin",root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then setElementData(source,"Rank","Console") end end ) ابي بدل كتابه "Console" تيجي صوره عملتها هكذا وما نفعت setElementData(source,"Rank", "img.png" )
  2. Adham

    طب

    يعني كلمه Console تيجي في تاب علي شكل كتابه انا ابيها تيجي صوره انا هحطها ب الملف من برا و جوا meta.xml
  3. Adham

    طب

    سلام عليكم الكود ذا شغال تمام يجي في تاب cONSOLE ابيه يجي صوره بدل الكلام كيف ؟ call(getResourceFromName("scoreboard"),"scoreboardAddColumn","Rank") addEventHandler("onPlayerLogin",root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then setElementData(source,"Rank","Console") end end )
  4. Adham

    سوال

    م في دي بق والمشكله : ان م يظهر كلمه Console في تاب خلاص ظبتت , اقدر اسويها بدل Console صوره ؟
  5. Adham

    سوال

    تمام ظبتت احمد @ سوال شباب اخر :: ابي اسوي لو معه رتبة كونسل يجي في تاب ب الكتابه كونسل م ظبت الكود call(getResourceFromName("scoreboard"),"scoreboardAddColumn","Rank") addEventHandler("onPlayerLogin",root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then setElementData(source,"Rank","Console") end end )
  6. Adham

    سوال

    لين اخش المركر الوحه تطلع ل صحبي
  7. Adham

    سوال

    سلام عليكم ورحمه الله وبركاته .. انا مسوي لما يخش مركر يطلع له لوحه صحبي دخل سرفري راح المركر فتحت له الوحه الوحه ظهرت له وظهر لي الكود local Marker = createMarker ( 1368.74084, -1279.88330, 14.25909, "arrow", 1.3, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", Marker, function ( hitPlayer ) if ( getElementType( hitPlayer ) == "player" ) and not isPedInVehicle( hitPlayer ) then guiSetVisible( GUIEditor.window[1], true ) showCursor ( true ) guiSetInputEnabled ( true ) end end )
  8. Adham

    تعديل

    addEventHandler ( "onClientMarkerHit", Marker1, function ( hitPlayer ) if ( getElementType( hitPlayer ) == "player" ) and not isPedInVehicle( hitPlayer ) then fadeCamera ( false ) setTimer ( fadeCamera, 1500, 1, true ) setElementInterior ( hitPlayer, 14, 203.99309, -166.55072, 1000.52344) end end ) شوف انا سويته كذا الكود هذا لما يدخل المركر يدخل في المحل وبعدين يبان شاشه سودا وتظهر تاني .. انا ابيها لما يخش المركر علطول يجي شاشه سوده بعدين تفتح وتدخل علي المحل
  9. Adham

    تعديل

    أقراء الموضوع كويس لأهنت .
  10. Adham

    تعديل

    حطيته , false صار لما ادخل المحل يجيب اسود بعد م ادخل المحل بكنير انا ابي لما يخش الباب
  11. سلام عليكم ورحمه الله وبركاته المشكله في فكشن fadeCamera المشكله انا مسوي لما يخش علي باب يخش علي المحل والاحدثيات تمام وكل شي انا ابي لما يخش المحل يجي اسود وشويه يختفي الاسود انا مسويه لاكن لما يخش م يجيب اسود addEventHandler ( "onClientMarkerHit", Marker1, function ( hitPlayer ) if ( getElementType( hitPlayer ) == "player" ) and not isPedInVehicle( hitPlayer ) then setTimer (function ( ) fadeCamera ( true , 1 ) setElementInterior ( hitPlayer, 14, 203.99309, -166.55072, 1000.52344) end,1000,1) end end )
  12. Adham

    سوال ..

    مشكور سوال اخر .. انا لو سويت كذا addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then local text = guiGetText ( edit ) if text == "" then return end else guiSetVisible ( gui, true ) end end ) لو م كتب في الايديت لوحه هتطلع له هتطلع كذا لكل الاعبين ولا للاعب الضعط وم حدد ايديت ؟
  13. Adham

    سوال ..

    لو حطيت cylinder or checkpoint بيختفي ؟
  14. Adham

    سوال ..

    م اتخفي وم في دي بق local Marker1 = createMarker ( 1446.92456, -2930.41772, 3.15656, "arrow", 1.3, 255, 255, 0, 0 )
  15. Adham

    سوال ..

    يب اخليه كام ؟
  16. سلام عليكم كيف اخفاء المركر ؟ من الرقم الفي فكشن createMarker حطيت اكتر من مره فكشن تخت المركر setElementAlpha = 0 م اتخفاء .. ارجو الحل
  17. بمأ اني فاضي سويته لك -- Client addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then triggerServerEvent ( "SetPlayerTeam", localPlayer ) end end ) -- Server addEvent ( "SetPlayerTeam", true ) addEventHandler ( "SetPlayerTeam", root, function ( ) local team = getTeamFromName( 'TeamName' ) if ( team ) then setPlayerTeam( source, team ) end end )
  18. Adham

    تعديل

    تسلم تم الافاده .
  19. https://wiki.multitheftauto.com/wiki/IsPlayerInTeam Ex Wiki : function duty(player) if isPlayerInTeam(player, "SAPD") then setElementModel(player, 280) setPedArmor(player, 100) takeAllWeapons(player) giveWeapon(player, 3, 1, true) outputChatBox("* Now " .. getPlayerName(player) .. " is on duty!", root, 0, 0, 200) end end addCommandHandler("onduty", duty)
  20. Adham

    تعديل

    WARNING: vRestrunt/Server.lua:7: Bad argument @ 'getPlayerAccountName' [Expected account at argument 1, got, boolean] ERROR: vRestrunt/Server.lua:7: attempt to councatenate a bollean value
  21. سلام عليكم مسوي لما يخش علي مركر يوديه لمكان انا مسوي اليدخل المركر ويروح لمكان قروب البوليس فقط .. لاكن م ظبت كلنت addEventHandler ( "onClientMarkerHit", PoliceCenter, function ( ) triggerServerEvent ( "Marker", localPlayer ) end ) سرفر addEvent ( "Marker", true ) addEventHandler ( "Marker", root, function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then setElementInterior ( source, 3, 238.62845, 141.09608, 1003.02344 ) end end end)
  22. غيرت اسم Memo حقك واسم الزر ؟
  23. شو الدي بق يطلع لك ؟
  24. جرب لما تضعط علي زر يجيك معلوماته في الميمو مدري خطأ او صح جرب : كلنت : addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then triggerServerEvent ( "Client:informations", localPlayer ) end end ); addEvent ( "onClient:informations", true ) addEventHandler ( "onClient:informations", root, function ( Name, Account, Serial, Money, Ping, Group ) guiSetText ( Memo, "Name Player: "..Name.."\nAccount Player: "..Account.."\nSerial Player: "..Serial.."\n Money Player: "..Money.."\nPingPlayer: "..Ping.."\nGroup: "..Group.." ") end ); function getPlayerAcls(thePlayer) local acls = {} local account = getPlayerAccount(thePlayer) if (account) and not (isGuestAccount(account)) then local accountName = getAccountName(account) for i,group in ipairs(aclGroupList()) do if (isObjectInACLGroup( "user." ..accountName, group)) then local groupName = aclGroupGetName(group) table.insert(acls, groupName) end end end return acls end addEvent ( "Client:informations",true ) addEventHandler ( "Client:informations", root, function ( Name, Account, Serial, Money, Ping, Group ) local Name = getPlayerName ( source ) local Account = getPlayerAccount ( source ) local Serial = getPlayerSerial ( source ) local Money = getPlayerMoney ( source ) local Ping = getPlayerPing ( source ) local Group = getPlayerAcls ( source ) triggerClientEvent ( source,"onClient:informations",source, Name, Account, Serial, Money, Ping, Group ) end end )
×
×
  • Create New...