Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. ججرب ذآ GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(195,209,395,295,"ورشة الهندي بواسطة مستر الكارثه",false) GUIEditor_Radio[1] = guiCreateRadioButton(178,-1721,5,600,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0329,0.0678,0.9519,0.0847,"مرحبا صديقي مذا تريد ان تفعل اليوم بسيارتك ",true,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Image[1] = guiCreateStaticImage(0.3316,0.2475,0.3165,0.7017,"Hndi.png",true,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(0.6506,0.1831,0.3342,0.0949,"هل تريد تغير جنوط السياره",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.6633,0.2746,0.3089,0.1017,"جنط رقم 1",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.6658,0.3966,0.3114,0.1051,"جنط رقم 2",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.6684,0.5186,0.3089,0.1051,"جنط رقم 3",true,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(0.6709,0.6407,0.3063,0.1051,"جنط رقم 4",true,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(0.6734,0.7559,0.3038,0.1085,"جنط رقم 5",true,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(0.0228,0.0712,0.1342,0.1085,"اغلاق",true,GUIEditor_Window[1]) close = guiCreateButton(200,400,90,30,"اغلاق",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(0,0.2034,0.3392,0.0712,"هل تريد أضافة هادروليك ",true,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(0.0228,0.2814,0.2987,0.0983,"أضافة هادروليك",true,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(0.0329,0.4237,0.3013,0.0814,"صديق تبي نيترو ",true,GUIEditor_Window[1]) GUIEditor_Button[8] = guiCreateButton(0.0278,0.522,0.2937,0.0949,"اضافة نيترو",true,GUIEditor_Window[1]) GUIEditor_Label[5] = guiCreateLabel(0.0329,0.6271,0.2835,0.0441,"-----------------------------",true,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(0.0354,0.6814,0.2709,0.0644,"جميع الحقوق محفوظه لدى ",true,GUIEditor_Window[1]) GUIEditor_Label[7] = guiCreateLabel(0.0304,0.7525,0.2886,0.0542,"مستر الكارثه ",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) GUIEditor_Label[8] = guiCreateLabel(0.0278,0.8136,0.2962,0.0576,"مستر حريقا ",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[8],255,0,0) GUIEditor_Label[9] = guiCreateLabel(0.0152,0.861,0.3038,0.0508,"--------------------------------",true,GUIEditor_Window[1]) GUIEditor_Label[10] = guiCreateLabel(0.0228,0.9051,0.2861,0.0678," [email protected] ",true,GUIEditor_Window[1]) guiSetVisible (GUIEditor_Window[1], false) ------ كود ابقاء النافذه مخفية ------------------------------------------------------------- addEventHandler ("onClientGUIClick", root, function(button, state, absoluteX, absoluteY) if ( source == close ) then -- زر إغلاق النافذة guiSetVisible( GUIEditor_Window[1], false ) showCursor(false) elseif ( source == GUIEditor_Button[1] ) then triggerServerEvent("1010",getLocalPlayer()) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("1009",getLocalPlayer()) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent("1008",getLocalPlayer()) elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent("1087",getLocalPlayer()) elseif ( source == GUIEditor_Button[5] ) then triggerServerEvent("1025",getLocalPlayer()) end end ) ----------------------------------الماركر--------------------------------------------- local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) -- احداثيات الماركر addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor_Window[1] ,true )--اسم النافذه showCursor( true ) guiSetInputEnabled(false) end end )
  2. setElementData getElementData destroyElement
  3. هو صحيح يترجم لكنه يجيب كلمات متقاطعة و احياناً مالها معنى
  4. سسطر 67 × إيفنت addEventHandler("onClientGUIClick", اغلاق CLOSE, false) التصحيح addEventHandler("onClientGUIClick", close , CLOSE)
  5. جرب ذآ guiSetVisible ( shopWindow , false ) bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow , false ) showCursor ( false ) guiSetInputEnabled ( false ) else guiSetVisible ( shopWindow , true ) showCursor ( false ) guiSetInputEnabled ( true ) playSound ("other/open.wav") end end ) هو أسم النافذة shopWindow مع العلم بأن إذا طلعت ودخلت و خلص التحميل معناتها تو المود يشتغل و نفس الكلام إذا شغلت المود و خلص التحميل
  6. وآإضضح ردودكـ تزويد مششآركآت .. و إضاعة وقت .. يالله عقبآل تفتح المدآرسس و تنشغل بـ الوآجبات =]
  7. -_-" مآسسرقوا شيء الدفع فيهآ خلل .. وإذا طلبت الدعم رآحح يوفرون لكـ سيرفر =]
  8. انت بـ تستخدمه في ايش ؟؟ يعني وش تبي يكون فيه ؟
  9. ولككن انصحكـ تحول الككود إلى كلنت .. لأن السيرفر بيصصير تجمع شخصيات في مكآن واحد .. أو استخدم معه ذآ destroyElement أو setElementAlpha
  10. أنت اللي عليكـ تضبيط الكام تحطه شوي يمين شوي شمآل .. لين ماتثبته .. مو كل شيء جاهز
  11. onPlayerJoin هذا مع إيفنت يعني إذا دخلت تبدأ .. مجربه عندي و شغآل =] getElementPosition و إحداثيات الككآم تقدر تغير فيهآ بدآل حط الإحداثيات مبآشرة .. و هذي أكواد سيرفر +
  12. ججرب ذا .. addEventHandler("onPlayerJoin",root, function () ped = createPed( 120, -322.06091308594 , 952.46911621094 , 12.1328125 ) setElementFrozen( ped, true ) fadeCamera ( source , true ) pX , pY , pZ = getElementPosition ( ped ) setTimer ( setCameraMatrix , 1000 , 1 , source , pX , pY + 2 , pZ ) end )
  13. إيه نفس الطريقة لكن الفرق انكـ تخليه يطير بالجو و تجمده على شأن مايطيح ped = createPed( 120, x , y , z ) setElementFrozen(ped, true) pX , pY , pZ = getElementPosition(ped) setCameraMatrix ( source , pX , pY , pZ ) وإذا تبيه يتحرك استخدم معه ذا setPedAnimation
  14. لووول قصدكـ شاشة صغيرة مثل المراقبة
  15. x , y , z جرب ذا بتغيير الإحداثيات ped = createPed ( 120 , x , y , z ) setCameraTarget(ped) او ped = createPed ( 120 , x , y , z ) pX , pY , pZ = getElementPosition ( ped ) setCameraMatrix(source , pX , pY , pZ)
  16. استخدم ذا الكود setPedAnimation و دور الحركة اللي تخليه يمشي ..
  17. هذا الكود حطه كلنت و بدون وظايف خله مفتوح على شأن يششتغل اول مايدخل playSound و ححط ذا الكود عند زر تسجيل الدخول stopSound
  18. 3NAD

    مشكلة

    الخلل من ملف التعريف !! meta تأكد من الـ
  19. ططيب انت الححين وشش اللي تبيه ؟؟
  20. هذآ ششغآل إن شاء الله .. جربه و رد لي خبر .. function onjoin () setElementData(source,"CanUseTheMarkeryesorNo",tostring("Yes")) end addEventHandler("onPlayerJoin",root,onjoin) marcker1ofGive = createMarker (-3510.6000976563,-2956.8000488281,60.200000762939, "cylinder", 4.5, 0, 0, 255, 320 ) function MarkerHit( thePlayer ) permission = getElementData(thePlayer,"CanUseTheMarkeryesorNo") if permission ~= tostring("Yes") then if not isPedInVehicle(thePlayer) then x,y,z = getElementPosition( thePlayer ) infurnuis = createVehicle ( 411, x, y, z ) warpPedIntoVehicle(thePlayer,infurnuis) setElementData(thePlayer,"CanUseTheMarkeryesorNo",tostring("Yes")) end end end addEventHandler( "onMarkerHit", marcker1ofGive, MarkerHit ) function onquit () destroyElement(infurnuis) end addEventHandler("onPlayerQuit",root,onquit) function destroyIt() setTimer(destroyElement,2000,1,infurnuis) end addEventHandler("onVehicleExplode",root,destroyIt)
  21. ججرب ذا function onjoin () setElementData(source,"CanUseTheMarkeryesorNo",tostring("Yes")) end addEventHandler("onPlayerJoin",root,onjoin) marcker1ofGive = createMarker (-3510.6000976563,-2956.8000488281,60.200000762939, "cylinder", 4.5, 0, 0, 255, 320 ) function MarkerHit( thePlayer ) permission = getElementData(thePlayer,"CanUseTheMarkeryesorNo") if permission == "Yes" then if not isPedInVehicle(thePlayer) then x,y,z = getElementPosition( thePlayer ) infurnuis = createVehicle ( 411, x, y, z ) warpPedIntoVehicle(thePlayer,infurnuis) setElementData(thePlayer,"CanUseTheMarkeryesorNo",tostring("No")) end end end addEventHandler( "onMarkerHit", marcker1ofGive, MarkerHit ) function onquit () destroyElement(infurnuis) end addEventHandler("onPlayerQuit",root,onquit) function destroyIt() setTimer(destroyElement,2000,1,infurnuis) end addEventHandler("onVehicleExplode",root,destroyIt)
×
×
  • Create New...