Jump to content

!#NssoR_)

Retired Staff
  • Posts

    1,474
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by !#NssoR_)

  1. تصحيح الكود : local Images = { "images/NssoR.png" , "images/button.png" , "images/panel.png", } addEventHandler ('onClientResourceStart',resourceRoot , function ( ) myImage = guiCreateStaticImage ( 0.45, 0.48, 0.2, 0.5, "images/NssoR.png", true ) setTimer (function (myImage) guiStaticImageLoadImage( myImage, Images[math.random(#Images)] ) end,2000,0,myImage) end)
  2. تفضل : x,y,z = 2485.06665, -1667.15356, 13.34375 marker = createMarker( x,y,z, 'cylinder', 4, 0, 0, 0, 0 ) Gate = createObject ( 2963, x,y,z, 0, 0, 270.25 ) addEventHandler("onPlayerLogin",root, function (_,acc) local accName = getAccountName(acc) if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then setElementData(source,'openit',true) end end) addEventHandler("onPlayerLogout",root, function (_,acc) local accName = getAccountName(acc) if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then setElementData(source,'openit',false) end end) addEventHandler("onMarkerHit", marker, function (Element) if getElementType(Element) == "player" then if getElementData(Element,'openit') then moveObject(Gate,1500, x,y,z+7 ) else outputChatBox('* You are not admin ',Element,0,255,255,true) end end end , false ) addEventHandler ( "onMarkerLeave", marker, function (Element) if getElementType(Element) == "player" then if getElementData(Element,'openit') then moveObject(Gate,1500, x,y,z ) end end end , false ) كل الي عليك انك تحط احداثيات الباب في السطر الاول و الباقي علي السكربت ذذ أي خطأ قول
  3. اخوي ملف السيرفر معك خليه فااضي امسح كل شي وخلي الاكواد هاذي فيه فقط -- the Code By the Best local skin = {} addEventHandler ( 'onPlayerWasted', root, function () skin [ source ] = getElementModel ( source ) end ) addEventHandler ( 'onPlayerSpawn', root, function () setTimer (setElementModel ,1000,1, source, skin [ source ] ) end ) ارجع وأكرر ملف السيرفر الي معك خليه فاضي وحط الاكواد الي فوق فيه .
  4. TeamName = 'testTeam' -- اسم التيم GroupName = 'testGroup' -- اسم القروب CarsTable = {} addEventHandler("onMarkerHit", marker, function ( player ) if ( getElementType(player) == "player" ) then if ( CarsTable[player] ) then destroyElement(CarsTable[ player]) end local theTeam = getPlayerTeam ( player ) local theGroup = getElementData ( player ) if ( theTeam and theTeam == getTeamFromName(TeamName) and theGroup and theGroup == GroupName ) then local x, y, z = getElementPosition(player) CarsTable[ player] = createVehicle(602, x, y, z) if CarsTable[ player] then warpPedIntoVehicle(player,CarsTable[ player]) end end end end)
  5. ذذ اخوي الاكواد شغاله 100 % وانا جربته وشغال وقلت برفعه لك Take this : http://www.solidfiles.com/d/5b173a23ff/NssoR^_^.rar
  6. وانته ي عم بتعاني من ايه لما ترد علي مواضيع بئا لها فوق السنتين !
  7. لوووووول وليه زعلان طيب؟ يمديك تسويه بهذا الشكل , اكوادك الي انت كنت مسويها للسعر كثيره ع الفاضي GUIEditor = { button = {}, staticimage = {} } addEventHandler('onClientResourceStart',resourceRoot, function () Window = guiCreateWindow(281, 109, 320, 393, "- [ Health Shop ] - ", false) guiWindowSetSizable(Window, false) guiSetAlpha(Window, 1.00) GridList = guiCreateGridList(9, 20, 159, 363, false, Window) Col = guiGridListAddColumn(GridList, "Menu", 0.5) Col = guiGridListAddColumn(GridList, "Price", 0.5) Button = guiCreateButton(178, 351, 132, 32, "= [ Close ] =", false, Window) guiSetProperty(Button, "NormalTextColour", "FFAAAAAA") Button1 = guiCreateButton(178, 305, 132, 32, "= [ Buy ] =", false, Window) guiSetProperty(Button1, "NormalTextColour", "FFAAAAAA") guiSetVisible(Window, true) ImgTable = { { "health",2500, "health1.png" }; { "health2",300, "health2.png" }; { "img3",5400, "img3.png" }; -- { "imgName,price, "filePath" }; }; for i, v in ipairs ( ImgTable ) do row = guiGridListAddRow(GridList) guiGridListSetItemText ( GridList, row, 1, v [ 1 ], false, false ); guiGridListSetItemData ( GridList, row, 1, v [ 3 ] ); guiGridListSetItemText ( GridList, row, 2, v [ 2 ], false, false ); end img = guiCreateStaticImage ( 171, 21, 139, 257, ImgTable [ 1 ][ 3 ], false, Window ); guiSetVisible ( img, false ); end) addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if source == GridList then if guiGetVisible ( img ) == false then guiSetVisible ( img, true ); end local filePath = guiGridListGetItemData ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ); if filePath and filePath ~= "" then guiStaticImageLoadImage ( img, filePath ); end elseif source == Button then guiSetVisible(Window, false) showCursor ( false ) elseif source == Button1 then local row = guiGridListGetSelectedItem(GridList) if row == 0 then triggerServerEvent("setMyHealth", localPlayer) elseif row == 1 then triggerServerEvent("setMyHealth1", localPlayer) elseif row == 2 then triggerServerEvent("setMyHealth2", localPlayer) elseif row == 3 then triggerServerEvent("setMyHealth3", localPlayer) end end end );
  8. رتبتهم لك واختصرت عليك بعض الاكواد Note : غير مجرب GUIEditor = { button = {}, staticimage = {} } addEventHandler('onClientResourceStart',resourceRoot, function () Window = guiCreateWindow(281, 109, 320, 393, "- [ Health Shop ] - ", false) guiWindowSetSizable(Window, false) guiSetAlpha(Window, 1.00) GridList = guiCreateGridList(9, 20, 159, 363, false, Window) Col = guiGridListAddColumn(GridList, "Menu", 0.5) Col = guiGridListAddColumn(GridList, "Price", 0.5) Button = guiCreateButton(178, 351, 132, 32, "= [ Close ] =", false, Window) guiSetProperty(Button, "NormalTextColour", "FFAAAAAA") Button1 = guiCreateButton(178, 305, 132, 32, "= [ Buy ] =", false, Window) guiSetProperty(Button1, "NormalTextColour", "FFAAAAAA") guiSetVisible(Window, true) ImgTable = { { "health", "health1.png" }; { "health2", "health2.png" }; { "img3", "img3.png" }; -- { "imgName, "filePath" }; }; for i, v in ipairs ( ImgTable ) do row = guiGridListAddRow(GridList) guiGridListSetItemText ( GridList, row, 1, v [ 1 ], false, false ); guiGridListSetItemData ( GridList, row, 1, v [ 2 ] ); end img = guiCreateStaticImage ( 171, 21, 139, 257, ImgTable [ 1 ][ 2 ], false, Window ); guiSetVisible ( img, false ); end) addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if source == GridList then if guiGetVisible ( img ) == false then guiSetVisible ( img, true ); end local filePath = guiGridListGetItemData ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ); if filePath and filePath ~= "" then guiStaticImageLoadImage ( img, filePath ); end elseif source == Button then guiSetVisible(Window, false) showCursor ( false ) elseif source == Button1 then local row = guiGridListGetSelectedItem(GridList) if row == 0 then triggerServerEvent("setMyHealth", localPlayer) elseif row == 1 then triggerServerEvent("setMyHealth1", localPlayer) elseif row == 2 then triggerServerEvent("setMyHealth2", localPlayer) elseif row == 3 then triggerServerEvent("setMyHealth3", localPlayer) end end end );
  9. وعليكم السلام , اهنيك ي بطل ع الشغل الجميل ولكن حبيت اقولك ان هذا مو اول مقر في اللعبة , انا شفت مقرات كثيره تحت الماء ,
  10. مركب عليهم سكنات Ped اخوي حديقة الحيوانات الي كانت عند تطوير هي عباره عن علي انه يتحرك لقدام setPedAnimation والطريقة سهله اولا تسوي للبيد وتسوي زي كذا setTimer(function () local _,_,R = getElementRotation(ped) setElementRotation(ped,0,0,R+4) end,900,0) وانتهينا .
  11. حياكم الله نورتو الموضوع @ SaRy,#DanGer كنت ناشره بمنتدي اخوي بروفيسور وقلت انشره هنا
  12. Line 5 createdVehicle = X source = The source of this event is the marker that got hit by the element. marker = createMarker(2088.07031, -1629.89954, 13.54688, "cylinder", 1.7, 0, 0, 255) addEventHandler("onMarkerHit", marker, function ( player ) local nx, ny, nz = getElementPosition ( player ) vehicle = createVehicle(468,nx, ny, nz ) warpPedIntoVehicle ( player , vehicle ) outputChatBox (' * your in the vehicle Now, Drive *', player , 255, 255, 0 ) end )
  13. اليوم وانا ابحث في موداتي القديمه لقيت عندي سكربت قديم وقلت انشره يمديك من هذا السكربت انك تعرف الادمن هذا متي اخر مره دخل السيرفر ( Quit , Kicked , Ban , etc.. ) وطبعا الوحه بيتسجل فيها اسم حسابه واسمه وقروبه والتاريخ الي دخل فيه وسبب الخروج يمديك من هل ملف انك تحدد الاشخاص الي راح تتم مراقبتهم وفيه زر بـ الوحة اسمه مسح الوق Settings وطبعا فيه ملف اسمه هذا فايدته اذا شفت مثلا الوق فيه لاعبين كثاار تسجلو تضغط الزر هذا وراح ينحذفون كلهم ويبدا يسجل من جديد وطبعا قروبات محدده الي تقدر تمسح الوق انت تحددها من ملف الـ سيتينق وتقدر تحدد اذا تبي الوحه تفتح من خلال كومند او زر وهاذي صوره للسكربت ....# #.. هذا يجي علي حسب اسم سيرفرك Welcome To Server ومثل ما انتم شايفين تحت مكتوب واخيرا وصلنا للتحميل واتمني ان السكربت عجبكم رابط التحميل | Download Link سبحــان الله وبحمده سبــحان الله العظيــمتحياتي اخوكم | نصـور ( )
  14. شرح جميل ي بططل , ولكن من رأيي افضل انك تنزل الشرحين مع بعض And Thanks .
  15. + setTimer -- تايمر عشان يخلي التحميل يعبي guiCreateLabel -- يكتب كلام مثل ( رجاء انتظر التحميل fadeCamera -- يخلي الشاشه سودا destroyElement -- يشيل التحميل dxDrawImage = مالها فايده في الي طلبه صاحب الموضوع
  16. شغال علي كل الانتروات الي بـ اللعبة
  17. وعليكم السلام والرحمة اخوي ماكس كودك طويل عريض ع وش مادري + الحدث الي انت مستخدمه خطأ مو الحدث المطلوب فـ يجب ان تستخدم الحدث * Event : onClientPlayerWeaponSwitch المهم كود صاحب الموضوع يكون بهذا الشكل function disableMinigunOnSwitch ( _, newSlot ) if getPedWeapon(getLocalPlayer(),newSlot) == 17 or getPedWeapon(getLocalPlayer(),newSlot) == 16 then if getElementInterior(getLocalPlayer()) ~= 0 then toggleControl ( "fire", false ) else toggleControl ( "fire", true ) end else toggleControl ( "fire", true ) end end addEventHandler ( "onClientPlayerWeaponSwitch", getRootElement(), disableMinigunOnSwitch ) طبعا الكود ماخذه من الويكي ومعدل عليه و الكود كلنت وتحياتي اخوك نصـور
  18. اخوي اهنيك ع الفكرة الجميلة , ولكن لو تلاحظ لما تضغط علي اي شخص منزل صوره اكثر من 3 مرات بسرعه راح يحصل خطأ في إظهار الصور يعني لما تضغط ع واحد ثاني مره وحده بتشوف صورة الشخص الي ضغطت عليه اكثر من 3 مرات ونشوف ابداعاتك القادمة ي بطل .. تحياتي
  19. صراحة سيرفر ماعليه كلام ومن فتره واحنا ننتظره وهذا الابدااع الي ماعليه كلام واكثر شئ عاجبني ان مافيه اي شي نفس السيرفرات الاخري ( تقليد ) ذذ واتمني انه يكون من افضل وانجح السيرفرات مع مرور الوقت تقبل مروري
  20. والله منتدي جميل ي بططل والاستايل خططير ان شاءالله نشوفه من افضل المنتديات وعقبال الـ 300 عضو واكثر
×
×
  • Create New...