-
Posts
779 -
Joined
-
Last visited
Everything posted by Ja[B]er[X]Pro
-
سكررررربت رائع بالتوفيق
-
كفوووووو تصميممم ابداااع واصل
-
وش رايك بمزرعة بقر؟؟ متل فكرة الجاج لكن تحلبهم بدل جمع من العش وتربح حليب الذي تبيعه وتكسب فلوس
-
أبي فكرة قيم مود , الي يبي يستهبل يروح لغير هذا الموضوع -_-
Ja[B]er[X]Pro replied to #StrOnG_,)'s topic in القسم العام
جيم مود اعتقد صعب وهو جيم مود كرة السلة عند دخول السيرفر تسجل والسيرفر وتختار فريق من الفرقاء المتوفرين لتدخل وتلعب ضد فريق اخر طبعاً يكون هناك لوحة لصنع فريق لكن ما بسهولة ويكون صعب تجميع عدد الفلوس حتى ما يصير عند الكل فريق والمابات على الاقل يكون 3 مابات وكل مرة يصير ماتش راندوم بين الفرقاء حتى يتم اختيار فريقين وماتش راندوم بين المابات حتى يتم اختيار الماب بعدها يلعبون والفريق الفائز يكسب عدد من الفلوس وتقدر تضيف اي تجديد للفكرة من عندك :~ -
تم الاشتراك كفووو
-
شكراً لكم تم حل المشكلة
-
مشكلة في الرسباون لما يموت الاعب ما يرسبن addEventHandler("onPlayerWasted",root,function() setTimer(function() setElementPosition(source,874.10486,-2187.34985,13.85282) end,1000,1) end)
-
شكراًً لك اخي تم حل المشكلة
-
انا سويت ماركر لوحة اسلحة لكن بها مشاكل --client GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(159, 52, 528, 477, "[PS]Weapon Marker[PS]", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(14, 47, 123, 32, "Buy 100 M4", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF") GUIEditor.button[2] = guiCreateButton(189, 47, 123, 32, "Buy 100 AK47", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(383, 47, 123, 32, "Buy 100 MP5", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.button[4] = guiCreateButton(14, 110, 123, 32, "Buy 100 Sniper", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFFFFFF") GUIEditor.button[5] = guiCreateButton(189, 110, 123, 32, "Buy 100 Uzi", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFFFFFF") GUIEditor.button[6] = guiCreateButton(383, 110, 123, 32, "Buy 100 Sawed-off", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFFFFFF") GUIEditor.button[7] = guiCreateButton(14, 175, 123, 32, "Buy 100 Combat SG", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFFFFFFF") GUIEditor.button[8] = guiCreateButton(189, 175, 123, 32, "Buy 100 Deagle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFFFFFFF") GUIEditor.button[9] = guiCreateButton(383, 175, 123, 32, "Buy 100 Tec-9", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFFFFFFF") GUIEditor.label[1] = guiCreateLabel(205, 244, 91, 32, "$10000", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") GUIEditor.label[2] = guiCreateLabel(3, 283, 525, 15, "_______________________________________________________________________________________________________", false, GUIEditor.window[1]) GUIEditor.button[10] = guiCreateButton(22, 352, 125, 47, "شراء 4 قنابل", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFFFFFFF") GUIEditor.label[3] = guiCreateLabel(41, 414, 86, 33, "$10000", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-header") GUIEditor.button[11] = guiCreateButton(189, 352, 125, 47, "شراء 100 خلاط", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FFFFFFFF") GUIEditor.label[4] = guiCreateLabel(208, 414, 96, 27, "$100000", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "sa-header") GUIEditor.button[12] = guiCreateButton(381, 352, 125, 47, "شراء 10 ار بي جي", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[12], "NormalTextColour", "FFFFFFFF") GUIEditor.label[5] = guiCreateLabel(400, 414, 96, 27, "$50000", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "sa-header") GUIEditor.button[13] = guiCreateButton(14, 250, 21, 23, "x", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[13], "NormalTextColour", "FFFE0E0E") end ) local markerweapon = createMarker (784.06311,-2114.36377,12.00000, "cylinder", 1.5, 255, 255, 0, 170 ) local markervehilce = createMarker(784.06427,-2120.47461,12.00000, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",markerweapon,function() guiSetVisible(GUIEditor.window[1],true) showCursor(true) end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[1]) then triggerServerEvent("ak47",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[2]) then triggerServerEvent("m4",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[3]) then triggerServerEvent("mp5",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[4]) then triggerServerEvent("sniper",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[5]) then triggerServerEvent("uzi",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[6]) then triggerServerEvent("sof",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[7]) then triggerServerEvent("sc",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[8]) then triggerServerEvent("deagle",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[9]) then triggerServerEvent("tc9",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[10]) then triggerServerEvent("b1",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[11]) then triggerServerEvent("b2",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[12]) then triggerServerEvent("b3",localPlayer) end end) addEventHandler("onClientGUIClick",root,function() if (GUIEditor.button[13]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end) احد اكبر المشاكل عندما شخص يلمس الماركر تفتح للجميع وعندما شخص يقفل اللوحة تقفل للجميع وما يشتري سلاح --server addEvent("m4",true) addEventHandler("m4",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,31,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("ak47",true) addEventHandler("ak47",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,30,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("mp5",true) addEventHandler("mp5",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,29,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("sniper",true) addEventHandler("sniper",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,34,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("uzi",true) addEventHandler("uzi",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,28,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("sof",true) addEventHandler("sof",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,26,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("sc",true) addEventHandler("sc",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,27,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("deagle",true) addEventHandler("deagle",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,24,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("tc9",true) addEventHandler("tc9",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,32,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end)) addEvent("b1",true) addEventHandler("b1",root,function() if getPlayerMoney(source) >= 10000 then takePlayerMoney(source,10000) giveWeapon(source,16,4) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("b2",true) addEventHandler("b2",root,function() if getPlayerMoney(source) >= 100000 then takePlayerMoney(source,100000) giveWeapon(source,38,100) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end) addEvent("b3",true) addEventHandler("b3",root,function() if getPlayerMoney(source) >= 50000 then takePlayerMoney(source,50000) giveWeapon(source,35,10) outputChatBox("مبروك السلاح",source,0,255,0) else outputChatBox("لا تملك النقود الكافية",source,255,0,0) end end ) addEvent("armor",true) addEventHandler("armor",root,function() setPedArmor(source,100) setElementHealth (source,100) outputChatBox("تم اعطائك دم ودرع!!",source,255,255,0) end) ERROR: Client (Jaer[x]Pro) triggered serverside event m4, but event is not added serverside هذا الديبوق يجي وعند m4 يجي مكانها اسماء كل الترايقرات
-
صار يجي جوي مسج لكن ما يجي كلام بالجوي مسج فقط رسالة فارغة
-
[MTA]ماهو افضل مبرمج عندك في ...#
Ja[B]er[X]Pro replied to ععيونككء اخخر امممأليء ^'s topic in القسم العام
هههههههه وانا افضل شخص عندي ايرور 404 -
حاولت اسوي الرسائل جوي مسج اجاني خطأ addEventHandler("onClientGUIClick",root,function() if ( source == button2 ) then if getPlayerTeam ( localPlayer ) == getTeamFromName ( "Police" ) then return exports["guimessages"]:outputServer(localPlayer,"You Was Allred In Police Team", 255 ,0 ,0 ) end exports["guimessages"]:outputServer(localPlayer,"You Was Called By Police",0,0,255) triggerServerEvent("Team_Msg",localPlayer ) end end ) ;
-
اضفت له تحقق ان كان بالتيم يسوي ريتورن addEventHandler("onClientGUIClick",root,function() if ( source == button2 ) then if getPlayerTeam(localPlayer) == "Police" then outputChatBox("You Was Allred In Police Team",localPlayer,255,0,0) return end outputChatBox("You Was Called By Police",0,0,255) triggerServerEvent("Team_Msg",localPlayer ) end end ) ; ودخلت نفسي التيم وضغط على الزر اشتغل عادي كأني لاعب بتيم اخر
-
شكراً لكم على المساعدة
-
setElementPosition مثال صغير addCommandHandler("spawn", function() -- عند كتابة كلمة spawn باف8 setElementPosition(source , x,y,z) --ننقل الاعب للاحداثيات x,y,z end --نهاية الفنكشن )--نهاية قوس كود الكلمة باف8 ملاحظة مكان x,y,z الاحداثيات
-
محاولتي function team1(playersteam) for k,v in ipairs (getTeamFromName("Police")) do if (v == playersteam) then outputChatBox("The Player "..getPlayerName(localPlayer).." Was Called The Police",playersteam,0,255,0) end end end addEventHandler("onClientGUIClick",root,function() if (source == button2) then outputChatBox("You Was Called By Police",localPlayer,0,255,0) team1() end end)
-
https://forum.multitheftauto.com/viewtopic.php?f ... 8A#p777080 شكراً لك اخي انا سويت لوحة وضعت بها ايديت + زر وسويت عند الضغط على زر يجيب الكلام الذي باللوحة ويخرجه بالشات لكن ابي الكلام يخرج لتيم محدد فقط كيف؟
-
https://forum.multitheftauto.com/viewtopic.php?f ... 8A#p777080 شكراً لك اخي انا سويت لوحة وضعت بها ايديت + زر وسويت عند الضغط على زر يجيب الكلام الذي باللوحة ويخرجه بالشات لكن ابي الكلام يخرج لتيم محدد فقط كيف؟
-
السلام عليكم ورحمة الله وبركاته انا معي عدلت مهمة للهجولة لكن صارت عندي مشكلة ان اي شخص من داخل المهمة يضغط اف1 ويغش بالفري روم ومنهم يستخدم لوحة الادمنية وباقي اللوحات كيف امنع استخدام اي لوحة داخل المهمة؟
-
السلام عليكم ورحمة الله وبركاته انا معي عدلت مهمة للهجولة لكن صارت عندي مشكلة ان اي شخص من داخل المهمة يضغط اف1 ويغش بالفري روم ومنهم يستخدم لوحة الادمنية وباقي اللوحات كيف امنع استخدام اي لوحة داخل المهمة؟
-
العفو اخوي اي شيئ اخر انا جاهز
-
العفو اخوي اي شيئ اخر انا جاهز
-
الاكواد كاملة GUIEditor.window[1] = guiCreateWindow(420, 190, 361, 182, "Test", false) guiWindowSetSizable(GUIEditor.window[1], false) give = guiCreateButton(21, 47, 93, 33, "Give Car", false, GUIEditor.window[1]) take = guiCreateButton(134, 47, 93, 33, "Destroy Car", false, GUIEditor.window[1]) kill = guiCreateButton(247, 47, 93, 33, "Slap", false, GUIEditor.window[1]) health = guiCreateButton(21, 123, 93, 33, "100 Health", false, GUIEditor.window[1]) armor = guiCreateButton(134, 123, 93, 33, "100 Armor", false, GUIEditor.window[1]) fly = guiCreateButton(247, 123, 93, 33, "Fly Car", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick",root, function localplayer() if source == health then setElementHealth(localplayer,100) outputChatBox("Done 100 Health",localplayer,255,24,21,true) end end ) addEventHandler("onClientGUIClick",root, function localplayer() if source == armor then triggerServerEvent("armorgive",localPlayer) --ترايقر لملف سيرفر end end ) addEventHandler("onClientGUIClick",root, function localplayer() if source == kill then setElementHealth(localplayer,100) outputChatBox("Done Kill",localplayer,255,24,21,true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function localplayer() if source == fly then setWorldSpecialPropertyEnabled (localplayer,"aircars", true ) outputChatBox("You Can Fly know !!",localplayer,253,35,32) end end ) addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر if source == take then --يتحقق من اسم الزر if isPedInVehicle ( localPlayer ) then --يتحقق ان كان الاعب داخل السيارة destroyElement ( getPedOccupiedVehicle(localPlayer) ) -- يدمر السيارة التي بداخلها end end end ) addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر if (source == give) then -- يتحقق من اسم الزر triggerServerEvent ( "GiveVehicle",localPlayer) --يرسل ترايقر لملف سيرفر end end) addEvent("GiveVehicle",true) --استقبال الترايقر addEventHandler("GiveVehicle",root,function() -- استقبال الترايقر local x,y,z = getElementPosition(localPlayer) --يجيك احداثيات الاعب local vehicle = createVehicle(ID,x,y,z) --يصنع سيارة باحداثيات الاعب ملاحظة عند ID ضع الايدي من عندك warpPedIntoVehicle(localPlayer,vehicle)--يضع الاعب داخل السيارة end) addEvent("armorgive",true)--استقبال addEventHandler("armorgive",root,function() --استقبال setPedArmor(localplayer,100)--عطاء درع 100 outputChatBox("Done give armor Happy",localplayer,255,254,24,true) --كلام بالشات end) شرحت لك بعض الاكواد اتمنى اكون افدتك
-
الاكواد كاملة GUIEditor.window[1] = guiCreateWindow(420, 190, 361, 182, "Test", false) guiWindowSetSizable(GUIEditor.window[1], false) give = guiCreateButton(21, 47, 93, 33, "Give Car", false, GUIEditor.window[1]) take = guiCreateButton(134, 47, 93, 33, "Destroy Car", false, GUIEditor.window[1]) kill = guiCreateButton(247, 47, 93, 33, "Slap", false, GUIEditor.window[1]) health = guiCreateButton(21, 123, 93, 33, "100 Health", false, GUIEditor.window[1]) armor = guiCreateButton(134, 123, 93, 33, "100 Armor", false, GUIEditor.window[1]) fly = guiCreateButton(247, 123, 93, 33, "Fly Car", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick",root, function localplayer() if source == health then setElementHealth(localplayer,100) outputChatBox("Done 100 Health",localplayer,255,24,21,true) end end ) addEventHandler("onClientGUIClick",root, function localplayer() if source == armor then triggerServerEvent("armorgive",localPlayer) --ترايقر لملف سيرفر end end ) addEventHandler("onClientGUIClick",root, function localplayer() if source == kill then setElementHealth(localplayer,100) outputChatBox("Done Kill",localplayer,255,24,21,true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function localplayer() if source == fly then setWorldSpecialPropertyEnabled (localplayer,"aircars", true ) outputChatBox("You Can Fly know !!",localplayer,253,35,32) end end ) addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر if source == take then --يتحقق من اسم الزر if isPedInVehicle ( localPlayer ) then --يتحقق ان كان الاعب داخل السيارة destroyElement ( getPedOccupiedVehicle(localPlayer) ) -- يدمر السيارة التي بداخلها end end end ) addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر if (source == give) then -- يتحقق من اسم الزر triggerServerEvent ( "GiveVehicle",localPlayer) --يرسل ترايقر لملف سيرفر end end) addEvent("GiveVehicle",true) --استقبال الترايقر addEventHandler("GiveVehicle",root,function() -- استقبال الترايقر local x,y,z = getElementPosition(localPlayer) --يجيك احداثيات الاعب local vehicle = createVehicle(ID,x,y,z) --يصنع سيارة باحداثيات الاعب ملاحظة عند ID ضع الايدي من عندك warpPedIntoVehicle(localPlayer,vehicle)--يضع الاعب داخل السيارة end) addEvent("armorgive",true)--استقبال addEventHandler("armorgive",root,function() --استقبال setPedArmor(localplayer,100)--عطاء درع 100 outputChatBox("Done give armor Happy",localplayer,255,254,24,true) --كلام بالشات end) شرحت لك بعض الاكواد اتمنى اكون افدتك