-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
قصدك تبي اسماء الفنكشن الي راح تستخدمهم صراحه حرام ان احد حتى يفكر يتعب نفسه و يجمع لك اسماء الفنكشن عشان احد يقدر يجمع لك الأكواد لازم يتخيل شكل المود و حنا نتكلم عن مود ضخم بآلاف الأسطر و صعب جداً تتخيل وش الأكواد الي بتكون فيه حتى أنا نفسي مدري وش بستخدم لو كنت بسوي قيم مود حرب عصابات لما تبرمج ما راح يجي الكود كله براسك مره وحده لما تبرمج راح تبدأ من الصفر و تبرمج تدريجياً نفس لما تبني بيت ولا ما لاحظت ان المودات في السيرفرات تتطور مع مرور الوقت تدريجياً؟ و عموماً الفنكشن الي راح تستخدمهم ما يحتاج احد يتعب نفسه و يكتبهم لان انا عارف ان انت ما تعرف تبرمج ولا راح تعرف تستخدمهم و لو كنت تعرف كان ما طلبتهم من اساس كان عرفتهم لحالك
-
https://community.multitheftauto.com
-
اضغط على السيارة مرتين او اضغط على السيارة مره + اضغط اف3
-
Server Side: triggerClientEvent(source, "takeLsd",getRootElement()) Client Side: function takeLSD ( localPlayer ) Remove localPlayer function takeLSD ( )
-
هذا الموضوع للمود كل المعلومات الي تبيها موجوده فيه https://forum.multitheftauto.com/viewtopic.php?f=108&t=43639
-
اضغط على الزر هذا راح يطلع لك قائمة بالأوبجكتات و الألمنت الي موجوده في الماب حقك اضغط على اي واحد منهم بيحطك جنبه
-
function DestroyRS(element) if (isElement(element) and getElementType (element) == "vehicle") and not (getElementModel(element) == 431) then local x, y, z = getElementRotation(element) local player = getVehicleController(element) if isElementWithinColShape(element, LineRS) then if (z > 90) and (z < 270) then if not isTimer(Check[element]) then Check[element] = setTimer(function(element, player) if player then outputChatBox("..................", player, 255, 0, 0, true) end destroyElement(element) Check[element] = nil end, 4000, 1, element, player) end else if isTimer(Check[element]) then killTimer(Check[element]) Check[element] = nil if player then outputChatBox("* Check", player, 255, 0, 0, true) end end end end end end
-
You need to get who is drive the vehicle. local player = getVehicleController(element) function DestroyRS(element) if (isElement(element) and getElementType (element) == "vehicle") and not (getElementModel(element) == 431) then local x, y, z = getElementRotation(element) local player = getVehicleController(element) if isElementWithinColShape(element, LineRS) then if (z > 90) and (z < 270) then if not isTimer(Check[element]) then Check[element] = setTimer(function(element) destroyElement(element) Check[element] = nil end, 4000, 1, element) end else if isTimer(Check[element]) then killTimer(Check[element]) Check[element] = nil if player then outputChatBox("* Check", player, 255, 0, 0, true) end end end end end end
-
I need to know how this function is called. function DSC( element )
-
Nvm i got what you mean, try this: function DestroyRS(element) if (isElement(element) and getElementType (element) == "vehicle") and not (getElementModel(element) == 431) then local x, y, z = getElementRotation(element) if isElementWithinColShape(element, LineRS) then if (z > 90) and (z < 270) then if not isTimer(Check[element]) then Check[element] = setTimer(function(element) destroyElement(element) Check[element] = nil end, 4000, 1, element) end else if isTimer(Check[element]) then killTimer(Check[element]) Check[element] = nil outputChatBox("* Check", root, 255, 0, 0, true) end end end end end
-
I start to get confused, currently what is doesn't work? I still don't know what you trying to do, you not showing enough code, there a lot of functions why do you need this much of functions and tables.
-
function DestroyRS( element ) if ( isElement(element) and getElementType (element) == "vehicle" ) and not ( getElementModel ( element ) == 431 ) then local x,y,z = getElementRotation ( element ) if isElementWithinColShape ( element, LineRS ) and (z > 90) and (z < 270) and not isTimer(Check [ element ]) then Check [ element ] = setTimer (function(element) destroyElement(element) Check [ element ] = nil end, 4000, 1, element) killTimer ( RST [ element ] ) RST [ element ] = nil outputChatBox ( "* Check", root, 255, 0, 0, true ) end end end
-
https://forum.multitheftauto.com/viewtopic.php?f=91&t=65917 You have infinite repetitions timer that why it was give you bad argument, when you destroy the vehicle you should destroy the timer and remove it from the table too. The output doesn't work? I am not sure if source is who triggered the function DSC, can you show how function DSC is called? I guess you will need to pass the source from DSC function to the timer. Also the IF statement in function DSC is unnecessary you can use elseif.
-
element is vehicle as you have just checked it at line 3. You can't output to vehicle . outputChatBox ( "* Destroyed", element, 255, 0, 0, true ) If you have used the right event, i guess you should use source. outputChatBox ( "* Destroyed", source, 255, 0, 0, true )
-
لوول ما يحتاج تعدل مود القروبات التعديل بيكون في نفس كود الأحتلال الي بالموضوع
-
Eh animations are to difficult to do... And thats not a bug. It won't show the same message twice. I did it to prevent a bug that would have occurred. هذا كان رد الي مبرمج المود على سالفه الأنميشن ( الحركة ) يقول انه صعب و هو فعلاً شوي صعب، انا يوم اسوي المود حقي ( موجود في حرب العصابات ) شوي عقدني
-
if (z >= 90) and (z <= 270) then
-
متأكد من اسم المود؟ لان بالموضوع انت حاط الكود كذا exports['TopChat']:sendClientMessage ( "#55D32B* [ "..name .." ] Has Bought Silenced ", getRootElement(), 255, 0, 0, true ) TopChat اسم المود بكودك TopBarChat يوم حملت المود من الرابط لقيت الأسم مختلف
-
انسخ الكود مره ثانية لان عدلت ردي و يمكن انت نسخت الكود قبل ما اعدل
-
Then your problem from line 9. Why you need to do it like this? if z == (z < 90) or z == (z > 270) then Try if (z < 90) or (z > 270) then Because compare < or > will return true/false and z will be a number you can't compare it with bool,
