Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. مالي مواقع جنوط You,re Welcome . engineLoadTXD engineImportTXD engineLoadDFF engineReplaceModel
  2. Line 4 --> Replace theMarker with your marker name . -- Server addEventHandler( "onMarkerHit", root, function ( player ) if ( getElementType ( player ) == "player" ) then triggerClientEvent( "onClientPlayerDamage", getRootElement( ), player ) end end ) Line 2 --> Replace root with your marker name . Wrong,The code is not complete .
  3. function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "logo.png", relative2 ) local mainBackgroundLabel = guiCreateLabel ( 0, 0, 250, 100, titleBarText2, false, mainBackground ) guiSetFont ( mainBackgroundLabel, newFont ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(275,110,800,600,"",false) guiSetVisible(GUIEditor_Window[1],false) guiCreateStaticImage( 115,480,90,90, "images/00.png", false,GUIEditor_Window[1] ) n3 = guiCreateButton(121,570,72,24,"تـركـيـب",false,GUIEditor_Window[1]) guiCreateStaticImage( 585,480,90,90, "images/0.png", false,GUIEditor_Window[1] ) h = guiCreateButton(594,570,72,24,"تـركـيـب",false,GUIEditor_Window[1]) guiCreateStaticImage( 13,55,100,100, "images/1.png", false,GUIEditor_Window[1] ) b2 = guiCreateButton(25,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 176,55,100,100, "images/2.png", false,GUIEditor_Window[1] ) b3 = guiCreateButton(190,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 342,55,100,100, "images/3.png", false,GUIEditor_Window[1] ) b4 = guiCreateButton(355,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 512,55,100,100, "images/4.png", false,GUIEditor_Window[1] ) b5 = guiCreateButton(525,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 686,55,100,100, "images/5.png", false,GUIEditor_Window[1] ) b6 = guiCreateButton(700,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 13,190,100,100, "images/6.png", false,GUIEditor_Window[1] ) b7 = guiCreateButton(25,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 176,190,100,100, "images/7.png", false,GUIEditor_Window[1] ) b8 = guiCreateButton(190,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 342,190,100,100, "images/8.png", false,GUIEditor_Window[1] ) b9 = guiCreateButton(355,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 512,190,100,100, "images/9.png", false,GUIEditor_Window[1] ) b10 = guiCreateButton(525,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 686,190,100,100, "images/10.png", false,GUIEditor_Window[1] ) b11 = guiCreateButton(700,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 13,325,100,100, "images/11.png", false,GUIEditor_Window[1] ) b12 = guiCreateButton(25,430,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 176,325,100,100, "images/12.png", false,GUIEditor_Window[1] ) b13 = guiCreateButton(190,430,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 342,325,100,100, "images/13.png", false,GUIEditor_Window[1] ) b29 = guiCreateButton(355,430,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 512,325,100,100, "images/14.png", false,GUIEditor_Window[1] ) b28 = guiCreateButton(525,430,72,23,"اخـتـيـار",false,GUIEditor_Window[1]) guiCreateStaticImage( 686,325,100,100, "images/15.png", false,GUIEditor_Window[1] ) b17 = guiCreateButton(700,430,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player" and (player == localPlayer)) and ((isPedInVehicle(player))) then guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end ) function onGuiClick (button, state, absoluteX, absoluteY) if (source == n1) then triggerServerEvent ("n1", getLocalPlayer()) elseif (source == n2) then triggerServerEvent ("n2", getLocalPlayer()) elseif (source == n3) then triggerServerEvent ("n3", getLocalPlayer()) elseif (source == h) then triggerServerEvent ("h", getLocalPlayer()) elseif (source == b2) then triggerServerEvent ("1", getLocalPlayer()) elseif (source == b3) then triggerServerEvent ("2", getLocalPlayer()) elseif (source == b4) then triggerServerEvent ("3", getLocalPlayer()) elseif (source == b5) then triggerServerEvent ("4", getLocalPlayer()) elseif (source == b6) then triggerServerEvent ("5", getLocalPlayer()) elseif (source == b7) then triggerServerEvent ("6", getLocalPlayer()) elseif (source == b8) then triggerServerEvent ("7", getLocalPlayer()) elseif (source == b9) then triggerServerEvent ("8", getLocalPlayer()) elseif (source == b10) then triggerServerEvent ("9", getLocalPlayer()) elseif (source == b11) then triggerServerEvent ("10", getLocalPlayer()) elseif (source == b12) then triggerServerEvent ("11", getLocalPlayer()) elseif (source == b13) then triggerServerEvent ("12", getLocalPlayer()) elseif (source == b29) then triggerServerEvent ("13", getLocalPlayer()) elseif (source == b28) then triggerServerEvent ("14", getLocalPlayer()) elseif (source == b17) then triggerServerEvent ("15", getLocalPlayer()) elseif (source == b14) then triggerServerEvent ("16", getLocalPlayer()) elseif (source == b15) then triggerServerEvent ("17", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) عليك احداثيات الماركر بس ذذ سطر : 51
  4. الكود لـ فتح نافذهـ وانت في سيارهـ كذا بس ولا يجونك ناس يعطونك خرابيص -_-"!: marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player" and (player == localPlayer)) and ((isPedInVehicle(player))) then guiSetVisible(النافذهـ,true) showCursor(true) end end )
  5. marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player" and (player == localPlayer)) and ((isPedInVehicle(player))) then guiSetVisible(النافذهـ,true) showCursor(true) end end ) الكود بيكون كذا عليك تضيفة للمود وتكمل الباقي ذذ
  6. يا يزن عطيتك الاكواد غير لوحتك وغير الميمو بدال الميمو ايديت وبس .
  7. ماتبي نسوي لك شاهي بعد ؟
  8. Hmm.. Read My Post Again Add onPlayerWasted .
  9. setElementModel isObjectInACLGroup triggerServerEvent "onPlayerLogin" "onClientGUIClick" "onPlayerWasted"
  10. اللوحة لحسة شوي ماتقدر تسويها على نفس لوحتك لانة سهله -_-" ! ؟
  11. -- Client GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(-7,480,799,599,"لوحة تسجيل دخول",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Label[1] = guiCreateLabel(438,524,359,68,"برمجة يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Memo[1] = guiCreateMemo(84,181,614,43,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(516,361,124,47,"login",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(192,369,122,49,"register",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(86,255,612,41,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(8,181,71,41,"NaIm",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(8,267,62,30,"pass",false,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(717,191,63,26,"اسمك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(714,262,59,30,"كلمة سر",false,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(19,527,161,65,"By yaZan",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(10,26,776,154,"images/yazan.png",false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F2","down",open) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(GUIEditor_Memo[1]) local pass = guiGetText(GUIEditor_Memo[2]) if ( source == GUIEditor_Button[1] ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onLogin",localPlayer,user,pass) end elseif ( source == GUIEditor_Button[2] ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onRegister",localPlayer,user,pass) end end end ) -- Server addEvent("onLogin",true) addEventHandler("onLogin",root, function (user,pass) local acc = getAccount(user,pass) if ( acc ) then logIn(source,acc,pass) else outputChatBox("* Worng Username Or Password",source,255,0,0) end end ) addEvent("onRegister",true) addEventHandler("onRegister",root, function (user,pass) local acc = getAccount(user,pass) if ( acc ) then outputChatBox("* This Account is Already Exist",source,255,0,0) else addAccount(user,pass) outputChatBox("* You,re User : " .. user,source,255,255,255) outputChatBox("* You,re Pass : " .. pass,source,255,255,255) end end ) وانت مسوي ميمو ماسويت ايديت ممكن يحصل مشاكل ما اعتقد بس عادهـ ايديت يحتاج ادمنية السكربت resource.Name
  12. خرابيط كله شوف الموضوع حطيتة لك فوق كل شيء جاهز ذذ بس عددل الكلنت خذ الفنكشن onClientGUIClick . كامل وعدلة لـ كودك
  13. guiGetText triggerServerEvent getAccount logIn addAccount وهنا تحصل كل شيء كامل جاهز :: https://forum.multitheftauto.com/viewtopic.php?f=160&t=52765 انسخ كود كلنت من اخر صفحة وسيرفر من اول صفحة وعدل على الكلنت
  14. addCommandHandler("open", function () guiSetVisible(wdwWelcome,true) showCursor(true) end)
  15. حياك يالغالي واذا بغيت تسوي وظيفة مثلا مثل تقفل وتشغل لازم تسوي اختيارات ذذ .
  16. You do not need when the player join because it is the window will be visible.
  17. -- Client Side ..! GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(26,35,773,574,"لوحة يـز ـن",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"الورشة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(349,156,191,51,"مقر عصابة دارك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(572,156,161,51,"بيت يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(221,356,361,45,"لتشغيل سياره او اطفاء",false,GUIEditor_Window[1]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(304,128,0,0,false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F2","down",open) isOn = true addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then setElementPosition( localPlayer, x, y, z) elseif ( source == GUIEditor_Button[2] ) then setElementPosition( localPlayer, x, y, z) elseif ( source == GUIEditor_Button[3] ) then setElementPosition( localPlayer, x, y, z) elseif ( source == GUIEditor_Button[4] ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end )
  18. خبصت الموضوع -_-" دخلت اكواد على اكواد وضيعت طريق الموضوع كذا الناس ماتحب تساعدك -_-" !
  19. iPrestege

    Question

    Any kind of property? How are you going to do?Object?Or?
  20. ماهو انا انا بس عدلت الوظيفة ليسس الا ذذ ولا الصور واللوحة انت .
  21. " was missing thanks a lot ! Yes exactly.
×
×
  • Create New...