coNolel Posted June 28, 2017 Posted June 28, 2017 سلام عليكم ي شباب كيف حالكم إن شاء الله بصحة وعافية المهم انا كنت جالس اسوي ف مود وما عرفت أكلمه المشكلة هي انو انا سويت فنكشن يجيب المابات ويرسل اسمها ترايقر لكلينت سايد ويوم تكبس على ماب من الكلينت ينرسل للسيرفر عشان ينحط فالنكست حقين الريس يعرفون وش أقول ض الزبدة اني ما اعرف وش الفنكشن اللي بسخدمه عشان احط ماب من برا القيم مود / الماب مانجر @Abdul KariM @Master_MTA @iMr.WiFi..! @وانت اذا معك خبرةلا تبخل علينا بالله @BrosS IT Projet Manager
iMr.Omar Posted June 28, 2017 Posted June 28, 2017 يعني انت تريد يختار ماب من اللستة ويحطه نكست ؟ Skype : live:omarnone Lua Scripting : 39%
Master_MTA Posted June 28, 2017 Posted June 28, 2017 اطرح الكود اللي يحط نكست ماب بالجيم مود +اطرح كودك جانب السيرفر Skype : 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001 every thing is gonna be alright every thing is gonna be okay it's gonna be a good good life that's what my therapist say
iMr.WiFi..! Posted June 28, 2017 Posted June 28, 2017 changeGamemodeMap ذا فنكشن في الماب مانجر يمكن يفيدك ذ Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
iMr.Omar Posted June 28, 2017 Posted June 28, 2017 executeCommandHandler -- nextmap 1 Skype : live:omarnone Lua Scripting : 39%
coNolel Posted June 29, 2017 Author Posted June 29, 2017 12 hours ago, iMr.Omar said: يعني انت تريد يختار ماب من اللستة ويحطه نكست ؟ يب ، سويت القريد ليست دي إكس وفيها حدث يوم تكبس على روو يعرف آي روو ظغطت عليه اوتوماتيكي ض2 12 hours ago, Master_MTA said: اطرح الكود اللي يحط نكست ماب بالجيم مود +اطرح كودك جانب السيرفر addCommandHandler('nextmap', function( player, command, ... ) local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputRace( 'Next map is not set', player ) end return end if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.admingroup) then return end local map, errormsg = findMap( query ) if not map then outputRace( errormsg, player ) return end if g_ForcedNextMap == map then outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) return end g_ForcedNextMap = map outputChatBox('Next map set to ' .. getMapName( g_ForcedNextMap ) .. ' by ' .. getPlayerName( player ), g_Root, 0, 240, 0) end ) 11 hours ago, iMr.WiFi..! said: changeGamemodeMap ذا فنكشن في الماب مانجر يمكن يفيدك ذ الفنكن يغير الماب علطول ، IT Projet Manager
iMr.Omar Posted June 29, 2017 Posted June 29, 2017 10 hours ago, iMr.Omar said: executeCommandHandler -- nextmap سوي يوم يظغط الزر يجيب الماب ويحطه نكست من هنا ^ Skype : live:omarnone Lua Scripting : 39%
Master_MTA Posted June 29, 2017 Posted June 29, 2017 4 minutes ago, coNolel said: يب ، سويت القريد ليست دي إكس وفيها حدث يوم تكبس على روو يعرف آي روو ظغطت عليه اوتوماتيكي ض2 addCommandHandler('nextmap', function( player, command, ... ) local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputRace( 'Next map is not set', player ) end return end if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.admingroup) then return end local map, errormsg = findMap( query ) if not map then outputRace( errormsg, player ) return end if g_ForcedNextMap == map then outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) return end g_ForcedNextMap = map outputChatBox('Next map set to ' .. getMapName( g_ForcedNextMap ) .. ' by ' .. getPlayerName( player ), g_Root, 0, 240, 0) end ) الفنكن يغير الماب علطول ، ما فهمت مقصد الاخ وايفاي changeGamemodeMap قصد شوف طريقة عمل الفنكشن واستفيد منها Skype : 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001 every thing is gonna be alright every thing is gonna be okay it's gonna be a good good life that's what my therapist say
iMr.Omar Posted June 29, 2017 Posted June 29, 2017 استخدم الطريقة حقتي راح تظبط إن شاء الله 1 Skype : live:omarnone Lua Scripting : 39%
coNolel Posted June 29, 2017 Author Posted June 29, 2017 (edited) 21 minutes ago, iMr.Omar said: سوي يوم يظغط الزر يجيب الماب ويحطه نكست من هنا ^ يوم يجيب الماب يجيب أسمه ويطلع لي مشكل انو اسم الماب خطا ولا مدري ايش ذا يوم يجيب الروو ف الكلنت function ClickTest(Grid, listElements) if Grid == tryGl then elseif listElements then outputChatBox(listElements) triggerServerEvent("setNEXTMAP", root,listElements) end end وهذا إستقبال الترايقر addEvent("setNEXTMAP", true) addEventHandler("setNEXTMAP", root, function(mapName) outputChatBox("server say :it wokrs setting".. mapName) -- outputChatBox("qweqweeqeqeeeeee"..qwe) map = exports.mapmanager: getMapFromName ( mapName ) executeCommandHandler("nextmap",root, map) end) كذا ؟ 21 minutes ago, iMr.Omar said: سوي يوم يظغط الزر يجيب الماب ويحطه نكست من هنا ^ ما نفعت الطريقة أو ما عرفت أشتغل فيها addEvent("setNEXTMAP", true) addEventHandler("setNEXTMAP", root, function(mapName) outputChatBox("server says :".. mapName) executeCommandHandler("nextmap",root, mapName) end) Edited June 29, 2017 by coNolel idk IT Projet Manager
iMr.Omar Posted June 29, 2017 Posted June 29, 2017 بدل الـ root بـ source Skype : live:omarnone Lua Scripting : 39%
coNolel Posted June 29, 2017 Author Posted June 29, 2017 1 minute ago, iMr.Omar said: بدل الـ root بـ source نفس الشي IT Projet Manager
Abdul KariM Posted June 29, 2017 Posted June 29, 2017 اطرح اكواد جلب المابات ووضع المابات بالقريد ليست [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
coNolel Posted June 29, 2017 Author Posted June 29, 2017 2 hours ago, Abdul KariM said: اطرح اكواد جلب المابات ووضع المابات بالقريد ليست mapsTable = {} function GetAllMaps() local Resources = getResources() for i, v in ipairs(Resources) do local ResInfoType, ResInfoGameMode, ResName = getResourceInfo(v, "type"), getResourceInfo(v, "gamemodes"), getResourceInfo ( v, "name" ) if ResInfoType == "map" and ResInfoGameMode == "race" and ResName ~= "" then table.insert(mapsTable, { Name = ResName, Resource = v }) triggerClientEvent ( "onClientGetMaps", getRootElement(), mapsTable ) end end end addEvent("onClientGetMaps", true) addEventHandler("onClientGetMaps", root, function ( mapTables ) for k in pairs(gridlistData) do gridlistData[k] = nil end for i , v in ipairs(mapTables) do table.insert(gridlistData, v.Name) end end) function onDxLibGridlistStart() dashboardData.renderTarget = dxCreateRenderTarget(sX,sY,true) mapShopGrid = dxLibCreateGridlist(500,500,300,300,"qwe",gridlistData,{255,255,255},true,"default",1.2,true,{255,0,0},255,true) if mapShopGrid then outputChatBox("element created!") else outputChatBox("not yet.") end end addEventHandler("onClientResourceStart",resourceRoot,onDxLibGridlistStart) IT Projet Manager
Abdul KariM Posted June 30, 2017 Posted June 30, 2017 Server function GetAllMaps ( ) local aTable = { } for i, v in ipairs( getResources ( ) ) do local ResInfoType, ResInfoGameMode = getResourceInfo(v, "type"), getResourceInfo(v, "gamemodes") if ( ResInfoType == "map" and ResInfoGameMode == "race" ) then table.insert( aTable , getResourceName ( v ) ) end end return aTable end setTimer ( triggerClientEvent , 200 , 1 , "onClientGetMaps" , root , GetAllMaps ( ) ) Client addEvent("onClientGetMaps", true) addEventHandler("onClientGetMaps", root, function ( mapTables ) for k in pairs ( gridlistData ) do gridlistData [ k ] = nil end for i , v in ipairs( mapTables ) do table.insert( gridlistData , v ) end end ) سطر 16 الارقمنت السادس انت حاط تيبل صح ؟ تركيب الفنكشن كذا ولا انت ملخبط اطرح كود يوم تبي تحط الماب نيكست كلينت وسيرفر [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
coNolel Posted June 30, 2017 Author Posted June 30, 2017 1 hour ago, Abdul KariM said: Server function GetAllMaps ( ) local aTable = { } for i, v in ipairs( getResources ( ) ) do local ResInfoType, ResInfoGameMode = getResourceInfo(v, "type"), getResourceInfo(v, "gamemodes") if ( ResInfoType == "map" and ResInfoGameMode == "race" ) then table.insert( aTable , getResourceName ( v ) ) end end return aTable end setTimer ( triggerClientEvent , 200 , 1 , "onClientGetMaps" , root , GetAllMaps ( ) ) Client addEvent("onClientGetMaps", true) addEventHandler("onClientGetMaps", root, function ( mapTables ) for k in pairs ( gridlistData ) do gridlistData [ k ] = nil end for i , v in ipairs( mapTables ) do table.insert( gridlistData , v ) end end ) سطر 16 الارقمنت السادس انت حاط تيبل صح ؟ تركيب الفنكشن كذا ولا انت ملخبط اطرح كود يوم تبي تحط الماب نيكست كلينت وسيرفر يب ، كذا ينحط الجدول في المكتبة هذي ، لازم تحط جدول ضروري function ClickTest(Grid, listElements) if Grid == tryGl then elseif listElements then outputChatBox(listElements) triggerServerEvent("setNEXTMAP", root,listElements) end end addEvent("onDxLibRowSelect", true) addEventHandler("onDxLibRowSelect", root, ClickTest) addEvent("setNEXTMAP", true) addEventHandler("setNEXTMAP", root, function(mapName) outputChatBox("server says :".. mapName) executeCommandHandler("nextmap",source, mapName) end) IT Projet Manager
Abdul KariM Posted June 30, 2017 Posted June 30, 2017 يطلع لك بالشات اسم الماب ؟ [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
coNolel Posted June 30, 2017 Author Posted June 30, 2017 1 hour ago, Abdul KariM said: يطلع لك بالشات اسم الماب ؟ يب IT Projet Manager
Abdul KariM Posted June 30, 2017 Posted June 30, 2017 بملف القيم مود حق الريس استبدل اكواد النكست بهذي function aNextMap ( player , ... ) local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputRace( 'Next map is not set', player ) end return end if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.admingroup) then return end local map, errormsg = findMap( query ) if not map then outputRace( errormsg, player ) return end if g_ForcedNextMap == map then outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) return end g_ForcedNextMap = map outputChatBox('Next map set to ' .. getMapName( g_ForcedNextMap ) .. ' by ' .. getPlayerName( player ), g_Root, 0, 240, 0) end addCommandHandler('nextmap', function( player, command, ... ) aNextMap ( player , ... ) end ) addEvent ( "aGameModeNextMap" , true ) addEventHandler ( "aGameModeNextMap" , root , function ( aMapName ) aNextMap ( source , aMapName ) end ) وفي المود حقك احذف السيرفر سايد واستبدل بالكلينت addEvent("onDxLibRowSelect", true) addEventHandler("onDxLibRowSelect", root, function ( Grid, listElements ) if ( Grid == tryGl ) then if ( listElements ) then triggerServerEvent ( "aGameModeNextMap" , localPlayer , listElements ) outputChatBox( listElements ) end end end ) ولاتنسى تسوي ريستارت لقيم مود الريس [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
coNolel Posted June 30, 2017 Author Posted June 30, 2017 (edited) 2 hours ago, Abdul KariM said: بملف القيم مود حق الريس استبدل اكواد النكست بهذي function aNextMap ( player , ... ) local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputRace( 'Next map is not set', player ) end return end if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.admingroup) then return end local map, errormsg = findMap( query ) if not map then outputRace( errormsg, player ) return end if g_ForcedNextMap == map then outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) return end g_ForcedNextMap = map outputChatBox('Next map set to ' .. getMapName( g_ForcedNextMap ) .. ' by ' .. getPlayerName( player ), g_Root, 0, 240, 0) end addCommandHandler('nextmap', function( player, command, ... ) aNextMap ( player , ... ) end ) addEvent ( "aGameModeNextMap" , true ) addEventHandler ( "aGameModeNextMap" , root , function ( aMapName ) aNextMap ( source , aMapName ) end ) وفي المود حقك احذف السيرفر سايد واستبدل بالكلينت addEvent("onDxLibRowSelect", true) addEventHandler("onDxLibRowSelect", root, function ( Grid, listElements ) if ( Grid == tryGl ) then if ( listElements ) then triggerServerEvent ( "aGameModeNextMap" , localPlayer , listElements ) outputChatBox( listElements ) end end end ) ولاتنسى تسوي ريستارت لقيم مود الريس ض Failed to call export.race: nextmap Edited June 30, 2017 by coNolel fixed some probs IT Projet Manager
Abdul KariM Posted June 30, 2017 Posted June 30, 2017 لايكون ملخبط ارجع فوق واقرا وش قلت لك اكواد النكست حطها بقيم مود الريس موب بالسكربت حقك الكود الثاني حطه بالسكربت حقك [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
coNolel Posted June 30, 2017 Author Posted June 30, 2017 Just now, Abdul KariM said: لايكون ملخبط ارجع فوق واقرا وش قلت لك اكواد النكست حطها بقيم مود الريس موب بالسكربت حقك الكود الثاني حطه بالسكربت حقك لالا معليك سويت حركة وزبطتها 99 بالمية الحين المشكلة في اسم الماب لازم اسمه مو اسم الريسورس 3 minutes ago, Abdul KariM said: لايكون ملخبط ارجع فوق واقرا وش قلت لك اكواد النكست حطها بقيم مود الريس موب بالسكربت حقك الكود الثاني حطه بالسكربت حقك خلاص تشكر على المجهود صلحتها تمت الإفادة " IT Projet Manager
Abdul KariM Posted June 30, 2017 Posted June 30, 2017 العفو باقي شي ؟ [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
coNolel Posted June 30, 2017 Author Posted June 30, 2017 (edited) @Abdul KariMالخطأ كأن هنا addEvent ( "aGameModeNextMap" , true ) addEventHandler ( "aGameModeNextMap" , root , function ( aMapName ) outputChatBox("eserver"..aMapName) executeCommandHandler("nextmap",source, aMapName) outputChatBox("wtf") end لازم source مو root Edited June 30, 2017 by coNolel IT Projet Manager
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now