Jump to content

K1NG

Members
  • Posts

    999
  • Joined

  • Last visited

Everything posted by K1NG

  1. هي كلها كول شيب لكن تختلف بالأشكال CreateColCircle > http://en.wikipedia.org/wiki/Circle createColSphere > http://en.wikipedia.org/wiki/Sphere : اما انت تقصد المستطيل، فهو بهالوظيفة ذي createColRectangle
  2. ! شلون يشري الدرع ؟ بأمر ولا بزر ولا كيف
  3. !! متى تبي هالتحقق يصير ؟ فهمنا وش السالفة
  4. https://forum.multitheftauto.com/viewtopic.php?f=119&t=49133#p481948
  5. يعني تبيه ينحفظ حتى لو طلع؟ يعني حتى لو طلع ودخل مفروض ينتظر 12 ساعة؟
  6. غلط شغلكـ اخوي، ياليت تتأكد من أكوادكـ قبل لاتحطها --- بالنسبة لصاحب الموضوع فيه وظيفة مسويها الأخ "مجنون فيك" ع اساس انها تجيب أيبي السيرفر، انا ماقد جربتها بس اذا ماضبطت يكون الغلط بالموقع الي يجلب الأيبي https://forum.multitheftauto.com/viewtopic.php?f=160&t=50111&start=45#p600340 + على كل حال انا رتبت لك الوظيفة عشان اسهل عليكـ فهمها : وع العموم هذا الكود كامل بجانب سيرفر، الي عليك تحط أيبي السيرفر بأول سطر وجرب originalServerIP = "ايبي السيرفر" local key = "lshift" function getServerIP ( ) callRemote ( "http://www.nub.hj.cx/getServerIp.php", function ( value ) if ( value ~= "ERROR" ) then ip = value end end ) return ip end addEventHandler ( "onResourceStart", resourceRoot, function ( ) if ( getServerIP ( ) ~= originalServerIP ) then cancelEvent ( ) outputChatBox ( "ممنوع سرقة المودات", root, 255, 0, 0, true ) else outputChatBox ( "* #0069c7Jump Mode By #ff00000.o", root, 255, 0, 0, true ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, key, "down", Jump ) end end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, key, "down", Jump ) end ) function Jump ( player ) if ( isPedInVehicle ( player) ) then local veh = getPedOccupiedVehicle ( player ) if ( isVehicleOnGround ( veh ) ) then local vx, vy, vz = getElementVelocity ( veh ) setElementVelocity ( veh, vx, vy, vz + 0.3 ) end end end اها طيب انا مثلأ ابي اسويه على التاج وش استخدم ؟ ها التاج g_Root = getRootElement() local chatTime = {} local lastChatMessage = {} addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then outputChatBox("* Do Not Flood !!!", source, 999, 0, 0 ) return else chatTime[source] = getTickCount() end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("DevGroup")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" * 〖 Programmer 〗 〖❤ﭑلمہزُهہهہ أنسس❤〗 :#ffff00 " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* [ŝeṟṽeṟ.ợωиeṟ]x " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #FFFF00〖 #2B60DE Console #FFFF00 〗 " .. getPlayerName ( source ) .. ":#800517 " .. msg, g_Root, math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* fgb2" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #6A287E 〖#8E35EF Head Admin #6A287E 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1453 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #842DCE〖#E56E94Level #00FFFF1 #842DCE〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1232 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 2 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 612 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 3 #3B9C9C〗" .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 712 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" #FF0000* #3B9C9C〖#48CCCD Level#00FFFF 4 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 5 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Admin 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Support")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Support 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. msg ) end end end ) local originalServerIP = "ايبي السيرفر" function getServerIP ( ) callRemote ( "http://www.nub.hj.cx/getServerIp.php", function ( value ) if ( value ~= "ERROR" ) then ip = value end end ) return ip end addEventHandler ( "onResourceStart", resourceRoot, function ( ) if ( getServerIP ( ) ~= originalServerIP ) then cancelEvent ( ) outputChatBox ( "ممنوع سرقة المودات", root, 255, 0, 0, true ) end end ) g_Root = getRootElement() local chatTime = {} local lastChatMessage = {} addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then outputChatBox("* Do Not Flood !!!", source, 999, 0, 0 ) return else chatTime[source] = getTickCount() end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("DevGroup")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" * 〖 Programmer 〗 〖❤ﭑلمہزُهہهہ أنسس❤〗 :#ffff00 " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* [ŝeṟṽeṟ.ợωиeṟ]x " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #FFFF00〖 #2B60DE Console #FFFF00 〗 " .. getPlayerName ( source ) .. ":#800517 " .. msg, g_Root, math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* fgb2" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #6A287E 〖#8E35EF Head Admin #6A287E 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1453 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #842DCE〖#E56E94Level #00FFFF1 #842DCE〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1232 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 2 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 612 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 3 #3B9C9C〗" .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 712 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" #FF0000* #3B9C9C〖#48CCCD Level#00FFFF 4 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 5 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Admin 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Support")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Support 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. msg ) end end end )
  7. . فقط إحذف سطر رقم 9 من الكود الي بجانب سيرفر اتوقع كذا شفت الرد ؟؟؟
  8. . فقط إحذف سطر رقم 9 من الكود الي بجانب سيرفر
  9. : بحيث يصير الكود كذا ،(freezeLastFrame) "الأرقمنت الثامن "الأخير + (loop) يمديكـ تسويها بدون تآيمر من خلال الأرقمنت الخامس -- # Server Side # -- local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0 ); addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, p in ipairs( getElementsByType ( "player" ) ) do bindKey ( p, "tab", "down", Animation ); end end ); addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "tab", "down", Animation ); end ); function Animation ( plr ) if isElementWithinMarker ( plr, marker ) then setPedAnimation ( plr, "FOOD", "EAT_Burger", _, false, _, _, false); end end
  10. مني فاهم يعني اسوي جدول وشغله شغلة مافي طريقة اسرع * Server Side: local marker = createMarker ( ... ) local given = { } addEventHandler ( "onMarkerHit", marker, function ( player ) if ( getElementType ( player ) == "player" ) then if not ( given[ player ] ) then givePlayerMoney ( player, 3000 ) -- الفلوس given[ player ] = true else outputChatBox ( "تم اعطائك من قبل", player, 255, 0, 0, true ) end end end ) addEventHandler ( "onPlayerQuit", root, function ( ) given[ source ] = nil end ) أسهل وأسرع طريقة هي عن طريق المتغيرات لكن بجانب سيرفر تحتاج انكـ تسوي جدول عشان يكون لكل لاعب متغير خاص فيه، لأنه لو بتسوي المتغيرات بدون جدول رح يكون المتغير عام ( ليس خاص بلاعب محدد )، أما يوم تستخدم المتغيرات بجانب كلاينت ف مايحتاج إنكـ تسوي جدول إذا تبي تسوي المتغير خاص بلاعب محدد
  11. * Client Side: addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWeather ( 44 ) outputChatBox ( "تم تـــــــــــــــــغيــــير الجو", 255, 255, 255, true ) elseif ( source == button ) then guiSetVisible ( window, true ) guiBringToFront ( window ) end end )
  12. Event: "onPlayerVehicleExit" killPed
  13. .( يب عشان كذا حاطين بالويكي ممنوع استخدام الفنكشن غير اذا كان البيد خارج المركبة ( على الأقدام
  14. حتى وانا طاير فيها بعد نفس الشي true وأنا بداخل السيارة عطاني Command executed! Result: true -- true وانا بخارج السيارة ( على الأرض ) عطاني نفس الشي Command executed! Result: true -- false يعطني ( JetPack )لكن وانا طاير بالجو بدون سيارة ولا شي، لكن طاير بالـ Command executed! Result: false .جرب الكود الي عطيتكـ يآهـ فوق ورد خبر +
  15. تطير = تنقز ^ انا توي مجربها وما صار معي الي صار معك، والآن جربتها مرة ثانية ونفس الشي صار معي مثل ماقلت بردي الي قبل ذا + : جرب هالكود عندكـ وردلي خبر وش يصير معكـ local key = "lshift" function Jump ( player ) if ( isPedInVehicle ( player ) ) then local veh = getPedOccupiedVehicle ( player ) if ( isPedOnGround ( player ) ) then local vx, vy, vz = getElementVelocity ( veh ) setElementVelocity ( veh, vx, vy, vz + 0.3 ) end end end addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, key, "down", Jump ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, key, "down", Jump ) end ) . وجربه مرة ثانية /reconnect لو ركبت الكود وجربته ومانقزت المركبة سو
  16. صراحة انا ماشيكت ع الكود هذا لانه منتشر بالكوميونيتي ومجربه الكثير وكذا لأنه لو تلاحظ بالويكي مكتوب true رح يعطي false حسب خبرتي مارح يعطي + .true عشان كذا الفنكشن ما بيجيب النتيجة الصحيحة لذلكـ رح يعطي دائماً كلام الويكي واضح جداً أدري، لكن الآن جربت الوظيفة بالهوست وطلع كلامي صحيح .. صار كل ماتضغط على زر "شفت" يطير السيارة ويوم تكبس مرة ثانية يطير السيارة أكثر وأكثر true وهذا معنآهـ انه الوظيفة ماتجيب النتيجة الصحيحة يوم تستخدمها واللاعب داخل السيارة وبما إنه كانت السيارة تطير يوم اضغط "شفت" هذا معنآهـ انه يعطي ! "كان السيارة ماتطير أصلاً يوم اضغط "شفت false بينما لو يعطي
  17. . الاحداثيات ذي تحط معلومات كل ماركر أظن واضح مثل عين الشمس + يمديكـ تسأل صاحب الكود اذا مافهمت زين، انا منيب صاحبه
  18. صراحة انا ماشيكت ع الكود هذا لانه منتشر بالكوميونيتي ومجربه الكثير وكذا لأنه لو تلاحظ بالويكي مكتوب true رح يعطي false حسب خبرتي مارح يعطي + .true عشان كذا الفنكشن ما بيجيب النتيجة الصحيحة لذلكـ رح يعطي دائماً كنت نآسي قوس اضفتهـ تقصد يوم يشتغل المود اذا كان اسم السيرفر غلط يسكر ثآني؟ ولا تبي اذا كان اسم السيرفر غلط ما يقدر يضغط الزر؟ .اخوي انت مو ناسي قوس، اكوادكـ كلها مو راكبه ع بعضها .راجع ردي الي فوق عدلته وضفت له مخرج الشات
  19. : الكود الي عطيتكـ ياهـ مبرمَج على أوبجكت واحد إذا تبيه على أكثر من أوبجكت سويه على نظام الجداول، ولحسن حظكـ أنه فيه موضوع مكرر ونفس طلبكـ https://forum.multitheftauto.com/viewtopic.php?f=160&t=56587#p546370
×
×
  • Create New...