Jump to content

Tete omar

Members
  • Posts

    3,267
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Tete omar

  1. Tete omar

    getLetters

    if i want to get gui-edit letters , or how much letter did the player entered is there any function or something ? should i use gettok ?
  2. onClientPlayerJoin sometimes doesn't work. anyway thanks for the both of you
  3. انتهى الموضوع من زمان شكراً على اية حال...
  4. function loginPanel() setTimer(guiSetVisible, 10000, 1, GUIEditor_Window[1], true) guiSetInputEnabled( true ) end addEventHandler("onClientPlayerJoin", getRootElement(), loginPanel) i see no error or wrong in this code but for good reason i use guiSetVisible( GUIEditor_Window[1], false ) after i make the window like that guiCreateWindow(.....) -- and the other stuff guiSetVisible( GUIEditor_Window[1], false ) so what's a problem ?
  5. شكراً تابل بالنسبه للي يبي مساعده باهالموضوع بعد ما تسويها بال GUIEditor حط هالكود local width, height = 579, 276 local x = (screenX/2) - (width/2) local y = (screenY/2) - (height/2) بعدين حط x,y زي كذا guiCreateWindow(x,y, ولا تنسى تنسخ الاحداثيات الي قبلها وتحطها بدال 579, 276 مثال local screenX, screenY = guiGetScreenSize() local width, height = 579, 276 local x = (screenX/2) - (width/2) local y = (screenY/2) - (height/2) GUIEditor_Window[1] = guiCreateWindow(x,y,width,height,"Example",false) .....
  6. السلام عليكم ورحمة الله وبركاته انا لمن اسوي نافذه بدون ما استخدم guiGetScreenSize اكيد في شي راح يصير غلط مع الناس الي شاشتهم اقل من شاشتي الي هي ال resolution حقت الشاشه بس للأسف ما عرفت استخدم guiGetScreenSize بشكل صحيح ولمن استخدمتها النافذه الي سويتها صارت ملخبطه والأزارير تلخبطت وكل شي فــ ابي هالنافذه loginWindow = guiCreateWindow(419,238,579,276,"|LSR|Login",false) وهالنافذه registerWindow = guiCreateWindow(405,238,599,340,"|LSR|Register",false) يكونو مع كل الشاشات
  7. @TAPL i can spawn my self using F whenever i want, not after 5 sec @jaysds i can't press F anymore lol and thanks for the both of you
  8. Great work and nice song by the way "tutorial video" good luck
  9. fadeCamera هذي مو لازم يعني لمن يتسوالك سباون يجيك شاشة سودة بعدين ينزلك في المنطقة المحددة الخ .. المهم سويها onPlayerJoin
  10. ممكن ليش لا استخدم setCameraMatrix -- هذي تحط الكام في منطقة بعيد عن الاعب وحط المكان الي تبي السيارات تظهر فيه
  11. زي كذا hassan = {} -- هنا بين القوسين تحط الاي دي حق السياره الي تبيها -- مثلاً -- hassan = { --540, 456 الخ ... --} hassanksa = {} -- هنا بين القوسين تحط الايدي حق الشخصيه الي تبيها -- مثلاً -- hassanksa = { --14, 0, 123 الخ... --} function hassanAgain() hassan[1] = createVehicle(getElementModel(getRootElement()), x, y, z, rx, ry, rz) hassanksa[1] = createPed(getElementModel(getRootElement()), x, y, z, rx, ry, rz) end
  12. يب , خذ الاي دي حق كل شخصيه وسياره تبيها وحطها بال table بس سوي 2 table عشان لا شي يتلخبط
  13. full code function setCameraOnPlayerJoin() fadeCamera(source, true, 1); setCameraMatrix(source, -2135.708984375, -187.71142578125, 157.66786193848, 0, 0, 0); setTimer( bindKey, 5000, 1, source, "F", "down", herewego ) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin); function herewego ( thePlayer ) gX, gY, gZ = getElementPosition ( thePlayer ) setCameraTarget ( thePlayer ) setElementPosition ( thePlayer, 2450.7463378906, -1659.6678466797, 13.3046875 ) fadeCamera(source, true, 1); setElementFrozen ( thePlayer, false ) unbindKey( thePlayer, "F", "down", herewego ) end
  14. onClientGUIClick guiGetScreenSize guiCreateStaticImage createPed createVehicle setPedSkin warpPedIntoVehicle playSound -- اذا تبي يجي صوت بالناسبة للسيارات والشخصيات لازم تسوي table عليهم واستخدم onPlayerJoin
  15. استخدم GUIEditor أسهل لك حمل من هنا: https://community.multitheftauto.com/ind ... ils&id=141
  16. Hello guys i got a problem here , setTimer( bindKey, 5000, 1, source, "F", "down", herewego ) i want to set timer for bindKey , but it doesn't work debugscript : nothing
  17. على فكره يمديك تستخدم onClientGUIClick على كل ال GUI elements يعني اذا تبيها صوره سوي صوره باستخدام guiCreateStaticImage واختصرها باي كلمة وسوها كذا addEventHandler("onClientGUIClick", الاختصار, alfunction )
×
×
  • Create New...