
SycroX
Members-
Posts
2,141 -
Joined
-
Last visited
-
Days Won
15
Everything posted by SycroX
-
حتي لو في مود اخر ما يفرق
-
ما شاء الله شرح كامل مع امثله و تنصيق جميل بالتوفيق
-
damageTimer = {} addEventHandler("onPlayerDamage", root, function() if not isTimer(damageTimer[source]) then removeCommandHandler("ldm") damageTimer[source] = setTimer(function(source) damageTimer[source] = nil addCommandHandler("ldm") end, 20000, 1, source) end end )
-
القسم خطاء . @!#NssoR_) القسم الصحيح : https://forum.multitheftauto.com/forum/134-البرمجة/ + ما تقدر تمسحهم بس في طريقه اخري | انك ترفع الصور علي رابط و تستخدم وظيفه fetchRemote
-
يعني تبي تجيب حسابات اللاعب كلها ؟ اذا هيك تقدر تستخدم الوظيفه دي سويتها لك function getPlayerAccounts(player) local serial = getPlayerSerial(player) local emptyTable = {} for _,account in ipairs(getAccounts()) do if serial == getAccountSerial(account) then table.insert(emptyTable, account) end end return emptyTable end
-
معلش بس هو تعديل الأسم التريجر و الداتا صعب ؟
-
"showbsGui" غيره لأي شي مثلا "showPilotGui" طبعا تغيره في كلنت سايد و سيرفر سايد
-
قسم خاطئ @!#NssoR_) + الحل انك تغير اسماء التريجر في مود الطيران
-
تقدر تستخدم engineLoadTXD --# ذول الفانكشنات للزر الأول عشان تفعل السفلته engineImportTXD -- لتفعيل التي اكس دي engineReplaceModel -- لتفعيل الدي اف اف --#فانكشنات الزر التاني عشان ترجعها مثل القديمه engineRestoreModel
-
i think there's an example in the wiki you can see it https://wiki.multitheftauto.com/wiki/EngineLoadIFP
-
i prefer to use dxDrawRectangle dxDrawText addEventHandler "onClientClick" isMouseInPosition -- useful function in wiki.mtasa variables i've created a useful function for you to create a button (dxDrawButton) and i've made an example for you function isMouseInPosition ( x, y, width, height ) -- wiki.multitheftauto.com if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function dxDrawButton(x, y, w, h, t, color1, color2) if tonumber(x..y..w..h) and t then if not color1 then color1 = tocolor(0, 0, 0, 255) end if not color2 then color2 = tocolor(255, 255, 255, 255) end if isMouseInPosition(x, y, w, h) then dxDrawRectangle(x, y, w, h, color1, false) dxDrawText(t, x, y, w+x, h+y, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center") else dxDrawRectangle(x, y, w, h, color2, false) dxDrawText(t, x, y, w+x, h+y, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center") end end end ---# addEventHandler("onClientRender", root, function() dxDrawButton(100, 100, 50, 50, "test") end ) addEventHandler("onClientClick", root, function(b,s) if b == "left" and s == "down" then if isMouseInPosition(100, 100, 50, 50) then outputChatBox("you've clicked on the dx-button") end end end )
-
i don't have any time to explain it for you but did u try it ?
-
replace line 3 in the problem with this setElementData(source, "stick", fromJSON(r1[1]["stick"]))
-
Vs no comment
-
شكلك واخد فكره غلط عن الفورم , هنا محدش بيشتغل لك دول جاين يساعدوك بأرادتهم مش مجبورين و هنا المشركات ملهاش اي لزمه يعني مش هتترقا بيهم ولا حاجه هو تقدر تعمل هيك بس يفضل انك تبعد عن الداتا علي قدر الأمكان
-
function dxSetVisible(func, bool) if func then local Function = bool and addEventHandler or removeEventHandler Function("onClientRender", root, func) end end مثال بسيط عن طلبك الاول
-
local Event = false local playersCount = 0 function Event_start(plr) if not Event then Event = true outputChatBox("Save on event is ON, write /join to join on event.", plr, 255, 255, 255, true) else Event = false outputChatBox("Saves are OFF.", plr, 255, 255, 255, true) end end addCommandHandler("event_saves", Event_start) addCommandHandler("event_create", function(plr, _, t2, t1, value, ...) if not t2 or not t1 or not tonumber(value) then outputChatBox("Correct CMD is /event_create <event name> <the number of players>", plr, 255, 255, 255) end local name_event = table.concat({t2}) local value = table.concat({t1}) if tonumber(value) < 8 then outputChatBox("You write too small number of players !", plr, 255, 255, 255) return end if tonumber(value) > 64 then outputChatBox("You write too big number of players !", plr, 255, 255, 255) return end if tonumber(value) > 0 then local name = getPlayerName(plr) outputChatBox("Administrator: #008000"..name.." #FFFFFFinvite on event #008000"..name_event.."#FFFFFF , free places: #0080000/"..value.."", getRootElement(), 255, 255, 255, true) return end end ) function Join_event(plr, cmd, t1, value) if not Event then return end local value = table.concat({t1}) if getElementData(plr, "player:event") then outputChatBox("You are in event!", plr, 255, 255, 255, true) return end if playersCount >= value then outputChatBox("The event is have maximum number of players.", getRootElement(), 255, 255, 255, true) return end setElementData(plr, "player:event", true) playersCount = (playersCount or 0) + 1 setElementPosition(plr, -2422.37842, -607.25677, 132.56250) outputChatBox("W E L C O M E on the event !", plr, 255, 255, 255, true) end addCommandHandler("join", Join_event) function lols(plr) setElementData(plr, "player:event", false) end addCommandHandler("s", lols)