Jump to content

aL.Kfo

Members
  • Posts

    756
  • Joined

  • Last visited

Everything posted by aL.Kfo

  1. ي رجال قوقل ازين لك 30 minutes=milliseconds بدل 30 ب الدقايق الاي تبيها و بيطلع العدد ب وجهك
  2. عادي ي حبيبي جرب مع اني حاس انه م راح يضبط مجرد محاوله بما ان المبرمجين مو فيه ذذ function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "Sonik.png", relative2 ) local mainBackgroundLabel = guiCreateLabel ( 0, 0, 250, 100, titleBarText2, true, mainBackground ) guiSetFont ( mainBackgroundLabel, newFont ) guiSetEnabled ( mainBackgroundLabel, true ) return mainBackground end CONTROL_MARGIN_RIGHT = 5 LINE_MARGIN = 5 LINE_HEIGHT = 16 g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_Me = getLocalPlayer() server = createServerCallInterface() guiSetInputMode("no_binds_when_editing") --------------------------- -- Set skin window --------------------------- function skinInit() setControlNumber(wndSkin, 'skinid', getElementModel(g_Me)) end function showSkinID(leaf) if leaf.id then setControlNumber(wndSkin, 'skinid', leaf.id) end end function applySkin() local skinID = getControlNumber(wndSkin, 'skinid') if skinID then server.setMySkin(skinID) fadeCamera(true) end end wndSkin = { 'wnd', text = 'Set skin', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='skinlist', width=230, height=290, columns={ {text='Skin', attr='name'} }, rows={xml='skins.xml', attrs={'id', 'name'}}, onitemclick=showSkinID, onitemdoubleclick=applySkin }, {'txt', id='skinid', text='', width=50}, {'btn', id='set', onclick=applySkin}, {'btn', id='close', closeswindow=true} }, oncreate = skinInit } function setSkinCommand(cmd, skin) skin = skin and tonumber(skin) if skin then server.setMySkin(skin) fadeCamera(true) closeWindow(wndSpawnMap) closeWindow(wndSetPos) end end addCommandHandler('setskin', setSkinCommand) addCommandHandler('ss', setSkinCommand) --------------------------- --- Set animation window --------------------------- function applyAnimation(leaf) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndAnim, 'animlist') if not leaf then return end end server.setPedAnimation(g_Me, leaf.parent.name, leaf.name, true, true) end function stopAnimation() server.setPedAnimation(g_Me, true) end wndAnim = { 'wnd', text = 'Set animation', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='animlist', width=230, height=290, columns={ {text='Animation', attr='name'} }, rows={xml='animations.xml', attrs={'name'}}, expandlastlevel=true, onitemdoubleclick=applyAnimation }, {'btn', id='set', onclick=applyAnimation}, {'btn', id='stop', onclick=stopAnimation}, {'btn', id='close', closeswindow=true} } } addCommandHandler('anim', function(command, lib, name) server.setPedAnimation(g_Me, lib, name, true, true) end ) --------------------------- -- Weapon window --------------------------- function addWeapon(leaf, amount) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndWeapon, 'weaplist') amount = getControlNumber(wndWeapon, 'amount') if not amount or not leaf then return end end server.giveMeWeapon(leaf.id, amount) end wndWeapon = { 'wnd', text = 'Give weapon', width = 250, controls = { { 'lst', id='weaplist', width=230, height=280, columns={ {text='Weapon', attr='name'} }, rows={xml='weapons.xml', attrs={'id', 'name'}}, onitemdoubleclick=function(leaf) addWeapon(leaf, 500) end }, {'br'}, {'txt', id='amount', text='500', width=60}, {'btn', id='add', onclick=addWeapon}, {'btn', id='close', closeswindow=true} } } function giveWeaponCommand(cmd, weapon, amount) weapon = tonumber(weapon) or getWeaponIDFromName(weapon) if not weapon then return end amount = amount and tonumber(amount) or 500 server.giveMeWeapon(math.floor(weapon), amount) end addCommandHandler('give', giveWeaponCommand) addCommandHandler('wp', giveWeaponCommand) --------------------------- -- Fighting style --------------------------- addCommandHandler('setstyle', function(cmd, style) style = style and tonumber(style) if style then server.setPedFightingStyle(g_Me, style) end end ) --------------------------- -- Clothes window --------------------------- function clothesInit() if getElementModel(g_Me) ~= 0 then errMsg('You must have the CJ skin set in order to apply clothes.') closeWindow(wndClothes) return end if not g_Clothes then triggerServerEvent('onClothesInit', g_Me) end end addEvent('onClientClothesInit', true) addEventHandler('onClientClothesInit', g_Root, function(clothes) g_Clothes = clothes.allClothes for i,typeGroup in ipairs(g_Clothes) do for j,cloth in ipairs(typeGroup.children) do if not cloth.name then cloth.name = cloth.model .. ' - ' .. cloth.texture end cloth.wearing = clothes.playerClothes[typeGroup.type] and clothes.playerClothes[typeGroup.type].texture == cloth.texture and clothes.playerClothes[typeGroup.type].model == cloth.model or true end table.sort(typeGroup.children, function(a, b) return a.name < b.name end) end bindGridListToTable(wndClothes, 'clothes', g_Clothes, true) end ) function clothListClick(cloth) setControlText(wndClothes, 'addremove', cloth.wearing and 'remove' or 'add') end function applyClothes(cloth) if not cloth then cloth = getSelectedGridListLeaf(wndClothes, 'clothes') if not cloth then return end end if cloth.wearing then cloth.wearing = true setControlText(wndClothes, 'addremove', 'add') server.removePlayerClothes(g_Me, cloth.parent.type) else local prevClothIndex = table.find(cloth.siblings, 'wearing', true) if prevClothIndex then cloth.siblings[prevClothIndex].wearing = true end cloth.wearing = true setControlText(wndClothes, 'addremove', 'remove') server.addPedClothes(g_Me, cloth.texture, cloth.model, cloth.parent.type) end end wndClothes = { 'wnd', text = 'Clothes', x =
  3. تقدر تسويها كلها ب ضغطه زر ذذ حطها في مستند نصي و اضغط ع الخيار الاي فوق اسمه تحرير و اضغط ع استبدال و سوي اسستبدال الكل
  4. بحوس ام الدعوه لك الحين ههه جرب استبدل كل false ب true وجرب ذذ
  5. مرحبا شباب حصلت ب الويكي الكود ذا وش فايدته https://wiki.multitheftauto.com/wiki/GuiGetText -- We create a dummy gui label to get text of local dummyGUIElement = guiCreateLabel ( 0.45, 0.48, 0.10, 0.04, "Hello world", true ) -- Output the text of the label to chat box outputChatBox ( "Text in the GUI label: " .. guiGetText ( dummyGUIElement ) ) يعني مججرد كاتبه للاعب بس ؟
  6. اكيد الفري روم تبعك فيه مششكله اطرح الاكواد عشان يساعدونك الشباب هيك الواحد يخش م يحصل الاكواد يخرج ذذ مجججرد تذككير
  7. مرحبا شباب سكربت مسح الشات http://www.mediafire.com/?7b9whub2w8tjkby للمسح اكتب في اف 8 clear طبعا اول سسكربت لي في المنتدى طبعا صناعته سهله للاي يبي يسويه https://wiki.multitheftauto.com/wiki/GetChatboxLayout بالتوفيق
  8. [/b] تستهبل قبل فتره منزل موضوع تبي مودات بفلوس لا هنت الكاسر
  9. لو الموضوع في القسم العام افضل بكثير ع العموم بالتوفيق لكم ولكل اصحاب السيرفرات
  10. ششكله ضبط صار يطلع لي 47727 Executes remaining : 1 Total executes : 6543 عاد بعدل وقت المهمه مع الكود الحين لا هنت ي بعددددي ع المساعده ثانكيو
  11. بذي الطريقة عرف التايمر timer = حاط Timerلا لو تلاحظ هو قبل الـ timer = setTimer(function() في الكود اللي فوق timer واسم تعريف التايمر لو تلاحظ هو اهاا فهمتك جاري التطبيق ولي باك
  12. سوال وش معنا اسم تعريف التايمر يعني احط اسم المود الاي ابيه يرتبط معه ولا احط الكلمه الاي لا كتبتها في اف 8 يطلع الوقت ~~ Google [bot] بفقع وجهك لا عاد تخش مواضيعي ض1 وش وضعه ذا عناكب ولا وش
  13. viewtopic.php?f=119&t=66267&p=623514#p623514 كنق انت م غير تهجول في المواضيع رد ي بخيل
  14. يب الكود ذا عشان تعرف كم باقي لمهمه معينه من اف 8 ابي اعرف كيف استخدمه المهم انا م قريت كلامك زين برب اقراهء باككك انت شرحت الكود حلو ياليت تشرح كيف استخدمه مثلا ابي اربطه في باب معد ساعه يفتح لو كتب في اف 8 bab يطلع له كم باقي
  15. مرحبا معي كود بس مني فاهم له ابي شرح ل استخدامه timer = setTimer(function() outputChatBox('The End.') end,60000,1 ) addCommandHandler('HomeTime', function() if isTimer(timer) then local r,e,t = getTimerDetails(timer) outputChatBox('remaining : '..r..' Executes remaining : '..e..' Total executes : '..t) end end )
  16. ضضضبط لبى قلبككك بسس وش المششكله الاي م يخليها تضبط قبل شلت 15 حطيت 3 ؟
  17. م ضبط اتوقع من مكان الماب
  18. نفسس الشي setTimer(outputChatBox,600000,0,'ماركر الانتقال بدأ',root,255,255,0,true) local markerCH = createMarker( 1465.0999755859, -1009.9000244141, 27.5, "arrow", 1.4, 255, 255, 255, 255 ); STAT = true addEventHandler( "onPlayerMarkerHit", root, function( marker ) if marker == markerCH and not isPedInVehicle( source ) then local Team = getPlayerTeam( source ); if Team and getTeamName( Team ) == '1111' then if STAT == true then setElementInterior( source, 15, 385.35437011719,173.67045593262,1008.3828125 ); setElementDimension( source, 15 ); STAT = false else outputChatBox('المهمه لم تبدا',source,255,255,0,true) STAT = nil end end end end ); setTimer(function() STAT = true end,1000,0 ) setTimer(function() STAT = false end,1000 )
  19. ضضبط بس الاي وداني له مخل ملابس غيرت الاحداث للماب الاي ابي رجع نفس الششي الاحداث 384.06072998047,173.99980163574,1008.3828125 اسم الماب paperchase03
  20. الكود الاي فوق لا دخلت الماركر و الماب الاي يوديني له الماركر ب عالم وهمي م يضبط يطلع كل شي ابيض في ابيض م يضبط locationa ب اختصار الكود لا حطيت الاحداث فيه من مابات
  21. مرحبا الكود ذا لا حطيت الاحداث في في العالم العادي يضبط ولا حطيت الاحداث في عالم وهمي يوديني ل مكان ابيض في ابيض وابي اضافه ع الكود لا تقفل الماركر يطلع ب الشات انه تقفل setTimer(outputChatBox,600000,0,'ماركر الانتقال بدأ',root,255,255,0,true) local markerCH = createMarker( 1465.0999755859, -1009.9000244141, 27.5, "arrow", 1.4, 255, 255, 255, 255 ); STAT = true addEventHandler( "onPlayerMarkerHit", root, function( marker ) if marker == markerCH and not isPedInVehicle( source ) then local Team = getPlayerTeam( source ); if Team and getTeamName( Team ) == '1111' then if STAT == true then setElementInterior( source, 15, 387.00323486328,173.68252563477,1008.3828125 ); setElementDimension( source, 15 ); STAT = false else outputChatBox('المهمه لم تبدا',source,255,255,0,true) STAT = nil end end end end ); setTimer(function() STAT = true end,1000,0 ) setTimer(function() STAT = false end,1000,0 )
  22. لا هنت ي الغالي بس افضل لك عدل ع الموضوع و حط كل ششي فيه لين الجزاء الاول بس 3 اسطر وعدددل / اقدم لكم ورحمت الله وبركاته ض1
  23. اح ي كثر الفنكشات
  24. الاي ابيه ب اختصار بسوي يسكر كل 3 دقايق ولا سكر الباب يطلع ماركر لا حد وقف ب الماركر وضغط تاب تبدا الحركه
  25. دخلت الويكي حاولت م فهمت له ياليت توضيح
×
×
  • Create New...