-
Posts
1,647 -
Joined
-
Last visited
Everything posted by iMr.Dawix~#
-
السر مو بإخفاء التحميل السر في ان ما نعتمد على ملف الـ meta.xml في تحميل الملفات يعني .. ملفات الاوبجكتات (السيارات) ماتكون موجودة داخل الـ Meta وتخفيهم؟getElementsByTypeتتوقع تقدر تجيب كل الألمنت الجوي والبرو قراس عن طريق صراحه لو تضبط تطلع حركه خطيره
-
root = getRootElement() ? https://wiki.multitheftauto.com/wiki/Element_tree الروت ماهو لاعب بس ادري انا قصدي انه يكون يتخطى كل شيء + فيه شيء يحول شيء لحرف مثل tostring ? لأني بجرب شيء
-
فيه شيء اسمه نسخ
-
كود ابو شنب يمنع ان اللاعب يدمح نفسه بهذي الأسلحه تقدر تسويه كذا بحيث انه ما يضرب الي بتيمه client side --غير مجرب function AboShanab ( attacker, weapon, bodypart ) if weapon == 16 or 17 or 18 or 37 or 41 or 42 and attacker == localPlayer then cancelEvent() end if getPlayerTeam(attacker) == getPlayerTeam(localPlayer) and weapon == 16 or 17 or 18 or 37 or 41 or 42 then cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), AboShanab )
-
جرب Markers = { [1] = { 2306.02466, 2445.57080, 10.8203 }, } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) end end ) addEventHandler( "onMarkerHit", TheMarker, function (player) if (getElementType(player) == ("player")) then setPedArmor (player, 100) setElementHealth (player,200) end end )
-
مدري وش تقول ما فهمت بس اذا تقصد ع الفنكشن شوف setElementCollidableWith ( theElement, withElement, enabled ) theElement: The element which colliding you want to change الألمنت اللي تبيه يدخل بالشيء withElement: The other element you wish the first entity to collide with الأشياء الي تبيه يدخل فيها الألمنت enabled: A boolean to indicate whether elements should be able to collide with eachother (true) or not (false) true ما يدخل داخلها false يدخل داخلها
-
طيب الكود ما ظبط آسف مستعجل كنت marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker,function (thePlayer) if getElementType ( thePlayer ) == "player" then setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end end )
-
' طيب يصير كذا ' marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, if getElementType ( thePlayer ) == "marker" then function (thePlayer) setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end ) marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker,function (thePlayer) if getElementType ( thePlayer ) == "player" then setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end end ) [/b]
-
--Client Side addCommandHandler("ghost",function (player) setElementCollidableWith(player,root,false) end)
-
+ الطلب الأول executeCommandHandler
-
الساعة والتاريخ واليوم ع ليبل|thx to #Mr.Pres[T]ege
iMr.Dawix~# replied to CRoW,,#'s topic in البرمجة
getRealTime -
^ متأكد أن الكود لك ؟
-
تقدر بس ما رح تنفع لأنه يتأكد من الحساب حقه واذا كان بالكونسل او لا فـ ما ينفع اول ما يدخل يتأكد يمكن ماله حساب بس اول ما يسوي امر تقدر كذا
-
60الكود سطر 18 يحط حد للسرعه انها ما تتعدى الـ
-
متأكد تتكلم عربي ؟
-
طيب جرب كود سعد حطيت له حدث اول ما يشتغل المود والصدم local timer = {} ---MR.S3D<3 function maxspeed() checkTimer(source) end) function checkTimer(Car) if not isElement(Car) then return end if not timer[Car] then timer[Car] = {} timer[Car]['timers'] = 0 end if not isTimer(timer[Car]['timers']) then timer[Car]['timers'] = setTimer ( function ( Vehicle ) if isElement(Vehicle) then setVehicleHandling ( Vehicle,'maxVelocity',60 ) end end, 5000, 1, Car) end end addEventHandler('onVehicleDamage',root,maxspeed) addEventHandler('onResourceStart',root,maxspeed)
-
try this.. *Client Side* *Server Side*
-
!! لازم له خصائص ادمنيه عشان يقدر يعطي باند
-
هههههه ول ليه اضفت كل هذي الاحداث والعفسه ^ local accName = getAccountName (getPlayerAccount ( source ) ) addEventHandler ( 'onPlayerLogin',root, function (account) if getPlayerAccount(account) ~= 'basemode' and isObjectInACLGroup ("user."..accName, aclGetGroup ("Console")) then banPlayer ( source, false, false, true, root, 'Dont try to Give Console Rights !!' ) end end)
-
يمكن كذا ؟ local accName = getAccountName ( getPlayerAccount ( source ) ) addEventHandler ( 'onPlayerLogin',root, function (account) if getPlayerAccount(account) ~= 'HernandezGFX' and isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then banPlayer ( source, false, false, true, root, 'Dont try to hack the Server !!' ) end end )
-
شوف اول ما نشغل المود اركب سياره واصدم فيها وبعدين حاول تتعدى سرعة 60
-
اكيد فيه مود ملغم عندك اذا استضافتك هدف هووست اكيد واحد من الي خربوا الوافي هكر صح؟
-
وش الي يمنع انك تحطهم كلهم سيرفر؟
