Leaderboard
Popular Content
Showing content with the highest reputation on 30/01/17 in all areas
-
3 points
-
اقوي كودين بالنسبه لي هم setElementData getElementData لانهم مشترك كلنت و سيرفر وكذلك تستخدمهم بمودات منفصله وكانهم بمود واحد3 points
-
maxPlayer = 0 function dmarPosition ( source, commandName, x, y, z ) if ( maxPlayer <= 5 ) then setElementPosition ( source, x, y, z ) maxPlayer = maxPlayer + 1 end end addCommandHandler ( "jgjoin", dmarPosition )2 points
-
السلام عليكم ورحمة الله وبركاتة لقد تم السماح للاعضاء بتغيير اسمائهم بنفسهم من دون الحاجة الي التواصل مع ادارة المنتدي لتغييره لهم في اعلي الصفحة بجهة اليمين ( بالقرب من صورتك في المنتدي و اسمك ) ( Account Settings ) يمكنك إيجاد خاصية تغيير الاسم في إعدادات الاكاونت كما يمكنك الإنتقال لصفحة تغيير الاسم بشكل اسرع من خلال : https://forum.multitheftauto.com/settings/username/ : وقبل ان تغير اسمك يرجي عدم مخالفة هذه القوانين والا ستعرض نفسك للعقوبة لتجنب إساءة أستخدام هذه الخاصية , يمكنك تغيير اسمك مره واحده فقط كل 180 يوم ( او اكثر ) اذا قمت بتغيير اسمك مسبقأ , واردت ان تقوم بإرجاع اسمك السابق , لن نرجعه لك في حال قمت بمراسلة الإداره علي سبيل المثال : في حال قمت بتغيير اسمك ومن ثم لم يعجبك , نحن لن نقوم بتغييره لك الا بعد انتهاء مدة الـ 180 يوم يرجي عدم إستخدام هذه العلامة , في اسمك لأنها ستتسبب في إتلاف بعض الاشياء في حسابك علي سبيل المثال : لن تتمكن من إستلام الرسائل الخاصة من اي عضو في المنتدي Disable my messenger وإذ كان هذا في الواقع ماتريده ( عدم إستلام الرسائل في الخاص ) , ببساطة يمكنك تعطيلها , اذهب لصندوق الرسائل ومن ثم ستجد في اسفله خيار اسمه لاتحاول إنتحال اسم احد ادارة المنتدي او مشرفين المنتدي او احد الاعضاء وعقوبة ذلك مذكوره في قوانين المنتدي وبالتالي , يرجي التفكير جيدأ قبل ان تغير اسمك الموضوع الاصلي ستجده : هنا @jhxp : هو من أنشأ الموضوع وبالتوفيق للجميع1 point
-
I would like to show you a glimpse of a future server I am developing - Project Beast. This is made purely with drawing functions, there is no CEF involved. More information here: https://forum.projectbea.st/topic/135-project-beast-revelation-2-login-panel-final-server-upgrade/1 point
-
You can save data in lots of ways: if the data is relevant only for the current session of the server/resource, you can save the data at root/resourceRoot (this data will be lost on server restart/resource restart) You can also save data with accounts. The player must be logged in, as guests accounts will have their data deleted on disconnect You can use databases, using serials to identify the players... and many others The best way is using accounts in my opinion1 point
-
Use GeoIP tools: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3685 But you need to edit this resource because function to get city works only for Russia. Good luck!1 point
-
Returns This function returns a variable containing the requested element data, or false if the element or the element data does not exist. When getting data corresponding to a XML attribute, this is always a string. When the data is not found, it DOES return false. @Yazir your script seems fine. So: Are you sure the init script is called before the client? Are you sure the "player" parameter is correct? Maybe it's for some reason invalid, and the data is not set. Also an error is thrown Did you copied-pasted the scripts? (just to make sure there are no syntax errors in the script) From point 2, are there errors/warnings thrown in general? Check both clients and server As is said the script seems fine to me, setElementData by default sync the data server<->client, and it depends on elements, shared between resources (so fetching the data from different resource is not the problem as you said). Try also adding (if you haven't done it yet) output inside the code blocks, so you "see" what's happening inside your scripts (this is just to check the "logic" part of the script in case point 4 is "there are no errors": in case the server block for some reason is skipped, the data will be false) That's all i can think right now1 point
-
You're using an outdated operating system. Please upgrade to Windows 7 soon. If you don't want to update, but want to install malware on your computer, feel free to download the Windows XP Service Pack 3 from http://www-pc.uni-regensburg.de/systemsw/winxp/sp3/WindowsXP-KB936929-SP3-x86-ENU.exe1 point
-
1 point
-
شف يالغالي اولا سوي على السياره داتا لما يخرج منها بسيريال اللاعب اللي خرج وتحقق ان المقعد حقه 0 بالنسبه للاخ ايكو فالاثنين مهمين المهم اكملك ثم سوي تحقق لما يجي يخش السياره لو الداتا ما تطابقت مع السيريال يسوي ريوترن1 point
-
Por lo que veo en tu LOG de error los archivos LUA no cargan de el servidor HTTP externo que supouestamente esta configurado aqui lo raro es que no tienes ninguna URL de un servidor HTTP externo agregado en el MTASA.CONF, me podrias decir si pasa eso unicamente con ese script o si con alguno mas? (Elimina el cache que tienes en la carpeta de MTA primero) para confirmar si es un error general o unicamente de ese script (Si se puede carga un script nuevo que jamas hayas usado, para ver si funciona)1 point
-
والله فكره مشكور لكن يبيلي اسوي واحد من الصفر فما اتوقع فكرتك تناسبني لكن على العموم بستخدمها1 point
-
1 point
-
الكلنت عامة localPlayer اما بالنسبه ل addCommandHandler فبيكون source وانا افضل انك تسوي كذا function(thePlayer) وتستخدم thePlayer1 point
-
1 point
-
addEventHandler('onClientGUIClick',root, function() if source == button6 or source== soon or source == button7 then outputChatBox ( "نعتذر , المود تحت الصيانه ", 255, 0, 0, true ) end end ) بالتوفيق1 point
-
1 point
-
1 point
-
1 point
-
vel =.8 function sPeedUp() if isElement(element) then if getElementData(element, "charging") == "on" then local x, y, z = getElementPosition(element) local prot = getPedRotation(element) local nx, ny = getPointFromDistanceRotation(x, y, vel, (prot)*-1) local clear = isLineOfSightClear( x, y, z, nx, ny, z, true, true, true, true, true, true, true) if clear == true then local lx, ly = getPointFromDistanceRotation(x, y, 1, (prot-8)*-1) local rx, ry = getPointFromDistanceRotation(x, y, 1, (prot+8)*-1) local clearl = isLineOfSightClear( x, y, z, lx, ly, z, true, true, true, true, true, true, true) local clearr = isLineOfSightClear( x, y, z, rx, ry, z, true, true, true, true, true, true, true) if clearl == true and clearr == true then local task = getPedSimplestTask(element) if task == "TASK_SIMPLE_PLAYER_ON_FOOT" then local nz = getGroundPosition ( nx, ny, z+1 ) if getDistanceBetweenPoints3D( x, y, z, nx, ny, nz) < 2 then setElementPosition(element, nx, ny, nz+1, false) end end end end end end end addEventHandler("onClientRender", root, sPeedUp)1 point
-
1 point
-
-- تجميعة الفنكشنات الي يبيها -- بترتيب onClientGUIClick triggerServerEvent Table = {}; table.unpack math.random getRandomPlayer getPlayerName outputChatBox1 point
-
1 point
-
You should make custom values for different kind of screens, to make sure they show up like you want.1 point
-
1 point
-
This can happen if you paste pre-styled content from another website directly into Forums' Rich-Text Editor, and said content used some weird color text formatting. I have rewritten your post (or more like re-styled it for IPS) so it shows up fine on MTA Dark Night theme now.1 point
-
الكود هذا كان مختصر عليك. لكن أرى الموضوع صار صفحتين ليه !؟ واحد يقول حط الداتا بيس بالميتا وواحد يقول حمل مودل على السيرفر و آخرتها يجي واحد ويغير الكود من داتا بيس خارجي إلى داخلي ! -- واذا على قضية انه يجيب اكثر من رسالة ف لا بأس بتعديل الكود الأولي عموماً بالتوفيق لصاحب الموضوع1 point