-
Posts
1,992 -
Joined
-
Last visited
-
Days Won
4
Everything posted by 3NAD
-
-- Server Side onSunColor = function ( player ) setSunColor ( 0, 0, 255, 0, 0, 50 ) outputChatBox ( "The Color Of Sun Has Been Set To Blue", player, 0, 255, 0, true ) end onAddKey = function ( player ) bindKey ( player, "r", "down", onSunColor ) end for _, v in ipairs ( getElementsByType ( "player" ) ) do onAddKey ( v ) end addEventHandler ( "onPlayerJoin", root, function ( ) onAddKey ( source ) end )
-
كله موجود بالويكي .. https://wiki.multitheftauto.com/wiki/SetElementSpeed https://wiki.multitheftauto.com/wiki/GetElementSpeed
-
هو اللي ضاغط الزر localPlayer في الكلنت يصير لأنه بيصير للكلنت نفسه player و عندك خطأ بمخرج النص مآيحتاج تحط تعريف
-
https://wiki.multitheftauto.com/wiki/SetElementSpeed
-
local getAdmin = getPlayerName(localPlayer) انت قاعد تجيب اسم اللاعب نفسه سو تحويل من سيرفر
-
اللي جهازه كرت شاشة ضعيف بيفيده هذا المود 3D بحيث انه يبعد عنه السيارات المصممة خارج اللعبة لـ الحد اللي يقدر علاه كرت الشاشة FPS ويرتفع الـ
-
if MTA then -- MTA تحقيق وجود تعريف outputChatBox ( "true" ) else outputChatBox ( "false" ) end لأنه غير معرف اصلاً false رآح يقلك --------------- MTA = "www.MTA.com" if MTA then -- إذا تحقق outputChatBox ( "true" ) -- بيطرح هذا نتيجة للتحقق else -- لم يتحقق outputChatBox ( "false" ) -- يطرح هذا لعدم التحقق end -- انهاء االشرط MTA لأنه وجد قيمة لـ كلمة true رآح يقلك
-
في nil إستخدامك لـ Timer = nil Timer يعني كأنكـ تلغي تعريف الـ بحيث لو سويت شرط بيكون هالشكل if ( not Timer ) then ---- end
-
function spawn ( ) local Team = getPlayerTeam ( source ) local SwatTeam = getTeamFromName ( "SWAT" ) if Team and SwatTeam then if Team == SwatTeam then spawnPlayer ( source, 1859, 552, 321 ) else spawnPlayer ( source, 1835, 551, 321 ) end end end addEventHandler ( "onPlayerWasted", root, spawn )
-
إفرض اني بدون تيم و صار لي سباون رآح ينفذ الإحداثيات الأولى .. فـ الأفضل انك تثبت وجود تيم اللاعب في شرط و ثم تحقق شرط ان يكوت سوات هو تيم اللاعب
-
ممكن يسبب أخطاء لو اللاعب ماكان في تيم marker = createMarker ( 1925, 484, 61, "cylinder", 2, 255, 0, 255, 255 ) addEventHandler ( "onMarkerHit", marker, function ( player ) if getElementType ( player ) == "player" then local playerTeam = getPlayerTeam ( player ) if playerTeam then if playerTeam == getTeamFromName ( "SWAT" ) then setPedStat ( player, 24, 989 ) setElementHealth ( player, 200 ) setPedArmor ( player, 100 ) setPedSkin ( player, 115 ) else outputChatBox ( "* You most be 'SWAT'", player, 0, 0, 255, true ) end end end end , false )
-
الوظائف اللي داخل ملف بالمود تشتغل تلقائي مع تشغيل المود !!
-
وشو ؟ D5 العنصر في الوظيفة
-
لم يتم التجربة .. onGetVehicleSpeed = function ( vehicle ) if isElement ( vehicle ) then if getElementType ( vehicle ) == "vehicle" then local x, y, z = getElementVelocity ( vehicle ) return ( x^2 + y^2 + z^2 ) ^ ( 0.5 ) * 180 else return false end else return false end end onCheckSound = function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if vehicle then local vehicleSpeed = onGetVehicleSpeed ( vehicle ) if vehicleSpeed then if vehicleSpeed >= 5 then onStartSound ( ) else onDestroySound ( ) end else onDestroySound ( ) end end onStartSound = function ( ) if sound then if isElement ( sound ) then return end end sound = playSound ( ha7Sound, true ) end onDestroySound = function ( ) if sound then if isElement ( sound ) then destroyElement ( sound ) onDestroyTimer ( ) end end end onDestroyTimer = function ( ) if isTimer ( soundTimer ) then killTimer ( soundTimer ) end end addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[6] then onDestroySound ( ) soundTimer = setTimer ( onCheckSound, 1000, 0 ) end end )
-
ورني اخر كود توصلت له مع الميتا
-
local Words = { "كلمة ممنوعة", "كلمة ممنوعة", "كلمة ممنوعة", "كلمة ممنوعة", }; function chatbox ( text, type ) local name = getPlayerName ( source ) for _, v in ipairs ( Words ) do if string.find ( text, v ) then outputChatBox ( "#717D7D* [#FF0000 "..name.."#717D7D ] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير", root, 255, 0, 0, true ); cancelEvent ( ) return false end end if type == 0 then cancelEvent ( ) local account = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#FF0000* [ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then outputChatBox("#999999 * [ Police ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("admint")) then outputChatBox("#993333* [ مسؤل الادمنيات ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin2")) then outputChatBox("#dd0000* [ Scripter ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("WorkShop")) then outputChatBox("#A23BEC* [ WorkShop ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote")) then outputChatBox("#7F5A58* [ Voted To Mod ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#C11B17* [ Owner ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("كموره")) then outputChatBox("#C11B17* [ Head Admin ] #FF0000????#00BBFFالاسطوره كموره#FF0000???? : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("نايف")) then outputChatBox("#ff8756* ? [ Owner Server 6AraT ] ? نـآيف : #ffFFff"..text , getRootElement(), 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#1D9C00* [ SuperModerator 1 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#259117* [ SuperModerator 2 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#0044ff* [ Moderator 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#2554C7* [ Moderator 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#C8BBBE* [ V.I.P ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("7Rame")) then outputChatBox("#52F3FF* [ Gang member ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#C11B17* [ Head Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then outputChatBox("#444444* [ Big.Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingDrift")) then outputChatBox("#D4A017* [ King Of Drift ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#717D7D* [ #FFFFFF#ff0000" .. name .. "#717D7D ] :#ffffff " .. text, root, 255, 255, 255, true) end end end addEventHandler ( "onPlayerChat", root, chatbox )
-
addEventHandler ( "onPlayerChat", root, function ( msg, type ) for _, v in ipairs ( Words ) do if string.find ( msg, v ) then cancelEvent ( ); return outputChatBox ( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true ); end end end ); تأكد ان مافيه مود ثاني يسوي مخارج نص شات
-
forum.multitheftauto.com/viewtopic.php?f=160&t=54599
-
تم تفعيل نظام التذاكر .. http://support.delux-host.com edit : الخادم والموقع شغال بدون اي مشاكل edit #2: تم الإصلاح .. وشكراً على التبليغ
-
اظن فيه دعم فني بالموقع نفسه