-
Posts
1,336 -
Joined
Everything posted by The Killer
-
X addEventHandler ("onMarkerHit", resourceRoot, function (player) if getElementType (player) == "player" then setPedAnimation (player, "group", "anim") setTimer (function () setPedAnimation (player, false) end, 5000, 1) end end ) كذا تقدر تسوي اكثر من ماركر في نفس المود بدون ما تسوي لها ايفنتات كثيره بس تحط هذا اليفنت وتحط الماركرات الي تبيها وهو تلقائيا راح يخليها تشتغل مع الايفنت اما اذا كان عنندك ماركرات ثانيه في نفس المود ولها وظائف غير ف لازم تسوي جدول table
-
جرب local hillArea = createColRectangle ( -1381.53, -533.78, 100, 100 ) addEventHandler("onClientColShapeHit", hillArea, function (hitPlayer) if hitPlayer == localPlayer then local sound = playSound("sound.mp3") setSoundVolume(sound, 0.9) end end )
-
createRadarArea ( -590, -207, 175, 180, 0, 255, 252, 150 ) abu = createColRectangle ( -590, -207, 175, 180) local timer = { } addEventHandler ("onColShapeHit", abu, function (player) if isTimer (timer[player]) then killTimer (timer[player]) timer [player] = nil end if getElementType (player) == "player" then giveWeapon (player, 31, 5000, true) timer [player] = setTimer (function () giveWeapon (player, 31, 0, true) end, 50, 0) end end ) addEventHandler ("onColShapeLeave", abu, function (player) if isTimer (timer [player]) then killTimer (timer [player]) timer [player] = nil end takeWeapon (player, 31) end )
-
, ادري يا عاشق انا حبيت اسويها كذا اذا هو يبي يسويها بطريقتك خلها يسويها انا سويتها كذا Edit # حياك الله
-
createRadarArea ( -590, -207, 175, 180, 0, 255, 252, 150 ) abu = createColRectangle ( -590, -207, 175, 180) local timer = { } addEventHandler ("onColShapeHit", abu, function (player) if isTimer (timer[player]) then killTimer (timer[player]) timer [player] = nil end if getElementType (player) == "player" then giveWeapon (player, 31, 5000, true) timer [player] = setTimer (function () giveWeapon (player, 31, 0, true) end, 50, 0) end end ) addEventHandler ("onColShapeLeave", abu, function (player) if isTimer (timer [player]) then killTimer (timer [player]) timer [player] = nil end end )
-
local timer = { } addEventHandler ("onColShapeHit", colName, function (player) if isTimer (timer[player]) then killTimer (timer[player]) timer [player] = nil end if getElementType (player) == "player" then giveWeapon (player, 31, 5000, true) timer [player] = setTimer (function () giveWeapon (player, 31, 0, true) end, 50, 0) end end )
-
المشكله من مود القروبات نفسه حق احمد فيف , انصحك تستخدم حق العقرب لأن حق احمد فيف القروبات ما يقدرون يقتلون بعض حق العقرب يقدرون اذا تبي تمنعهم لازم تسوي كود خاص فلازم حق العقرب
-
افتح الملف وبعدين تلقى فوق ع اليمين ملف اضغط عليه وبعدين اضغط حفظ بأسم وبيجيك اكتب اسم الملف تكتب Client.lua وبعدين تنزل تحت بتلقى مستطيل طويل مكتوب فيه الترميز اضغط عليه وبعدين اختار UTF-8
-
Client side: Marker = createMarker(1578.64, 634, 2132.78,'cylinder', 300, 0, 0, 0, 0) function ahmed1010() if getElementData( localPlayer, 'gang' ) == "[MsN]" then removeEventHandler ("onClientPlayerDamage", root, msn) outputChatBox("يمكنك قتل اعضاء عصابتك هنا", 255, 0, 0) end end addEventHandler("onClientMarkerHit", Marker,ahmed1010) addEventHandler ("onClientMarkerLeave", Marker, function () if getElementData (localPlayer, "gang") == "[MsN]" then addEventHandler ("onClientPlayerDamage", root, msn) end end) function msn () if getElementData (localPlayer, "gang") == "[MsN]" then cancelEvent () end end
-
استدبل حقك بذا dxDrawRectangle(0, 0, 1024, 768, tocolor(87, 32, 188, 255), false, false, true, false, false)
-
جرب انسخها مره ثانيه
-
جرب ذا انا قلت لك img1 = guiCreateStaticImage(10, 111, 375, 525, "images/drift.png", false) img2 = guiCreateStaticImage(399, 158, 310, 460, "images/Gang.png", false) img3 = guiCreateStaticImage(750, 156, 258, 472, "images/zombie.png", false) showCursor (true) addEventHandler("onClientRender", root, function() dxDrawRectangle(0, 0, 1024, 768, tocolor(87, 32, 188, 255), false, false, true, false, false) dxDrawText("F.Q Servers", 304, 0, 719, 94, tocolor(220, 0, 0, 255), 3.00, "pricedown", "left", "top", false, false, true, false, false) end ) addEventHandler ("onClientGUIClick", root, function () if source == img1 then triggerServerEvent ( "RedirectPlayer_1", localPlayer ); elseif source == img2 then triggerServerEvent ( "RedirectPlayer_2", localPlayer ); elseif source == img3 then triggerServerEvent ( "RedirectPlayer_3", localPlayer ); end end) addEvent ( "RedirectPlayer_1", true ); addEventHandler ( "RedirectPlayer_1", root, function ( ) redirectPlayer ( client, "5.231.54.172", 44444 ); end ); addEvent ( "RedirectPlayer_2", true ); addEventHandler ( "RedirectPlayer_2", root, function ( ) redirectPlayer ( client, "5.231.54.172", 55555 ); end ); addEvent ( "RedirectPlayer_3", true ); addEventHandler ( "RedirectPlayer_3", root, function ( ) redirectPlayer ( client, "5.231.54.172", 44443 ); end );
-
انسخ الكود مره ثانيه
-
-,-"
-
جرب هذا ععدلته شوي بدال ال dx حطيت لك guiCreateStaticImage img1 = guiCreateStaticImage(399, 158, 310, 460, "drift1.png", false) addEventHandler ("onClientGUIClick", root, function () if source == img1 then triggerServerEvent ( "RedirectPlayer_1", localPlayer ); end end) -- Server -- addEvent ( "RedirectPlayer_", true ); addEventHandler ( "RedirectPlayer_", root, function ( ) redirectPlayer ( client, "5.231.54.172", 44444 ); end );
-
لا على اسم الصوره
-
هممم روماند ما اتوقع ان ردك له فائده , لانه رد قبلك + اسم الايديت مو اللوحه
-
مع عدم الاهانه لكن اقولك ان الوظيفه مالها فائده لو تلاحظ مكتوب useful هذا في اسم الموضوع = مفيد اما كودك اعذرني اقولك انه مو مفيد يعني بدون ما تسوي الي سويته انت تقدر تسويه ببساطه اعطيك مثال صغير addCommandHandler ("test", function (player, cmd, id, x,y,z) if isElement (vehicle) then destroyElement (vehicle) end vehicle = createVehicle (id, x,y,z) warpPedIntoVehicle (player, vehicle) end ) مايحتاج تسوي لها وظيفه خاصه عشان تحطها في امر في اخر شي
-
للعرب , يختص بالبرمجة MTA هل تؤيد افتتاح منتدى
The Killer replied to ' ρяofзśŝoя 亗's topic in القسم العام
طبعا يا اخ ksa كل المنتديات مو كلها اكثرها فيها نفس قوانينك يعني معروف , اي موضوع فيه هواش , كلام ما له داعي معروف انه بيتقفل او ينحذف كل منتدى يبي سمعته تكون زينه مو سيئه . -
addCommandHandler ("test", function (player) if getElementData (player, "gang") == "group name" then setPedFightingStyle (player, 6) end end )
-
المنتدى كله دروس , لو انك تبي تتعلم كان لقيتها
