Jump to content

Wleed1998

Members
  • Posts

    320
  • Joined

  • Last visited

Everything posted by Wleed1998

  1. السلام عليكم كيفكم عسآكم بخير اليوم اان سويت لوحة فيه قريد لسته فيه 2 كولمن كولمن الاعبين فيه اسماء الاعبين و كولمن ثاني فيه نقآط الفوز بي المهمه ابي لما احد يفوز بي المهمه يزيد 1 في الكولمن و و ترتيبهم من الاكبر للاصغر مثال c c Wleed 9 نقآط www 8 نقآط ... الخ المهم ي شباب ابيه كل مايفوز يزيد +1 ككيف اجيب اسم الي يلعبون المهمه + كيف ازيدهم + كيف اعرف ان هو فاز او لا ابي الفانكشنات*_*
  2. السلام عليكم ورحمة الله و بركاته آخواني انا طرحت موضوع قبل لكن ماتردون المهم اخواني انا مسوي مهمه المهمه هي انك تروح لـمآكره والمآركه يرسبنك في محل فيه32 رسبآون و الي يدخلون المهمه 32 يعني كل لاعب في رسبآون كل ششيء تمام لكن انا مسوي لما ينقل من الماركه للمهمه يديه فريز + حمايه مايقتل احد لمدت 2 دقيقه و بعدين تنفك لكن المشكله انه ماتنفك بعد 2 دقيقه ماتنفك سيرفر addEventHandler ( "onPlayerJoin",root,function() outputChatBox("تم بددآ المهم اذهب الى المآركه لـدخول الى المهمه",source, 50, 30, 255) outputChatBox("تم تغشيل المهمه",source, 0, 150, 255) end) --------create Marker local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) --------Taple local war = { {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375},} -------- Event Marker addEventHandler( "onMarkerHit", WarMission,function (player) if getElementType(player) == "player" and not isPedInVehicle(player) then if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end local x, y, z = unpack(war[math.random(#war)]) setElementPosition(player, x, y, z) setElementModel (player, 2) setElementDimension ( player, 6 ) giveWeapon ( player, 4, 1, true ) giveWeapon ( player, 27, 999999, true ) giveWeapon ( player, 31, 999999, true ) giveWeapon ( player, 30, 999999, true ) giveWeapon ( player, 16, 2, true ) giveWeapon ( player, 25, 999999, true ) toggleControl ( player, "fire", false ) setElementFrozen(player, true) setTimer (function (player) if isElement(player) then toggleControl ( player, "fire", true ) setElementFrozen(player, false) end end,1*60000, 0 ) end end)
  3. مود رائع مود بطل مود آروع من رائع وآصل في تقديم المزيد
  4. كنت قآعد بسوي زيك ههه لانه رسال تقريت و مستقبله ببيانات مو معرفه ثمن ارسله كمان بيانات و عرفه بي لوكل المفروض يعرفه من البدايه من يوم حدد ع القريد local email = guiGetText ( editmail ) local edit = guiGetText ( editname ) local item = guiComboBoxGetSelected(com) local textTwo = guiComboBoxGetItemText(com, item) local Get = guiGetText ( editcard )
  5. الدي بوق يقولك شيء لما حطيت بدل سورس root
  6. الان انت مسوي قريد لست لما يحدد يجي بي الميمو مثال اسمه و كذا ولا وش ض2 انا شايف فيه ايدت حسبته لما تكتب بي الاديت تروح ل الميمو
  7. طيب جرب حط ا بدل كود استقبال التقريت ب ذا addEvent("getSerial",true) addEventHandler("getSerial", root, function(player,email,edit,text,get,Chek) local playerName = getPlayerName(player) local playerSerial = getPlayerSerial(player) triggerClientEvent(root,"setSerial", root, playerName, playerSerial,email,edit,text,get,Chek) end)
  8. addEvent("getSerial",true) addEventHandler("getSerial", root, function(player,email,edit,text,get,Chek) local playerName = getPlayerName(player) local playerSerial = getPlayerSerial(player) triggerClientEvent(root,"setSerial", root, playerName, playerSerial,email,edit,text,get,Chek) end) جرب عدل السيرفر كذا
  9. انت بدك مود شراء يعني الي يكتبه بي الاديت بوكس يروح لك في الميمو؟ اذا كذا شوف الموضوع ذا https://forum.multitheftauto.com/viewtopic.php?f=160&t=101320
  10. يب اعرف لم اجي البوتن اسوي اخذ بس حقت الطول و الارض لكن المشكله وين احطه ؟ ^_
  11. يب وين في اي سطر شوف ض1 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 addCommandHandler("stopanim", stopAnimation) bindKey("lshift", "down", "stopanim") wndAnim = { 'wnd', text = 'Set animation', width = 250, x = 127, y = 375, 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 or not leaf.id 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', resourceRoot) end end addEvent('onClientClothesInit', true) addEventHandler('onClientClothesInit', resourceRoot, 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.removePedClothes(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 = {
  12. السلام عليكم ورحمة الله وبركاته شباب كيف احرك زر الفري روم من مكان لان في ملف fr.c مافيه احدثيات للبوتن ابي احركه من مكان لـ مكآن مممكن شرح
  13. مآفيه اخطا لكن القريز ماينفك و السلاح مايطلق بعد 1 دقيقه المفروض انها تنفكلكن ما انفكت لا الفريز ولا عدم الطلق وال دي بوق مايظهر فيه شيء
  14. وش سويت هههههههههههههههههه يغلق افدت نفسي بنفسي كيف افدت نفسك و فيه ناس معطيتك الفآنكشنات المطلوبه
  15. getTickCount() و interpolateBetween ( اقدر احرك به النوآفذ طيب كيف احرك اذا تحرك الوحات او اي شيء ووش تقصد بي التآثيرات ع المآركه او غيره ض1 الان ي شاطح
  16. ان شاء الله في آصدآرة ثآنيه
  17. مود آكثر من رائع " آستمرررر "
  18. local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) function layer () outputChatBox("تم بددآ المهم اذهب الى المآركه لـدخول الى المهمه", root, 50, 30, 255) outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) end addEventHandler ( "onPlayerJoin", getRootElement(), layer ) local war = { {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, } function War(player) if getElementType(player) == "player" and not isPedInVehicle(player) then if source == WarMission then if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end local x, y, z = unpack(war[math.random(#war)]) setElementPosition(player, x, y, z) setPlayerSkin (player, 2) setElementDimension ( player, 6 ) giveWeapon ( player, 4, 1, true ) giveWeapon ( player, 27, 999999, true ) giveWeapon ( player, 31, 999999, true ) giveWeapon ( player, 30, 999999, true ) giveWeapon ( player, 16, 2, true ) giveWeapon ( player, 25, 999999, true ) toggleControl ( player, "fire", false ) setElementFrozen(player, true) end end end addEventHandler( "onMarkerHit", WarMission, War ) setTimer ( function (player) addEventHandler( "onMarkerHit", WarMission, War ) toggleControl ( player, "fire", true ) setElementFrozen(player, false) end, 1*60000, 0 ) سويت كذا لكن بعدد ما ادخل المهمه بي 1 دقيقه ماينفتح لا الفريز ولا السلاح ض2 حتى الكلام مايجي بي الشات حق المهم ق بدا المهمه الي بي السطور الاول يجمآعه الحل تكفون ض1
  19. local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) function layer () outputChatBox("تم بددآ المهم اذهب الى المآركه لـدخول الى المهمه", root, 50, 30, 255) outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) end addEventHandler ( "onPlayerJoin", getRootElement(), layer ) local war = { {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, {2485.00000,-1667.00000,13.34375}, } function War(player) if getElementType(player) == "player" and not isPedInVehicle(player) then if source == WarMission then if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end local x, y, z = unpack(war[math.random(#war)]) setElementPosition(player, x, y, z) setPlayerSkin (player, 2) setElementDimension ( player, 6 ) giveWeapon ( player, 4, 1, true ) giveWeapon ( player, 27, 999999, true ) giveWeapon ( player, 31, 999999, true ) giveWeapon ( player, 30, 999999, true ) giveWeapon ( player, 16, 2, true ) giveWeapon ( player, 25, 999999, true ) toggleControl ( player, "fire", false ) setElementFrozen(player, true) end end end addEventHandler( "onMarkerHit", WarMission, War ) setTimer ( function (player) addEventHandler( "onMarkerHit", WarMission, War ) toggleControl ( player, "fire", true ) setElementFrozen(player, false) end, 1*60000, 0 ) سويت كذا لكن بعدد ما ادخل المهمه بي 1 دقيقه ماينفتح لا الفريز ولا السلاح ض2 حتى الكلام مايجي بي الشات حق المهم ق بدا المهمه الي بي السطور الاول
×
×
  • Create New...