-
Posts
1,992 -
Joined
-
Last visited
-
Days Won
4
Everything posted by 3NAD
-
عط الملف صلاحيات chmod 777 fileName
-
في اف8 bl تأكد انك في قروب كونسول واكتب كلمة
-
addEventHandler("onPlayerConnect",root,function(_,_,_,serial) if ( isSerialInBlack(serial) ) then local database = executeSQLQuery ( "SELECT `reason` FROM `blacklist_new` WHERE `serial` =?", serial ) if database[1].reason then cancelEvent(true,"You Are In Black List ("..database[1].reason..").") else cancelEvent(true,"You Are In Black List !") end end end)
-
https://wiki.multitheftauto.com/wiki/SetAccountName [1] تحتاج إلى صلاحيات أدمن [2] قد لا يتم تسجيل دخولك للحساب الجديد اذا ألغيت خاصية تسجيل الخروج
-
صحيح , لو انك شرحت الكود افضل
-
تقدر تسميها ^ getRandomValue getRandomText getRandomWord وعندي لك طريقة افضل عشان ماتستخدم %20 function Random(str) if type(str) ~= "string" then return false end local strings = split(str,";") local tab = {} for _,v in ipairs(strings) do table.insert(tab,gettok(v,1,string.byte(';'))) end return tab[math.random(#tab)] end outputChatBox(tostring(Random("MjnonFik;TAPL;TaLaL;ZA7F;TeTe")))
-
الكود عندك في الصفحة السابقة بس حط عليه ايفنت ولا شيء ينفذ الكود
-
local skin = { ............... } local Groups = { "Police.Manger", "Police", "Console", }; join = createMarker ( ......... ) addEventHandler ( "onMarkerHit", join, function ( element ) if getElementType ( element ) == "player" then local acc = getPlayerAccount ( element ) if not isGuestAccount ( acc ) then for i, group in ipairs ( Groups ) do if isObjectInACLGroup ( "user." .. getAccountName ( acc ), aclGetGroup ( group ) ) then fadeCamera ( element, false ) setTimer( function ( element ) local random = skin[math.random(#skin)] setElementInterior ( element, 3 ) setElementModel ( element, random ) setElementPosition( element, 238.63804626465, 142.35093688965, 1003.0234375 ) fadeCamera(element, true ) setElementRotation(element,0,0,10) end, 1000, 1, element ) break end end end end end , false ) بعد رقم 1 في التايمر element لو تلاحظ اني اضفت هذا راح يكون تعريف للبارامتر داخل الفنكشن function test ( element ) -- anything end setTimer ( test, 1000, 1, player ) playerفي التايمر بـ element في هذا المثال عرفنا بارامتر
-
انت شوف اللي يصلح لك تبيه ينقل بماركر ولا كلمة اف8 وطبق عليه وللمعلومية راجع الكود حق الحماية نسيت احقق شرط لو انه زاير
-
local Groups = { "Police.Manger", "Police", "Console", }; function Move ( element ) local acc = getPlayerAccount ( element ) if not isGuestAccount ( acc ) then for i, group in ipairs ( Groups ) do if isObjectInACLGroup ( "user." .. getAccountName ( acc ), aclGetGroup ( group ) ) then return end killPed ( element ) end else killPed ( element ) end end
-
قصدك اذا دخل المنطقة حقت القروبات الثلاثة وهو مو موجود بالقروبات ؟
-
راح توقف دورة الجدول إلى اول قيمة تم تحقيقها for لو ما استخدمت الأمر هذا راح يكرر عمل الدالة Console و Police فـ مثلاً كان حسابك موجود في قروب راح يسوي عليك كود النقل مرتين
-
Try This: local data = dbQuery ( server, "SELECT serial FROM accounts WHERE serial = ?", serial ) if #data > 0 then dbExec ( server, "UPDATE accounts SET serial = ? WHERE serial = ?", serial, tostring (serialz)) else dbExec ( server, "INSERT INTO accounts (serial) VALUES (?)", tostring (serialz)) end
-
Try this: function spawnVeh() local serialz = getPlayerSerial(source) local database = dbQuery(server, "SELECT * FROM accounts WHERE serial = ?", serialz) if #database > 0 then local id, x, y, z = tonumber(database[1].carid), tonumber(database[1].cx), tonumber(database[1].cy), tonumber(database[1].cz) veh = createVehicle ( id, x, y, z ) end end addEventHandler("onPlayerJoin", getRootElement(), spawnVeh)
-
I don't know what do you want exactly. but i think you need to change your event: from "onResourceStart" to "onClientResourceStart". * use [lua] to put codes.
-
local Groups = { "Police.Manger", "Police", "Console", }; function Move ( element ) local acc = getPlayerAccount ( element ) if not isGuestAccount ( acc ) then for i, group in ipairs ( Groups ) do if isObjectInACLGroup ( "user." .. getAccountName ( acc ), aclGetGroup ( group ) ) then -- كود النقل break end end end end -- حط الإيفنت
-
blip = اسم الجدول source = مفتاح داخله قيمة والقيمة هي السيارة Edit ممكن تحفظ اشياء متعددة وتستخرجها بعدين مثل كذا blip[source] = { vehicle, player, "text" } blip[source][1] = راح تكون السيارة اللي هي اول قيمة blip[source][3] = راح يكون النص وهو ثالث قيمة
-
جرب تشيل السيارة if isElement(blip[source]) then destroyElement(blip[source]) end ثم تشيك على التيبل addCommandHandler ( "check", function ( player ) if blip[player] then outputChatBox ( "Data Found" ) else outputChatBox ( "Lost" ) end end ) و لما تسوي كذا blip[source] = nil و تشيك مرة ثانية على التيبل
-
تأكد ان الملفات المكتوبة في الميتا موجودة بـ نفس الإسم والصيغة
-
حقق شرط ان اسم الحساب هو اللي تبيه if getAccountName ( getPlayerAccount ( source ) ) == "اسم الحساب" then
-
addEventHandler( "onPlayerJoin", root, function ( ) local ValidSkins = getValidPedModels ( ) for k, skin in ipairs( ValidSkins ) do setElementModel(source, math.random( skin ) ) end end ) كودك راح يغير الشخصية بعدد المفاتيح اللي موجودة في الجدول و يثبت على اخر قيمة في الجدول
-
local lowerBound, upperBound = unpack(get"color_range") blip = { }; addEventHandler ( "onResourceStart", resourceRoot, function() for i, player in ipairs ( getElementsByType ( "player" ) ) do processPlayer ( player ) end end ) function processPlayer ( player ) local player = player or source if not isElement(blip[player]) then blip[player] = createBlipAttachedTo(player) end local theTeam = getPlayerTeam(player) if theTeam then local r, g, b = getTeamColor(theTeam) setPlayerNametagColor(player, r, g, b) setBlipColor(blip[player], r, g, b, 255) else local rr, gg, bb = math.random(lowerBound, upperBound), math.random(lowerBound, upperBound), math.random(lowerBound, upperBound) setPlayerNametagColor(player, rr, gg, bb) setBlipColor(blip[player], rr, gg, bb, 255) end end addEventHandler ( "onPlayerLogin", root, processPlayer ) addEventHandler ( "onPlayerJoin", root, function ( ) processPlayer ( source ) end ) addEventHandler ( "onPlayerQuit", root, function ( ) if isElement(blip[source]) then destroyElement(blip[source]) end end ) getPlayerColor = getPlayerNametagColor getPlayerColour = getPlayerNametagColor
-
المسافات ماتضر ولو تبي 5 دقايق اضرب 5 * 60000
-
CanShoot = true bindKey ( "a", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z, 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end )