Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. @ ===7MoDy=== Full Editor اضضغط lua و بعدها زر و ححطط الأكواد داخله
  2. createColCircle الموضوع وصصل الصفحة الرابعه على ششأن كود والمفروضض تستخدم اكواد الماركر أسسهل لـ شخص مبتدأ ججرب ذآ سيرفر x = 907.19921875 y = 1841.5 z = 15.699999809265 ID = 2938 a1 = createObject ( ID, x , y , z ) markerX = 1876.2318115234 markerY = 243.9450378418 markerZ = 225.65536499023 Marker = createMarker ( markerX , markerY , markerZ , "cylinder", 2, 0, 0, 0, 0 ) addEventHandler("onMarkerHit", Marker, function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject (a1, 2000, x + 2 , y + 2, z ) end end ) addEventHandler("onMarkerLeave", Marker, function() moveObject (a1, 2000, x , y , z) end ) اللي عليكـ تروحح السيرفر و توقف فوق المكآن بالضضبط .. اللي تبي الأوبجكت يجي عليه position و تفتحح الأدمنية تشوف تححت كلمة x : ........... y : ............ z : ............ الأرقام ذي تنقلها فوق بـ الككود بـ نفس الترتيب ID = أي دي الأوبجكت و ككذلكـ إحداثيات الماركر توقف بـ مكآن و تاخخذ الأرقام من الأدمنية markerX , markerY , markerZ
  3. /debugscript 3 اكتب بالكونسول او بـ الشات و اططرح الخطأ اللي موججود أسفل الشاشة
  4. +1 و إن شاء الله يطبقون على ششأن تتنظم الموآضيع كلن بـ مكانه
  5. ألإحداثيات تججيبها من السسيرفر عن طريق لوحة الأدمنية أو لوحة الـ أف1 Position ;
  6. Cola1 = createColCircle(907.19921875, 1848, 10) Cola1 = createColCircle(x , y , z) Cola1 = الإختصار ححق الكود كامل x , y , z = الإحداثيات
  7. انت اللي تبيه حدث عند ضغط الزر " addEventHandler("onClientGUIClick",root, function() if source == BTN_name then -------- Your Code end end )
  8. ججرب ذا سيرفر a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) addEventHandler('onMarkerHit', Marker, function ( hitPlayer ) local accName = getAccountName ( getPlayerAccount ( hitPlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) setTimer(moveObject,12000,1,a1,7000,907.19921875, 1841.5, 15.699999809265) setTimer(moveObject,12000,1,b1,7000,868.29998779297, 1728.4000244141, 30.10000038147) setTimer(moveObject,12000,1,c1,7000,892, 1764.1999511719, 31.799999237061) end end )
  9. lua code إسستخدم على شأن يجي الككود أوضضح و ججرب ذا wnd = guiCreateWindow(0.3821,0.1458,0.216,0.5117,"مود اخذ فلوس",true) TabPanel = guiCreateTabPanel(10,22,276,362,false,wnd) tab3 = guiCreateTab("Tab",TabPanel) Button = guiCreateButton(6,319,267,36,"اضغط هنا",false,tab3) Image = guiCreateStaticImage(58,32,182,236,"images/mtalogo.png",false,tab3) bindKey("F2", "down", function() guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) guiSetInputEnabled(guiGetVisible(wnd)) end) comboBox = guiCreateComboBox(70, 85, 191, 54," player", false, tab3) for id, player in ipairs(getElementsByType("player")) do guiComboBoxAddItem(comboBox, getPlayerName(player)) end
  10. اططرح كودك واللي قدرت عليه .. ورآحح نصحح الأخطاء إن شاء الله
  11. وكل مرة تبي الكود جاهز ؟؟ سو اللي تقدر و نصحح لكـ بإذن الله
  12. والله انت كلامكـ ألغاز ..! يمكن تقصد عند ضغط الزر ؟ onClientGUIClick هذآ إيفنت و تححط معه وظيفة و بـ داخلها الأكواد يعني تبي الزر يجيب نافذة ثانية سو كذا addEventHandler("onClientGUIClick",root, function() if source == BTN_name then guiSetVisible( YourNewGUI , true ) end end )
  13. سطر 9 و 20 مو ضروري تحطهم + عندكـ خطأ بـ الإيفنت + اللي رآحح تلمسه على شأن تبدأ الوظيفة ؟ ColShape وين الـ
  14. تححتاج إلى هذي الأكواد guiSetVisible showCursor guiSetInputEnabled
  15. ططيب مآششتغل شوف الأخطاء و صصلحها debugscript 3 عن طريق
  16. ججرب ذا كلنت bindKey("F2", "down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FFFF9900") guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FFFF9900") function refreshStats() if guiGetVisible(GUIEditor_Image[1]) then guiSetText(GUIEditor_Label[10],getPlayerPing(localPlayer)) guiSetText(GUIEditor_Label[12],"$"..getPlayerMoney()) guiSetText(GUIEditor_Label[5],getPlayerName(localPlayer)) guiSetText(GUIEditor_Label[9],getPlayerSerial()) guiSetText(GUIEditor_Label[7],getElementModel(localPlayer)) guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID")) end end addEventHandler("onClientRender", root, refreshStats) ------------------------------------command buy function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[3]) then triggerServerEvent ("buyFlip", getLocalPlayer()) elseif (source == GUIEditor_Button[1]) then triggerServerEvent ("buyNitro", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("buyRepair", getLocalPlayer()) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ("buyInvisible", getLocalPlayer()) elseif (source == GUIEditor_Button[5]) then username = guiGetText(GUIEditor_Edit[1]) password = guiGetText(GUIEditor_Edit[2]) triggerServerEvent("onLoginAndRegister",getLocalPlayer(),username,password) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) سيرفر function LoginAndRegister ( player, username, password ) local account = getAccount ( username, password ) if ( account ~= false ) then if (logIn ( player, account, password ) == true) then else outputChatBox ( " Login Error !", player, 255, 0, 0 ) end else account = addAccount ( username, password ) if (logIn ( player, account, password ) == true) then outputChatBox ( "Register Details : [ Username ] : #00FF00" .. username .. " #FFFF1A[ Password ] : #00FF00" .. password .. "", player, 255, 255, 0 , true ) else outputChatBox ( "Register Error!", player, 255, 255, 0 ) end end end addEvent( "onLoginAndRegister", true ) addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) function qq() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("#ffffff[#ffffff ".. getPlayerName ( source ) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end addEvent("buyNitro", true) addEventHandler( "buyNitro",getRootElement(),qq ) function fix() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("#ffffff[#ffffff ".. getPlayerName ( source ) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("buyRepair", true) addEventHandler( "buyRepair",getRootElement(),fix ) function flip() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("#ffffff[#ffffff ".. getPlayerName ( source ) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end addEvent("buyFlip", true) addEventHandler( "buyFlip",getRootElement(),flip ) function huntter() if (getPlayerMoney (source) >= 3000000) then takePlayerMoney(source, 3000000) x,y,z = getElementPosition(source) hunter = createVehicle(425, x, y, z) warpPedIntoVehicle(source,hunter) outputChatBox("#ffffff[#ffffff "..getPlayerName(source).." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) outputChatBox("** ALERT HUNTER DETECTED **", 255, 000, 000, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000 #ffffff]", source, 255, 255, 255, true) end end addEvent("buyHunter", true) addEventHandler("buyHunter", root,huntter) function invissble() if ( getPlayerMoney (source) >= 15000 ) then takePlayerMoney(source, 15000) outputChatBox("#ffffff[#ffffff #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) setElementAlpha(getPedOccupiedVehicle(source),0) setElementAlpha(source,0) setPlayerNametagShowing(source, false) setTimer( setElementAlpha, 60000, 1, source, 500, true) setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) else outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) end end addEvent("buyInvisible", true) addEventHandler("buyInvisible", root,invissble) function hyddra() local pname = getPlayerName( source ) if ( getPlayerMoney (source) >= 150 ) then takePlayerMoney(source, 150) x,y,z = getElementPosition( source ) hydra = createVehicle ( 520, x, y, z ) warpPedIntoVehicle(source,hydra) outputChatBox("Hydra Obtained", source, 255, 255, 0, true) outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) else outputChatBox("You Not Have enough money.", source, 0, 0, 0, true) end end addEvent("buyHydra", true) addEventHandler("buyHydra", root,hyddra)
  17. والله ططلبكـ مهوب وآضضح إذا كنت تقصد تضغط زر و تفتح نافذه جديدة استخدم ذا guiSetVisible أو إذا قصصدكـ ربط ملفين كلنت + سيرفر إسستخدم التريقر إذا كآن كلنت و تبي تربطه بـ سيرفر اسستخدم ذا https://wiki.multitheftauto.com/wiki/TriggerServerEvent وإذا كان سيرفر و تبي تربطه بـ كلنت اسستخدم ذا https://wiki.multitheftauto.com/wiki/TriggerClientEvent
  18. button = guiCreateButton(12,294,229,42,"اضغط هنا",false,tab3) tab3 كلمة هذآ الأرقومنت اللي راحح يشبكـ الكود مع النافذه او التاب =]
  19. الموقع اللي تتصل عليه و يحححول الفلوس إلى الإسستضافة .. $$ يبي فايدة
  20. والعقاب بكيفكـ تزيله و تحطه ؟؟
  21. Thanks , i had tried " putty " program and he is good !
×
×
  • Create New...