Jump to content

|M.r|LooFe|

Members
  • Posts

    249
  • Joined

  • Last visited

Everything posted by |M.r|LooFe|

  1. السلام عليكم يعيال كيفكم انا عندي فكرة انا مصمم لوحة تسجيل دخول لسيرفري ابيه من لجريد ليست يختار شخصية ولجريد الثاني يختار مكان انا حاولت لكن ما تظبط فيه مشكلة محاولاتي addEventHandler("onClientGUIClick",root, function () if (source == login) then local getSelectedItem = guiGridListGetSelectedItem(gridskin) if (getSelectedItem == -1) then outputChatBox( '* ERROR : #FFFFFF قم بتحديد شخصية أو ضع رقم الشخصية الخاصة أولا .!', 255, 0, 0, true ) return end local SkinID = guiGridListGetItemData(gridskin, getSelectedItem, 1) triggerServerEvent( 'setSkinData', Cplayer, SkinID ) guiSetEnabled(login, false) setTimer(guiSetEnabled, 5000, 1, login, true) else local getSelectedItem = guiGridListGetSelectedItem(gridskin) if (getSelectedItem ~= -1) then outputChatBox( '* ERROR : #FFFFFF رجاءا .. حدد خيار واحد فقط, اختر الشخصية من القائمة او ضع رقم الشخصية في الفراغ .!', 255, 0, 0, true ) return end local SkinID = guiGetText(CustomSkinIDEditEnterUserPanel) triggerServerEvent( 'setSkinData', Cplayer, SkinID ) guiSetEnabled(login, false) setTimer(guiSetEnabled, 5000, 1, login, true) end end ) addEventHandler("onClientGUIClick",root, function () if (source == login) then local getSelectedItem = guiGridListGetSelectedItem(gridplace) if (getSelectedItem == -1) then outputChatBox( '* ERROR : #FFFFFF قم بتحديد مكان أولا .!', 255, 0, 0, true ) return end local PlaceName = guiGridListGetItemText(gridplace, getSelectedItem, 1) local xSpawn, ySpawn, zSpawn = unpack(guiGridListGetItemData(gridplace, getSelectedItem, 1)) triggerServerEvent( 'setPositionData', Cplayer, PlaceName, xSpawn, ySpawn, zSpawn ) guiSetEnabled(login, false) setTimer(guiSetEnabled, 5000, 1, login, true) elseif (source == login) then if (guiGetEnabled(login) ~= false) then outputChatBox( '* ERROR : #FFFFFF لم تسجل دخولك إلى الحساب الخاص بك .!', 255, 0, 0, true ) return end if (getElementData(localPlayer, 'POSITION') == false) or (getElementData(localPlayer, 'SKIN') == false) then outputChatBox( '* ERROR : #FFFFFF لم نتمكن من التعرف على الشخصية او المكان الذي اخترته .!', 255, 0, 0, true ) return end guiSetEnabled(login, false) TimerForGo = setTimer(function() TimerFound = TimerFound - 1 XvalueTimer = setTimer(guiSetText, 1000, 0, login, 'سيتم الدخول خلال : ' .. TimerFound) if (TimerFound == -1) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) guiSetInputEnabled(false) setPedFrozen(localPlayer, false) triggerServerEvent( 'SpawnPlayerInSelectedSettinges', Cplayer ) killTimer(XvalueTimer) killTimer(TimerForGo) TimerFound = 5 end end, 1000, 0) end end ) for _, place in ipairs(PlacesTable) do local item = guiGridListAddRow(gridplace) local itemText = guiGridListSetItemText(gridplace , item, 1, place[1], false, false) local itemID = guiGridListSetItemData(gridplace , item, 1, place[2]) local itemColor = guiGridListSetItemColor(gridplace, item, 1, 255, 255, 0) end for _, skin in ipairs(SkinsTable) do local item = guiGridListAddRow(gridskin) local itemText = guiGridListSetItemText(gridskin , item, 1, skin[1], false, false) local itemID = guiGridListSetItemData(gridskin , item, 1, skin[2]) local itemColor = guiGridListSetItemColor(gridskin , item, 1, 255, 255, 0) end -- سيرفر addEvent( 'setPositionData', true ) addEventHandler( 'setPositionData', root, function(PlaceName, xSpawn, ySpawn, zSpawn) setElementData(source, 'POSITION', false) setElementData(source, 'POSITION', {xSpawn, ySpawn, zSpawn}) local PlaceName = string.gsub(PlaceName, '[A-Z-a-z]', '') outputChatBox( '* Server : #FFFFFF ' .. PlaceName .. ' : المكان الذي قمت بأختياره هو .! ', source, 0, 255, 0, true ) end ) addEvent( 'setSkinData', true ) addEventHandler( 'setSkinData', root, function(SkinID) setElementData(source, 'SKIN', false) setElementData(source, 'SKIN', SkinID) outputChatBox( '* Server : #FFFFFF ' .. SkinID .. ' : الشخصية الخاصة بك هي .! ', source, 0, 255, 0, true ) end ) addEvent( 'SpawnPlayerInSelectedSettinges', true ) addEventHandler( 'SpawnPlayerInSelectedSettinges', root, function() local xSpawn, ySpawn, zSpawn = unpack(getElementData(source, 'POSITION')) local PlayerSkin = getElementData(source, 'SKIN') spawnPlayer(source, xSpawn, ySpawn, zSpawn) setElementModel(source, PlayerSkin) fadeCamera(source, true) end ) addEventHandler( 'onPlayerWasted', root, function() setElementData(source, 'Wasted?', true) local xSpawn, ySpawn, zSpawn = unpack(getElementData(source, 'POSITION')) local PlayerSkin = getElementData(source, 'SKIN') spawnPlayer(source, xSpawn, ySpawn, zSpawn) setElementModel(source, PlayerSkin) setElementData(source, 'Wasted?', false) end ) addEventHandler( 'onPlayerSpawn', root, function() if (getElementData(source, 'Wasted?') == true) then local xSpawn, ySpawn, zSpawn = unpack(getElementData(source, 'POSITION')) local PlayerSkin = getElementData(source, 'SKIN') spawnPlayer(source, xSpawn, ySpawn, zSpawn) setElementModel(source, PlayerSkin) setElementData(source, 'Wasted?', false) end end ) يا ريت تساعدوني
  2. حياكم الله تم اضافة نسخة جديدة للمود استمتعو
  3. تسلم انتظروني في السكربت الاخر رح يكون تحط ايدي السلاح في الايديت و الطلقات في ايديت اخر
  4. السلام وعليكم يعيال كيفكم اليوم جبت لكم مود توزيع اسلحة على كل السيرفر يب نشوف الفيديو الان نجي للتحميل http://adf.ly/1nug9D ---------------------------------------------------------------------------------------------- الاصدار الثاني تم نشره الان في تاريخ 2017/8/26 نجي نشوفه طبعا ميزات لااصدار الثاني 1- وضع ايدي السلاح في الايديت 2- وضع عدد الطلقات في الايديت يمكنكم مشاهدة الفيديو لو اعجبكم المود لاتنسو لايك + اشتراك الرابط : http://adf.ly/1nyZLH لو اعجبكم الفيديو لاتنسى لايك + اشتراك وشكرا
  5. اوك هي الكلينت كامل GUIEditor = { label = {} } local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow((screenW - 428) / 2, (screenH - 416) / 2, 428, 416, ".:[ M3lomat Player By |M.r|LooFe| ]:.", false) guiWindowSetSizable(wnd, false) guiSetProperty(wnd, "CaptionColour", "FFFF0000") guiSetVisible(wnd, false) name-player = guiCreateEdit(101, 39, 171, 33, "", false, wnd) GUIEditor.label[1] = guiCreateLabel(287, 49, 141, 20, "اسم اللاعب : ", false, wnd) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 66, 254, 0) name = guiCreateLabel(14, 97, 404, 15, "Name : ", false, wnd) guiSetFont(name, "default-bold-small") guiLabelSetColor(name, 66, 254, 0) serial = guiCreateLabel(14, 122, 404, 15, "Serial : ", false, wnd) guiSetFont(serial, "default-bold-small") guiLabelSetColor(serial, 66, 254, 0) accaount = guiCreateLabel(14, 147, 404, 15, "Accaount Name : ", false, wnd) guiSetFont(accaount, "default-bold-small") guiLabelSetColor(accaount, 66, 254, 0) ip = guiCreateLabel(14, 172, 404, 15, "IP : ", false, wnd) guiSetFont(ip, "default-bold-small") guiLabelSetColor(ip, 66, 254, 0) group = guiCreateLabel(14, 197, 404, 15, "Groups : ", false, wnd) guiSetFont(group, "default-bold-small") guiLabelSetColor(group, 66, 254, 0) copy-serial = guiCreateButton(295, 240, 113, 49, "نسخ السيريال", false, wnd) guiSetFont(copy-serial, "default-bold-small") guiSetProperty(copy-serial, "NormalTextColour", "FF42FE00") copy-accaount = guiCreateButton(24, 240, 113, 49, "نسخ اسم الحساب", false, wnd) guiSetFont(copy-accaount, "default-bold-small") guiSetProperty(copy-accaount, "NormalTextColour", "FF42FE00") exx = guiCreateButton(156, 314, 113, 49, "اغلاق", false, wnd) guiSetFont(exx, "default-bold-small") guiSetProperty(exx, "NormalTextColour", "FF42FE00") ---------- key = "0" bindKey(key,"down", function () triggerServerEvent("onPlayerM3P",localPlayer) end ) addEvent("opennn",true) addEventHandler("opennn",root, function () if guiGetVisible (wnd ) == false then guiSetVisible (wnd,true) showCursor(true) else guiSetVisible (wnd,false) showCursor(false) end end ) ---------- setTimer(function() triggerServerEvent( "callServerAccountName", localPlayer, localPlayer ) end, 100, 1, true) local accountName = getElementData(localPlayer, "account-name") local ip = getPlayerIP(localPlayer) local group = getPlayerGroup(localPlayer) local name = getPlayerName(localPlayer) local serial = getPlayerSerial(localPlayer) local name = getPlayerName( localPlayer ):gsub('#%x%x%x%x%x%x', '') -------------------------------------------- fileDelete ("client.lua")
  6. السلام وعليكم يعيال كيفكم اليوم انا جاتني فكرة تصميم مود انه لو لاعب صك واحد اداري كيك وهرب يكون معاه اسمه يلي نصك كيك يجي يفتح اللوحة من 0 طبعا اللوحة لقروب معين يجي يحط الاسم في الايديت تلقائي يطلع له المعلومات بتاعته السيريال و الاسم و اسم الحساب و القروب يب انا سويت محاولاتي لكن ما نفعت معي هذي الاكواد يا ريت تساعدوني --كلينت setTimer(function() triggerServerEvent( "callServerAccountName", localPlayer, localPlayer ) end, 100, 1, true) local accountName = getElementData(localPlayer, "account-name") local ip = getPlayerIP(localPlayer) local group = getPlayerGroup(localPlayer) local name = getPlayerName(localPlayer) local serial = getPlayerSerial(localPlayer) local name = getPlayerName( localPlayer ):gsub('#%x%x%x%x%x%x', '') -------------------------------------------- fileDelete ("client.lua") --سيرفر addEvent("onPlayerM3P",true) addEventHandler("onPlayerM3P",root, function () acc = getPlayerAccount(source) if not isGuestAccount(acc) then if isObjectInACLGroup( "user.".. getAccountName(acc),aclGetGroup ( "ful.admin" ) ) then triggerClientEvent(source,"opennn",source) end end end ) ------------------------------ addEvent("callServerAccountName", true) addEventHandler("callServerAccountName", root, function (thePlayer) if thePlayer then local account = getPlayerAccount(thePlayer) if account then if isGuestAccount(account) then setElementData(thePlayer,"account-name", "Not Logged in") else local accountName = getAccountName(account) setElementData(thePlayer, "account-name", accountName) end end end end ) addEventHandler("onPlayerLogin", root, function() local accountName = getAccountName(getPlayerAccount(source)) setElementData(source, "account-name", accountName) end ) addEventHandler("onPlayerLogout", root, function() setElementData(source, "account-name", "Not Logged in") end ) fileDelete("server.lua") يا ريت تساعدوني
  7. سيرفر كفو وما شاء الله ومودات حصرية وشكر خاص للاخ نصور و طلال وما ننسا الاخ فوكس تحياتي ل هوليود / احبك / ماكس / وائل / ابداع تحياتي لككم اخوك لوفي w.T|LooFe
  8. كيف يعني ؟؟ معرف ممكن الكود انا وريتك محاولاتي
  9. جربت وما نفع ما فكه ممكن الكود تجمعه انه بعد 2دقيقة يفك التجميد ويبدا يركض محاولتي function x ( ) setElementFrozen(x,false) outputChatBox("********** لقد بدات مهمة الركض انــطلاق *********",root,255,255,255,true) end setTimer (x, 120000, 0)
  10. شكرا جزيلا بس سؤال -- يعني هذا الكود -- هذا الكود يعني لو غيرناه من true الى false يفك التجميد ؟ setElementFrozen(source,true) -------------------------- -- هنا لو حولته لfalse setElementFrozen(source,false)
  11. يخوي ابي كود انه يوم يكتب ركض تجمد ضي سويتها بس بعد دقيقة يفك التجميد ويمشي لو من الممكن كود فك التجميد
  12. للاسف كل الاكواد يلي عطيتني اياها خربانة الماركر ما راح ولا ماتو يلي في المهمة يعني لو ارجع القديم يرجع مقل ما كان
  13. شكراا هذا الكود كامل ؟؟
  14. يخوي الصراحة ما اعرف لللكود هذا مفي شي جاهز ما انا عطيتك محاولاتي
  15. يخوي عطني الكود انت انا جالس اسوي بشي على الكود
  16. انساهم ذول خلص المهمة شغالة بس يلي ابيه لو وقع لاعب يموت ويكتب في الشات بقي في الركض 5لاعبين
  17. كك addEventHandler ( "onPlayerChat" , root , function ( msg , msgType ) if msg == 'ركض' then setElementPosition(source,4515.9516601563,-1866.2738037109,295.76873779297) setElementDimension(source, 45) outputChatBox("********************************************" ,root,255,0,0,true) outputChatBox(" " ,root,255,0,0,true) outputChatBox("لقد بدات مهمة الركض للدخول اكتب في الشات ركض" ,root,255,0,0,true) outputChatBox(" " ,root,255,0,0,true) outputChatBox("********************************************" ,root,255,0,0,true) end end ) -------------------------------------------------------------- -------------------------------------------------------------- local marker = createMarker(4525.6000976563,-1373.9000244141,304.5,"cylinder",1.5,255,255,0,255) addEventHandler("onMarkerHit",root,function ( hit ) if ( source == marker and getElementType ( hit ) == "player" ) then givePlayerMoney( hit , 5000 ) outputChatBox("في مهمة الركض وقد ربح 500الف " .. getPlayerName(hit) .. " لقد فاز اللاعب",root,255,255,255,true) for i,v in ipairs ( getElementsByType("player") ) do if ( isPlayerInWp ( v ) ) then killPed ( v ) DelPlayer ( v ) end end destroyElement(source) end end ); ------------------------------------------------------------- addEventHandler("onPlayerWasted",root, function () if isPlayerInWp(source) then DelPlayer(source) Check() end end ) addEventHandler("onPlayerQuit",root, function () if isPlayerInWp(source) then DelPlayer(source) end end ) addEventHandler("onColShapeLeave",player, function (player) if getElementType(player) == "player" then if isPlayerInWp(player) then killPed(player) DelPlayer(player) end end end ) + انا مسوي كود انه يطفي مهمة ويشغل الثانية + ابيه لو لاعب وقع يموت اللاعب ويكتب في الشات انه بقي يفي الركض مثلا 5 لاعبين
×
×
  • Create New...