
SycroX
Members-
Posts
2,141 -
Joined
-
Last visited
-
Days Won
15
Everything posted by SycroX
-
local Serials = { ["your serial"] = true, ["your 2nd serial"] = true } addCommandHandler("Nowarp", function(p) if Serials[getPlayerSerial(p)] then if getElementData(p, "WarpProtection") then setElementData(p, "WarpProtection", false) outputChatBox("warp protection switched off", p, 255, 0, 0, true) else setElementData(p, "WarpProtection", true) outputChatBox("warp protection switched on", p, 0, 255, 0, true) end end end ) elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) if to ~= p and getElementData(to, "WarpProtection") then outputChatBox("you can't warp to this player as he is under a protection", p, 0, 255, 0, true) return end function warp ( p, to ) local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( isPedInVehicle ( to ) ) then local vehicle = getPedOccupiedVehicle ( to ) local seats = getVehicleMaxPassengers ( vehicle ) + 1 local i = 0 while ( i < seats ) do if ( not getVehicleOccupant ( vehicle, i ) ) then setTimer ( warpPedIntoVehicle, 1000, 1, p, vehicle, i ) fadeCamera ( p, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) break end i = i + 1 end if ( i >= seats ) then warp ( p, to ) outputConsole ( "Player's vehicle is full ("..getVehicleName ( vehicle ).." - Seats: "..seats..")", p ) end else warp ( p, to ) end end if ( action == "warp" ) then warpPlayer ( source, player ) else if Serials [ getPlayerSerial ( data ) ] and player ~= data then return false end warpPlayer ( player, data ) mdata = getPlayerName ( data ) end else action = nil end if ( action ~= nil ) then aAction ( "player", action, admin, player, mdata, more ) end return true end outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end ) الكود ما يسمح لك تنتقل لاي لاعب تحت الحمايه
-
روح للميتا و حط جنب اللملف download = "false" بعدين سوي لما اللاعب يسجل يحمل الملفات مثال بسيط addEventHandler("onPlayerLogin", root, function() triggerClientEvent(source, "downloadFiles", source) end ) ------#client side addEvent("downloadFiles", true) addEventHandler("downloadFiles", root, function() downloadFile("yourfile.txd") downloadFile("yourfile.dff") end )
-
افضل لك لا تشتري من المركات الي طالعه جديده دي تخرب بسرعه + oppo شركه صيني يعني مش محتاجه معرف لها صراحه اذا كويسه او لا ( Huawei ) لاكن واواي خلك في سامسونج او ابل او سوني ذول المضمونين + عن نفسي استخدم Sony Xperia XZ premium
-
ذول اطفال فقط لا غير اداره ام تي اي الحقيقيه تلاقيها في المنتدي هنا و رتبتها God Father (MTA Team) ذول الأداره الحقيقيه غير هيك دول اطفال
-
ادخل الميتا و حط عند الملفات download = "false" و بعدين استخدم فانكشن downloadFile لما اللاعب يسجل
-
يب , الكود شغال بس عشان اللغه
-
function isCommandExist(command) if command and type(command) == "string" then for _,cmd in pairs(getCommandHandlers()) do if cmd == command then return true end end end return false end USAGE : isCommandExist(command) Example : isCommandExist("say") then return true else return false end
-
ما تحسو الجداول افضل ؟ local Messages = { {"دائري", 1770.23401, 839.80615, 10.5}, {"طعوس", 2093.3054199219, 1402.8038330078, 10.8203125}, {"نخيل", 2093.3054199219, 1402.8038330078, 10.8203125}, {"فروسية", 2878.1115722656, -1110.029296875, 10.882762908936}, {"جسر", -1574.6706542969, 623.50903320313, 42.5518}, {"سينما", 171.68533, 1099.82129, 16.55}, {"منطقة جيش", 96.93044, 1998.14124, 18.6} } addEventHandler("onPlayerChat", root, function(message) for index,value in ipairs(Messages) do if getElementDimension(source) ~= 55 then if message:find(value[1]) then setElementPosition(source, value[2], value[3], value[4]) end else outputChatBox("you can't teleport while in mission", source, 255, 0, 0, true) end end end ) @Rakan# صعبه علي مبتداء يعدل كل المهمات و يحط فيهم الداتا + الراجل قال بنفسو انها مهمات حرب عصابات , و مهمات حرب العصابات تكون دايما في دايمنشن واحد @*RayaN-Alharbi. لهيك طريقه افضل و اسهل
-
علي حسب .. تحط الداتا علي الالمنت setElementData لان ال تحط الداتا علي الاكونت حق اللاعب setAccountDataاما الـ + set/getElementData SERVER SIDE ONLY
-
addEventHandler("onClientVehicleDamage", root, function(attacker) if attacker and getElementType(attacker) == "player" then cancelEvent() end end )
-
قصدو لما يكون مسوي للأديت بوكس حد يعني مثلا 10 حروف كل ما يكتب حرف او رقم يزيد نسبه البروجرس بار addEventHandler("onClientGUIChanged", guiRoot, function() if source == yourEditBox then local text = guiGetText(yourEditBox) local textlength = string.len(text) local maxlength = guiGetProperty(yourEditBox, "MaxTextLength") local progress = (textlength/maxlength)*100 guiProgressBarSetProgress(yourProgressBar, progress) end end )
-
function setSecondsToTime ( seconds ) if seconds then local results = {} local sec = ( seconds %60 ) local min = math.floor ( ( seconds % 3600 ) /60 ) local hou = math.floor ( ( seconds % 86400 ) /3600 ) local day = math.floor ( seconds /86400 ) local week = math.floor ( seconds /604800 ) local month = math.floor ( seconds /2592000 ) if month > 0 then table.insert( results, month .. ( month == 1 and " Month" or " Months" ) ) end if week > 0 then table.insert( results, week .. ( week == 1 and " Week" or " weeks" ) ) end if day > 0 then table.insert( results, day .. ( day == 1 and " Day" or " Days" ) ) end if hou > 0 then table.insert( results, hou .. ( hou == 1 and " Hour" or " Hours" ) ) end if min > 0 then table.insert( results, min .. ( min == 1 and " Minute" or " minutes" ) ) end if sec > 0 then table.insert( results, sec .. ( sec == 1 and " Second" or " Seconds" ) ) end return string.reverse ( table.concat ( results, ", " ):reverse():gsub(" ,", " dna ", 1 ) ) end return "" end
-
؟؟ تاكد انك مسويها علي الحسابات مو علي السريالات او اطرح ملف سيرفر
-
ولله عن نفسي قرأت الموضوع كويس لاكن شكلك انت الأعمي في الموضوع ذا كامل هات لي كلمه ساعه فقط او وقت غير في ردك و رد اوسكر انصحك تشتري نظاره لك , او لا تقعد علي الجهاز كتير :3
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=11265 ذا مود جاهز مسويه xXMADXx تعلم منو او مثل ما عطاك اوسكر
-
يبوي عليك كل موضوع تساعد غلط ؟ بطلب الراجل ؟ getPlayerTime وش دخل الراجل يبي ان لما اللاعب يجي يشتري رتبه لازم يكون معه الرتبه الي قبلها و مثل ما قال عبد الكريم isObjectInACLGroup لازم يستعمل الجداول و يستعمل الله يهديك لا تساعد اي كلام و خلاص ---------------------------------------------------------- لصاحب الموضوع تفضل local ranks = { [1] = "Console", [2] = "Admin", [3] = "Moderator" } function getPrevRank(rank) if rank then for i = 1, #ranks do if ranks[i] == rank then if not ranks[i-1] then return "everyone" else return ranks[i-1] end end end end return false end function doesPlayerHasThePrevRank(player, currentRank) if player then local prevRank = getPrevRank(currentRank) if prevRank then if aclGetGroup(prevRank) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup(prevRank)) then return true end end end end return false end طريقه الأستخدام doesPlayerHasThePrevRank(player, rank) player = اللاعب rank = الرتبه الي اللاعب هيشتريها + ما جربت الكود سويتو لك علي السريع
-
isObjectInACLGroup -- SERVER SIDE ONLY!! account = غير معرفه group = غير موجود + اخوي غير صورتك الله يهديك و ما بدي حد يدخل يقولي حريه شخصيه وين الحريه الشخصيه في صوره مثل الي حاطتها
-
مود رائع + ولكم باك
-
@HelpGuys @MR.GNA7 في شي اسمو رسايل + لصاحب الموضوع بدايه رائعه بالتوفيق
- 28 replies
-
- لوحة قوانين
- قوانين
-
(and 1 more)
Tagged with: