-
Posts
2,259 -
Joined
-
Last visited
-
Days Won
2
Everything posted by 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" )
-
سلام عليكم الكود ذا شغال تمام يجي في تاب 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 )
-
تمام ظبتت احمد @ سوال شباب اخر :: ابي اسوي لو معه رتبة كونسل يجي في تاب ب الكتابه كونسل م ظبت الكود call(getResourceFromName("scoreboard"),"scoreboardAddColumn","Rank") addEventHandler("onPlayerLogin",root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then setElementData(source,"Rank","Console") end end )
-
سلام عليكم ورحمه الله وبركاته .. انا مسوي لما يخش مركر يطلع له لوحه صحبي دخل سرفري راح المركر فتحت له الوحه الوحه ظهرت له وظهر لي الكود 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 )
-
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 ) شوف انا سويته كذا الكود هذا لما يدخل المركر يدخل في المحل وبعدين يبان شاشه سودا وتظهر تاني .. انا ابيها لما يخش المركر علطول يجي شاشه سوده بعدين تفتح وتدخل علي المحل
-
سلام عليكم ورحمه الله وبركاته المشكله في فكشن 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 )
-
مشكور سوال اخر .. انا لو سويت كذا addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then local text = guiGetText ( edit ) if text == "" then return end else guiSetVisible ( gui, true ) end end ) لو م كتب في الايديت لوحه هتطلع له هتطلع كذا لكل الاعبين ولا للاعب الضعط وم حدد ايديت ؟
-
لو حطيت cylinder or checkpoint بيختفي ؟
-
م اتخفي وم في دي بق local Marker1 = createMarker ( 1446.92456, -2930.41772, 3.15656, "arrow", 1.3, 255, 255, 0, 0 )
-
سلام عليكم كيف اخفاء المركر ؟ من الرقم الفي فكشن createMarker حطيت اكتر من مره فكشن تخت المركر setElementAlpha = 0 م اتخفاء .. ارجو الحل
-
بمأ اني فاضي سويته لك -- 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 )
-
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)
-
سلام عليكم مسوي لما يخش علي مركر يوديه لمكان انا مسوي اليدخل المركر ويروح لمكان قروب البوليس فقط .. لاكن م ظبت كلنت 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)
-
غيرت اسم Memo حقك واسم الزر ؟
-
جرب لما تضعط علي زر يجيك معلوماته في الميمو مدري خطأ او صح جرب : كلنت : 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 )