-
Posts
3,267 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tete omar
-
Are you kidding me ? , this is absolutely out of the subject and you telling me learn lua ? thanks anyway it's not what i want also it's not working correctly. i made here when the player hit the " Marker " then create another marker and it's "Marker2" if i hit "Marker2" i think everything done , i want to repeat the action and recreate " Marker " again you understand me now ?
-
route system ?? what about it ? ------------------------------------------------------------------------------------------------------------------- didn't you understand what i want yet ?
-
route system ?? what about it ?
-
No, i didn't mean like that, i mean unlimited , infinity marker, doesn't end or stop like this script https://community.multitheftauto.com/ind ... ls&id=5271 when you done the final marker the first marker gonna show up again etc.. and the player keeps hitting the markers till he get bored. Castillo may knows that.
-
sorry !! i forgot something local Marker = createMarker( 2642.814453125, -1739.0861816406, 9.734375, "cylinder", 2, 0, 0, 0 ) function Trucko(thePlayer) setElementData(thePlayer,"wder",0) destroyElement( Marker ) givePlayerMoney( thePlayer ,3000 ) local Marker2 = createMarker( 2642.740234375, -1791.4304199219, 9.734375, "cylinder", 2, 0, 0, 0 ) addEventHandler("onMarkerHit", Marker2, function() setElementData(thePlayer,"wderz",1) destroyElement( Marker2 ) givePlayerMoney( thePlayer ,4000 ) end) end addEventHandler("onMarkerHit", Marker, Trucko) i made here when the player hit the " Marker " then create another marker and it's "Marker2" if i hit "Marker2" i think everything done , i want to repeat the action and recreate " Marker " again you understand me now ?
-
What about it what you mean ?
-
Hello there. function trucko(thePlayer) setElementData(thePlayer,"loling",0) destroyElement( Marker ) givePlayerMoney( thePlayer ,3000 ) local Marker2 = createMarker( 2642.740234375, -1791.4304199219, 9.734375, "cylinder", 2, 0, 0, 0 ) addEventHandler("onMarkerHit", Marker2, function() setElementData(thePlayer,"lolingsz",1) destroyElement( Marker2 ) givePlayerMoney( thePlayer ,4000 ) end) end addEventHandler("onMarkerHit", Marker, trucko) here's if the player hit Marker then create Marker2 i want here if the player hit Marker2 then create Marker again etc.. etc.. etc..
-
بس كان عندي اقتراح بسيط جداً مو كل شوية هجوله وبيس هجوله وبيس , سو فكرة جديدة مع سيرفر جديد مع افكار جديدة نبي السيرفر لا يطلع على بال اي احد مررة يعني سيرفر بفكرة مختلفة تماماً عن كل السيرفرات ومع ذالك , يجوك الاعبين ويستآنسون والسلام عليكم ورحمة الله وبركاته تقبل مروري
-
الله يوفقكك ويسعدك كما تسعد الاعبين .
-
Any error or debug messages ?
-
انت قصدك تشفر الملف تخليه غير متاح للآآخرين حمل هالبرنامج يشفرلك كل الكودات الي تسويها التحميل http://fabienwang.fr/share/mta/luacgui_v1.2.1.zip
-
بالتوفيق = D
-
عفواً
-
أنت لمن تسوي سكربت وتحطه .zip يمديك ترفعه على اي موقع تبيه هذي اول ميزة ثاني ميزة انو يخفف من مساحة الملف على ما اعتقد
-
عايدي Folder او ملف .zip ما فيه فرق بس الأفضل .zip
-
السلام عليكم ورحمة الله وبركاته أغلبكم هنا يحط كود GUI وفيه شي غلط أولاً بسم الله الرحمن الرحيم ونبدأ 1- لازم يكون ال gui element كلنت client side لو حطينا server side راح يعطيك اخطاء في debugscript ومعظمها Attempt to call '...' يعني لازم تخليها كلنت 2- لو انت تستخدم guieditor وما حطيت ال table حقت الشي الي سويته او مسحتها راح يعطيك ايررور في debugscript مثل ما قلنا في 1 راح يعطيك مثل هالايرور مثلاً GUIEditor_Window = {} GUIEditor_Window[1] = guiCreateWindow ( ... ) لو سويناها بدون GUIEditor_Window = {} راح يعطيك خطأ أو لو تبي تختصر وتسميها الاسم الي تبيه احذف GUIEditor_Window = {} وحط لها اسم جديد مثل myWindow = guiCreateWindow( ... ) 3- لو تشوف ال [1] و [2] و [3] لمن تسوي اي شي باستخدام guieditor مثال: GUIEditor_Button[1] = guiCreateButton( ... ) هذي الي ترقم ال GUIElement باستخدام guieditor يعني انت لو سويت زر جديد بعد ما خلصت زر اخر لازم تحطه [2] وإلا راح يتلخبط في قراية الكود ولو موجود 2 وتبي تسوي زر آخر حط 3 وهكذا... والسلام عليكم ورحمة الله وبركاته الي عنده أي مشكلة مع gui element يطرحها هنا انتظروني مع شرح جديد لشي آخر
-
Hello all, when i click on "English" button everything will be happened , but , there's a little problem , and i think it with the timer , i'm getting spawned every 10 sec or 5 watch this https://www.youtube.com/watch?v=TZez25s- ... e=youtu.be here's the codes server side function Airporting() setElementPosition( client, 1707.4298095703, 1607.8055419922, 10.015625 ) setCameraTarget( client ) end addEvent("Airporting", true) addEventHandler('Airporting', getRootElement(), Airporting) client side function iaccept() if ( source == English ) then guiSetVisible( GUIEditor_Window[7], false ) guiSetInputEnabled( false ) showCursor( false ) fadeCamera( false ) setTimer( function() fadeCamera( true ) triggerServerEvent("Airporting", localPlayer) end, 6000, 6) end end addEventHandler("onClientGUIClick", getRootElement(), iaccept) what's the problem ?
-
What's wrong here ?
-
You better learn LUA instead read this. https://wiki.multitheftauto.com/wiki/Scr ... troduction