iMr ~ MnHmAr Posted June 9, 2016 Share Posted June 9, 2016 آلسلام عليكم أخونيء المرمجين انا لديي خبره بسيطه ب البرمجه آريد ان اعرفها مثل ادوني مودآت للمبتدئين يسوونه ي ليت Link to comment
Mr.CoR Posted June 9, 2016 Share Posted June 9, 2016 سوي لوحه توزيع فلوس او ماركر يوم تخشه تطلع لوحه تشتري منها دم ودرع Link to comment
iMr ~ MnHmAr Posted June 9, 2016 Author Share Posted June 9, 2016 سوي لوحه توزيع فلوساو ماركر يوم تخشه تطلع لوحه تشتري منها دم ودرع آوك بس وش المتطلبات لو مآعليك امر Link to comment
Adham Posted June 9, 2016 Share Posted June 9, 2016 سوي اذا دخل علي مركر يعطي الاعب فلوس Link to comment
iMr.WiFi..! Posted June 9, 2016 Share Posted June 9, 2016 سوي لوحه توزيع فلوس المتطلبات : -- Client 'onClientGUIClick' guiGetText triggerServerEvent -- Server for getElementsByType givePlayerMoney --- ماركر يوم تخشه تطلع لوحه تشتري منها دم ودرع المتطلبات : --Server createMarker --Event 'onMarkerHit' if getElementType triggerClientEvent --Event 'onMarkerLeave' if getElementType triggerClientEvent --Client guiSetVisible -- x2 showCursor -- x2 سوي اذا دخل علي مركر يعطي الاعب فلوس المتطلبات : --Server createMarker --Event 'onMarkerHit' if getElementType givePlayerMoney Link to comment
iMr ~ MnHmAr Posted June 9, 2016 Author Share Posted June 9, 2016 سوي لوحه توزيع فلوس المتطلبات : -- Client 'onClientGUIClick' guiGetText triggerServerEvent -- Server for getElementsByType givePlayerMoney --- ماركر يوم تخشه تطلع لوحه تشتري منها دم ودرع المتطلبات : --Server createMarker --Event 'onMarkerHit' if getElementType triggerClientEvent --Event 'onMarkerLeave' if getElementType triggerClientEvent --Client guiSetVisible -- x2 showCursor -- x2 سوي اذا دخل علي مركر يعطي الاعب فلوس المتطلبات : --Server createMarker --Event 'onMarkerHit' if getElementType givePlayerMoney سويت مود توزيع فلوس لكن ميوزع كلنت : GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(283, 150, 242, 258, "توزيع فلوس", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(39, 40, 134, 47, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(41, 111, 132, 51, "توزيع", false, GUIEditor.window[1]) end ) addEventHandler( 'onClientGUIClick', root, function () if (source == GUIEditor.button[1]) then cflos = guiGetText(GUIEditor.edit[1]]) triggerServerEvent("Mony",localPlayer,cflos) end end ) سيرفر addEvent ( 'Mony', true ) addEventHandler ( 'Mony',root, sa ) function sa( player,amount,Players ) for k, thePlayers in ipairs ( getElementsByType ( 'player' ) ) do givePlayerMoney ( player,amount ) outputChatBox ("تم توزيع فلوس لكل الموجودين" 250,200,250) end end Link to comment
Adham Posted June 9, 2016 Share Posted June 9, 2016 (edited) تفضل :الوحه تفتح من ف8 Send للكونسل فقط GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(283, 150, 242, 258, "توزيع فلوس", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(39, 40, 134, 47, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(41, 111, 132, 51, "توزيع", false, GUIEditor.window[1]) end ) function StrongC ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addEvent ( "StrongChat", true ) addEventHandler ( "StrongChat", root, StrongC ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then name = getPlayerName(getLocalPlayer()) cantidad = guiGetText(GUIEditor.edit[1]) guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent("SendMoney1",getRootElement(),cantidad,name) end end ) -------------- Server addCommandHandler ( "Send", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then triggerClientEvent ( p, "StrongChat", resourceRoot ) end end end ) function Enviar (cantidad, name) for _, p in ipairs(getElementsByType('player')) do givePlayerMoney(p, tonumber(cantidad)) outputChatBox("#Console Send all money" , p, 255, 255, 255, true) end end addEvent("SendMoney1", true) addEventHandler("SendMoney1", getRootElement(), Enviar) Edited June 9, 2016 by Guest Link to comment
Me[Z]oO Posted June 9, 2016 Share Posted June 9, 2016 تفضل :الوحه تفتح من ف8 Sendللكونسل فقط . GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(283, 150, 242, 258, "توزيع فلوس", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(39, 40, 134, 47, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(41, 111, 132, 51, "توزيع", false, GUIEditor.window[1]) end ) function StrongC ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addEvent ( "StrongChat", true ) addEventHandler ( "StrongChat", root, StrongC ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then name = getPlayerName(getLocalPlayer()) cantidad = guiGetText(GUIEditor.edit[1]) guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent("SendMoney1",getRootElement(),cantidad,name) end end ) -------------- Server addCommandHandler ( "Send", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then triggerClientEvent ( p, "StrongChat", resourceRoot ) end end end ) function Enviar (cantidad, name) for _, p in ipairs(getElementsByType('player')) do givePlayerMoney(p, tonumber(cantidad)) outputChatBox("#Console Send all money , p, 255, 255, 255, true) end end addEvent("SendMoney1", true) addEventHandler("SendMoney1", getRootElement(), Enviar) GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(283, 150, 242, 258, "توزيع فلوس", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(39, 40, 134, 47, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(41, 111, 132, 51, "توزيع", false, GUIEditor.window[1]) end ) function StrongC ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addEvent ( "StrongChat", true ) addEventHandler ( "StrongChat", root, StrongC ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then name = getPlayerName(getLocalPlayer()) cantidad = guiGetText(GUIEditor.edit[1]) guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent("SendMoney1",getRootElement(),cantidad,name) end end ) -------------- Server addCommandHandler ( "Send", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then triggerClientEvent ( p, "StrongChat", resourceRoot ) end end end ) function Enviar (cantidad, name) for _, p in ipairs(getElementsByType('player')) do givePlayerMoney(p, tonumber(cantidad)) outputChatBox("#Console Send all money" , p, 255, 255, 255, true) end end addEvent("SendMoney1", true) addEventHandler("SendMoney1", getRootElement(), Enviar) تصحيح حق لعبة Link to comment
iMr ~ MnHmAr Posted June 9, 2016 Author Share Posted June 9, 2016 الوحه شغاله تمام معي ي اخ ميزو اخواني اطرحو لي مودات وانا بحآول اسويه لاني مبتدى هذا الموضوع كذا Link to comment
iMr ~ MnHmAr Posted June 9, 2016 Author Share Posted June 9, 2016 تفضل :الوحه تفتح من ف8 Sendللكونسل فقط . GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(283, 150, 242, 258, "توزيع فلوس", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(39, 40, 134, 47, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(41, 111, 132, 51, "توزيع", false, GUIEditor.window[1]) end ) function StrongC ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addEvent ( "StrongChat", true ) addEventHandler ( "StrongChat", root, StrongC ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then name = getPlayerName(getLocalPlayer()) cantidad = guiGetText(GUIEditor.edit[1]) guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent("SendMoney1",getRootElement(),cantidad,name) end end ) -------------- Server addCommandHandler ( "Send", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then triggerClientEvent ( p, "StrongChat", resourceRoot ) end end end ) function Enviar (cantidad, name) for _, p in ipairs(getElementsByType('player')) do givePlayerMoney(p, tonumber(cantidad)) outputChatBox("#Console Send all money , p, 255, 255, 255, true) end end addEvent("SendMoney1", true) addEventHandler("SendMoney1", getRootElement(), Enviar) GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(283, 150, 242, 258, "توزيع فلوس", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(39, 40, 134, 47, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(41, 111, 132, 51, "توزيع", false, GUIEditor.window[1]) end ) function StrongC ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addEvent ( "StrongChat", true ) addEventHandler ( "StrongChat", root, StrongC ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then name = getPlayerName(getLocalPlayer()) cantidad = guiGetText(GUIEditor.edit[1]) guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent("SendMoney1",getRootElement(),cantidad,name) end end ) -------------- Server addCommandHandler ( "Send", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then triggerClientEvent ( p, "StrongChat", resourceRoot ) end end end ) function Enviar (cantidad, name) for _, p in ipairs(getElementsByType('player')) do givePlayerMoney(p, tonumber(cantidad)) outputChatBox("#Console Send all money" , p, 255, 255, 255, true) end end addEvent("SendMoney1", true) addEventHandler("SendMoney1", getRootElement(), Enviar) تصحيح حق لعبة الان اان غلطي بس في فتح الوحه و كلنت حقت ذا guiSetText (GUIEditor.edit[1], "" ) Link to comment
Adham Posted June 9, 2016 Share Posted June 9, 2016 متاكد انك حاطط نفسك بقروب الكونسل ؟ Link to comment
iMr ~ MnHmAr Posted June 9, 2016 Author Share Posted June 9, 2016 متاكد انك حاطط نفسك بقروب الكونسل ؟ ي عسل الكود ماجربته بس انا طآلب ذا الموضوع ابي ابدا اتعلم مبرمجه تدوني مودات لمبتدئين و اسويه اذا قدرت لوحتك شغاله ماجربتها الى الان انا Link to comment
Adham Posted June 9, 2016 Share Posted June 9, 2016 https://community.multitheftauto.com/ خش شوف وابحث عن المود التبيه Link to comment
Adham Posted June 9, 2016 Share Posted June 9, 2016 + كود ذا التقول عنه guiSetText (GUIEditor.edit[1], "" ) ذا اذا توزع فلوس الفلوس النتا كاتبها بالايديت تروح يبقا الايديت فاضي Link to comment
iMr ~ MnHmAr Posted June 9, 2016 Author Share Posted June 9, 2016 https://community.multitheftauto.com/خش شوف وابحث عن المود التبيه انت شكلك مو فاهمني انا ابي انت تطرح علي فكرت مود مع متطلبات المود وانا ان شاء الله بسويه بسس بشرط ترى انا مبتدي بي البرمجه Link to comment
Adham Posted June 9, 2016 Share Posted June 9, 2016 سوي مود توزيع الفلوس , سوي مود Police Panel , سو لوحه اذا دخل مركر يعطي فلوس للاعب سو لوحه سلابات Link to comment
iMr ~ MnHmAr Posted June 9, 2016 Author Share Posted June 9, 2016 سوي مود توزيع الفلوس ,سوي مود Police Panel , سو لوحه اذا دخل مركر يعطي فلوس للاعب سو لوحه سلابات اوك بسوي مود لو دخل ماركه يعطي فلوس بس المتطلبات وش Link to comment
Adham Posted June 9, 2016 Share Posted June 9, 2016 createMarker -- create Maraker addEventHandler + 'onMarkerHit' -- If entered the marker if getElementType -- all Player givePlayerMoney -- give all Player money Link to comment
Ja[B]er[X]Pro Posted June 9, 2016 Share Posted June 9, 2016 سوي ماركر لما تلمسه تفتح لك لوحة تأخد منها سلاح "onClientMarkerHit" guiSetVisible showCursor guiGetText triggerServerEvent giveWeapon سوي لوحة شراء اسلحة وحتى وان كانت صعبة سوي شراء على الاقل سلاح واحد بعدها ابدأ طوره -- ان كنت تبي تسويها بماركر 'onClientMarkerHit' --ان كنت تبي تكلمة في أف8 addCommandHandler ------------------------------ guiSetVisible showCursor guiGetText triggerServerEvent getPlayerMoney takePlayerMoney giveWeapon Link to comment
Adham Posted June 9, 2016 Share Posted June 9, 2016 addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer, player ) if ( hitPlayer == localPlayer ) then for _, p in ipairs(getElementsByType('player')) do givePlayerMoney ( player, 4000 ) end end ) Marker = createMarker ( -2405.00000,-598.00000,132.64844 ,"cylinder", 1.5, 255, 255, 0, 170 ) Link to comment
iMr ~ MnHmAr Posted June 9, 2016 Author Share Posted June 9, 2016 سوي ماركر لما تلمسه تفتح لك لوحة تأخد منها سلاح "onClientMarkerHit" guiSetVisible showCursor guiGetText triggerServerEvent giveWeapon سوي لوحة شراء اسلحة وحتى وان كانت صعبة سوي شراء على الاقل سلاح واحد بعدها ابدأ طوره -- ان كنت تبي تسويها بماركر 'onClientMarkerHit' --ان كنت تبي تكلمة في أف8 addCommandHandler ------------------------------ guiSetVisible showCursor guiGetText triggerServerEvent getPlayerMoney takePlayerMoney giveWeapon سويتهه لكنن لم تمت التجربه لان مشغول بمشي كلنت سايد MarkerHit = createMarker ( -2405.00000,-598.00000,132.64844 ,"cylinder", 1.5, 255, 255, 0, 170 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(480, 227, 212, 233, "^_^", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(32, 44, 138, 43, "1", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(32, 108, 138, 43, "2", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(32, 174, 138, 43, "3", false, GUIEditor.window[1]) end ) function give1() if source == GUIEditor.button[1] then triggerServerEvent("give1Player", give1) end end function give2() if source == GUIEditor.button[2] then triggerServerEvent("give2Player", give2) end end function give3() if source == GUIEditor.button[3] then triggerServerEvent("give3Player", give3) end end function Black( ) if( MarkerHit == localPlayer )then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Black ) سيرفر سايد function take() local money = getPlayerMoney(thePlayer) if (money >= 1000) then takePlayerMoney( source, 1000 ) giveWeapon( source, 32, 100 ) end end addEvent("give1Player", true) addEventHandler("give1Player", getRootElement(), take) ---- function take1() local money = getPlayerMoney(thePlayer) if (money >= 1000) then takePlayerMoney( source, 1000 ) giveWeapon( source, 34, 100 ) end end addEvent("give2Player", true) addEventHandler("give2Player", getRootElement(), take1) ----- function take2() local money = getPlayerMoney(thePlayer) if (money >= 1000) then takePlayerMoney( source, 1000 ) giveWeapon( source, 22, 100 ) end end addEvent("give3Player", true) addEventHandler("give3Player", getRootElement(), take2) Link to comment
Adham Posted June 9, 2016 Share Posted June 9, 2016 ------------ Client MarkerHit = createMarker ( -2405.00000,-598.00000,132.64844 ,"cylinder", 1.5, 255, 255, 0, 170 ) ------------------- GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(480, 227, 212, 233, "^_^", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(32, 44, 138, 43, "1", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(32, 108, 138, 43, "2", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(32, 174, 138, 43, "3", false, GUIEditor.window[1]) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if source == GUIEditor.button[1] then triggerServerEvent("give1Player", localPlayer) elseif source == GUIEditor.button[2] then triggerServerEvent("give2Player", localPlayer) elseif source == GUIEditor.button[3] then triggerServerEvent("give3Player", localPlayer) end end ) addEventHandler('onClientMarkerHit', MarkerHit, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor.window[1], true ) showCursor( true ) end end ) -------------------- Server addEvent ( "give1Player", true ) addEventHandler ( "give1Player", root, function ( ) if getPlayerMoney (source) >= 1000 then takePlayerMoney (source,1000) giveWeapon( source, 32, 100 ) end end ) addEvent ( "give2Player", true ) addEventHandler ( "give2Player", root, function ( ) if getPlayerMoney (source) >= 1000 then takePlayerMoney (source,1000) giveWeapon( source, 34, 100 ) end end ) addEvent ( "give3Player", true ) addEventHandler ( "give3Player", root, function ( ) if getPlayerMoney (source) >= 1000 then takePlayerMoney (source,1000) giveWeapon( source, 22, 100 ) end end ) Link to comment
Ahmed Ly Posted June 9, 2016 Share Posted June 9, 2016 -------------------- Server addEvent ( "give1Player", true ) addEventHandler ( "give1Player", root, function ( ) if getPlayerMoney (source) >= 1000 then takePlayerMoney (source,1000) giveWeapon( source, 32, 100 ) outputChatBox("تم شراء بنجاح ",source,0,255,0) else outputChatBox("ليس لديك المال الكافي ",source,0,255,0) end end ) addEvent ( "give2Player", true ) addEventHandler ( "give2Player", root, function ( ) if getPlayerMoney (source) >= 1000 then takePlayerMoney (source,1000) giveWeapon( source, 34, 100 ) outputChatBox("تم شراء بنجاح ",source,0,255,0) else outputChatBox("ليس لديك المال الكافي ",source,0,255,0) end end ) addEvent ( "give3Player", true ) addEventHandler ( "give3Player", root, function ( ) if getPlayerMoney (source) >= 1000 then takePlayerMoney (source,1000) giveWeapon( source, 22, 100 ) outputChatBox("تم شراء بنجاح ",source,0,255,0) else outputChatBox("ليس لديك المال الكافي ",source,0,255,0) end end ) Link to comment
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