Jump to content

./BlackBird#

Members
  • Posts

    1,355
  • Joined

  • Last visited

Everything posted by ./BlackBird#

  1. #The Best هااذي اقدر اسويها بس تحتاج PHP & LUA edit: و في طريقة ثانية بس تستخدم LUA بس معقدة شوي
  2. local FONT = dxCreateFont("font.ttf")
  3. مشكور بس فيه برنامج مستحيل احد يخترقك اي برنامج راح يتصل بالنت و يقولك تبيه يتصل ولا لا و يعطيك الاي بي الي يبي يتصل فيه و السبب بس ناسي اسمه
  4. انا قبل اطرح الموضوع عدلت ذا الفنكشن و نسيت امسح الاند تم التعديل و منورين
  5. سوي مثل ما قالك ذا بيست و بس
  6. السلام عليكم ورحمة الله و بركاته بسم الله الرحمن الرحيم حبيت اوريكم سكربت سويته قبل كم يوم مهو كبير مرة بس ان شاء الله يعجبكم السكربت عباره عن سكربت يساعدك في النترو من ايفنت و فنكشنات و ان شاء الله اطوره زيادة و الي يلقى خطا او اقتراح ي ريت يقولي اول شي بشرح الفنشكنات Server يجلب الوقت المتبقى للنترو getVehicleNosLeft( element Vehicle ) Vehicle = السيارة الي تبي تجيب كم باقي بـ 100% من النترو ------------------------------------------------------------- يجلب الوقت المتبقى لشتغيل النترو getVehicleNosWaitTime( element Vehicle ) Vehicle = السيارة الي تبي تجيب كم باقي عشان تشغل النترو ثاني مرة ------------------------------------------------------------- تحقق اذا السياره فيها نترو isVehicleHaveNos( element Vehicle ) Vehicle = السيارة الي تبي تتحق اذا فيها نترو Return : true اذا فيه نترو , false اذا مافيه نترو ------------------------------------------------------------- ------------------------------------------------------------- Client تغير لون النترو changeNosColor( int R , int G , int B ) R = احمر من 0 الى 255 G = اخضر من 0 الى 255 B = ازرق من 0 الى 255 ------------------------------------------------------------- ارجاع النترو للونه الاصلي setDefaultNosColor() هاذي الفنكشنات الحين الايفنت Server لما النترو يشتغل "onVehicleNosStart" Parameters element By By = الي شغل النترو Source = السياره الي اشتغل النترو فيها ------------------------------------------------------------- لما النترو يطفي "onVehicleNosStop" Parameters none Source = السياره الي طفى النترو فيها الحين التحميل https://community.multitheftauto.com/in ... ls&id=7678
  7. با عرض پوزش ما را برای فساد کمک نمی کند.
  8. من وين جبته خخخخ
  9. 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, false) 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=false, 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 false end table.sort(typeGroup.children, function(a, b) return a.name < b.name end) end bindGridListToTable(wndClothes, 'clothes', g_Clothes, false) 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 = false 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 = false 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 = -20, y = 0.3, width = 350, controls = { { 'lst', id='clothes', width=
  10. سكربت حلو انا مع ذا بيست و لو تسوي لبل فيه كم لاعب و تسوي قريد ليست فيها الاعبين يكون احسن بس الطريقة معقدة نوعا ما
  11. setElementPosition( source, unpack(spawn[math.random(#spwan)) )
  12. spawn = { {x,y,z}, {x,y,z}, {x,y,z} } Skin = {104,103,102} addEventHandler("onPlayerSpawn", root, function() setElementPosition( source, spawn[math.random(#spwan) ) setElementModel( source, Skin[math.random(#Skin)] ) end )
  13. مشكور ضاوي و ما شاء الله جهازك طلع مخزن
  14. في مود اسمه Markers حق ريس يساعدك بصناعة ماب ريس يسوي زي كذا و اكثر
  15. انا مكلم بوو من قبل شهر و قال اعتزل عشان كذا ما اتوقع فيه رابط
  16. سطر 115 aTab2.ManageACL
  17. شيل الزر من الادمنية و سوي سكربت يعطي صلاحات بكلمة
  18. انا مع طلال و سكربت بسيط بس رائع
  19. بدل النجوم في سطر 3 بـ شعار سيرفرك مثلا [A.R]
×
×
  • Create New...