Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/09/17 in all areas

  1. النظام 24 ساعه يعني 7 مثل نصور صباح 19 مسائي وعلى كذا
    2 points
  2. local time = getRealTime() local hours = time.hour if ( hours == 7 ) then -- 7 AM end مثال يشرحلك كيفية التحقق من ان الوقت 7 صباحا
    2 points
  3. @koragg i found how to do this that the calculations: local AngX, AngZ, specdis, ticks, speed, specon = 0, 0, 0, 0, 0.8, nil function MoveMouse(rx, ry, x, y) if not isCursorShowing() then local sx, sy = guiGetScreenSize() ticks = getTickCount() AngX = (AngX + (x - (sx/2))/10) % 360 AngZ = (AngZ + (y - (sy/2))/10) % 360 if AngZ > 180 then if AngZ < 315 then AngZ = 315 end else if AngZ > 45 then AngZ = 45 end end end end function RenderVeiw() if not specon then removeEventHandler("onClientRender", getRootElement(), RenderVeiw) removeEventHandler("onClientCursorMove", getRootElement(), MoveMouse) return 1 end local ox, oy, oz local x, y, z = getElementPosition(specon) if ticks+10000 < getTickCount() then local rx, ry, rz = getElementRotation(specon) local dis = AngX-(360-rz) local dis1 = math.abs(dis) if dis1 > 30 then if speed < 4 then speed = speed + 0.8 end end if dis1 < 30 then if speed > 0.8 then speed = speed - 0.8 end end if dis1 > speed then dis = dis/(dis1/(speed)) end AngX = AngX - dis end ox = x - math.sin(math.rad(AngX)) * specdis oy = y - math.cos(math.rad(AngX)) * specdis oz = z + math.tan(math.rad(AngZ)) * specdis setCameraMatrix(ox, oy, oz, x, y, z) end function PlayerSpecOnElement(spec, distance) if spec == nil or distance == nil or spec == "None" then specon = nil specdis = 0 return 1 end if specon then removeEventHandler("onClientRender", getRootElement(), RenderVeiw) removeEventHandler("onClientCursorMove", getRootElement(), MoveMouse) end specon = spec specdis = distance addEventHandler("onClientRender", getRootElement(), RenderVeiw) addEventHandler("onClientCursorMove", getRootElement(), MoveMouse) end addEvent("setPlayerSpecOnElement", true) addEventHandler("setPlayerSpecOnElement", getRootElement(), PlayerSpecOnElement)
    2 points
  4. السلام عليكم ورحمة الله وبركاته IRC اود ان اخبركم بأن هناك سيرفر رسمي في الديسكورد تابع لهذا المنتدي لقد تم إنشائه قبل فتره بدلا من الـ ونتمني من اعضاء المنتدي وعشاق اللعبه زيارتنا في الديسكور لأننا جميعا هناك ماهو الديسكورد ؟ ولكن يحتوي علي معظم المميزات المفيدة من كل البرامج التي ذكرتها وكما انه سهل الإستخدام ( IRC و Instant Messenger و Voice Chat ) هو في الحقيقة مشابه لـ يمكنك إستخدامه عن طريق هاتفك يمكنك إستخدامه للتابليت لماذا قمنا بإختيار الديسكورد ؟ الديسكورد لديه ميزة جميله وهي يمكنك معرفة تواريخ الرسائل , وايضا عندما لاتكون متصل يتم تسجيل الرسائل وعند الدخول ستراها جميعأ IRC مقارنة مع يقدم هذه الخدمة ولكن يجب عليك دفع ثمن ذلك او تكون انت مالك السيرفر IRC وايضا الـ وكما ان الديسكورد يحتوي علي منظر حديث ومميزات حديثه علي سبيل المثال عند وضع رابط لصورة او فيديو يتم وضع الفيديو مباشره في الديسكورد ولايجب عليك الانتقال للموقع الخاص بالصورة وما الي ذلك , ويحتوي علي نظام اللايك للتعليقات وهناك الكثير, اكتشفه بنفسك ماذا سوف اجد عند دخولي الي الديسكورد ؟ لدينا غرف كثيره ولكن سأذكر بعضها و الاهم : #general - لكل شئ سواء كان متعلق باللعبة او لا #scripting - للمساعدات البرمجية او الاستفسارات #support - لأي مشكلة متعلقة باللعبة او بسيرفرك #announcements - Community يتم وضع اخر التحديثات التي تم عملها سواء كان في هذا المنتدي او في الديسكورد او الـ وكما اننا لم ننتهي من التطويرات القادمة في المستقبل هل يمكنني ان اقوم بدخول السيرفر في اكثر من جهاز بنفس الوقت ؟ نعم بالطبع يمكنك ذلك , وكما انه يمكنك إضافة اكثر من سيرفر وليس السيرفر الخاص بنا فقط كيف يمكنني الدخول الي السيرفر الرسمي للعبة ؟ من خلال الضغط هنا : لا إله الا انت سبحانك اني كنت من الظالمين هل لديك إقتراح ؟ حسنا , فقط قم بإخبارنا عن طريق هذا الموضوع او عن طريق المراسلة الفورية من خلال الديسكورد نتمني لكم التوفيق و كما اننا نود ان نراكم هناك
    1 point
  5. Hello MTA Community! I'm happy to announce the start of 'Writing a Roleplay Gamemode From Scratch' chapters in my youtube channel. The first chapter is already released, check it out below! Don't forget to subscribe in order to be notified when new content is uploaded and also let a comment with your opinion and aspects that should be improved!
    1 point
  6. Hello. When i click on the "atm", its starting robbing another atm if is not the first. I mean when i clicked on the 3rd ATM, for some reason the player is starting robbing the first one. Whats the problem? local ATMTable = { { ATMName = "1", ATMPosX = 2160.3579101563, ATMPosY = 1685.6997070313, ATMPosZ = 10.69529914856, ATMRotX = 0, ATMRotY = 0, ATMRotZ = 90}, { ATMName = "2", ATMPosX = 2156.099609375, ATMPosY = 1677.83203125, ATMPosZ = 10.6875, ATMRotX = 0, ATMRotY = 0, ATMRotZ = 90}, { ATMName = "3", ATMPosX = 2150.6774902344, ATMPosY = 1683.7536621094, ATMPosZ = 10.8203125, ATMRotX = 0, ATMRotY = 0, ATMRotZ = 90}, } function onStart() for i = 1, #ATMTable do local atmObject = ATMTable[ i ] atmObject["object"] = createObject(2942, atmObject.ATMPosX, atmObject.ATMPosY, atmObject.ATMPosZ, atmObject.ATMRotX, atmObject.ATMRotY, atmObject.ATMRotZ) end end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onStart) playerClicked = 0 addEventHandler("onElementClicked",getRootElement(), function(button, state, player) if button == "left" and state == "down" then for i = 1, #ATMTable do local atmObject = ATMTable[ i ] if (atmObject["object"]) then if ((isElement(atmObject["object"])) and ((getElementType(player)) == "player")) then setElementFrozen(player,true) setPedAnimation(player,"BOMBER","BOM_Plant_Loop",2*30000,true,true,true,false) destroyElement(atmObject["object"]) setTimer(function(player,theShopID) local atmObject = ATMTable[theShopID] setElementFrozen(player,false ) exports.shopRob:addPlayerCashbox(player, 1) setPedAnimation(player,false) end,2*30000,1,player,i) setTimer( function( theShopID ) local atmObject = ATMTable[theShopID] atmObject["object"] = createObject(2942, theATM.ATMPosX, theATM.ATMPosY, theATM.ATMPosZ, theATM.ATMRotX, theATM.ATMRotY, theATM.ATMRotZ) end,2400000,1,i) break end end end end end)
    1 point
  7. بسم الله الرحمن الرحيم convertTimeToSeconds function convertTimeToSeconds(y,d,h,m,s) local y,d,h,m,s,newTime=y or 0,d or 0,h or 0,m or 0,s or 0,0 local newTime=newTime+(31556926*y)+(86400*d)+(3600*h)+((3600/60)*m)+(((3600/60)/60)*s) return math.floor(newTime) end Arguments : y: السنوات d: الأيام h: الساعات m: الدقائق s: الثواني الوضيفة تقوم بتحويل الوقت الى ثواني
    1 point
  8. if isElement(atmObject["object"]) and getElementType(player) == "player" and atmObject["object"] == source then if isElement(atmObject["object"]) and getElementType(player) == "player" and atmObject["object"] == source then You forgot to add this. Note: playerWhoClicked is always a player. > and getElementType(player) == "player"
    1 point
  9. 1 point
  10. Hello+ I have a circle picture I want to draw as it is clockwise
    1 point
  11. 4.31 is the gradient of the graph. I.e., the amount of stat difference between max health of 100 (stat value 569) and 200 (stat value 100) is 431. Difference between 100 and 200 is 100. 431/100 = 4.31. For every 4.31 units of increase in stat above the default of 569, you get extra 1 health point above 100. Shoulda paid attention in math class
    1 point
  12. Thanks for it, I have found the problem with ur help. When the objects were being added to the table, if they were false then they weren't added.
    1 point
  13. السلام عليكم ورحمة الله وبركاتة حبيت أمر وأسلم عالجميع أتمنى ان الجميع بـ خير متمنياً لكم التوفيق ..
    1 point
  14. السلام عليكم روحمة الله وبركاته isArabicLanguage وظيفة التحقق من اللغة العربية Syntax : isArabicLanguage ( Text ) Text : النص المراد التحقق منه Code : ArabicCharacters = { 'ا' , 'أ' , 'إ' , 'ض' , 'ص' , 'ط' , 'غ' , 'ق' , 'ث' , 'ف' , 'ع' , 'ه' , 'خ' , 'ح' , 'ج' , 'د' , 'ئ' , 'ء' , 'ؤ' , 'ر' , 'لا' , 'ى' , 'آ' , 'ة' , 'و' , 'ز' , 'ظ' , 'ذ' , 'ك' , 'م' , 'ن' , 'ت' , 'ل' , 'ب' , 'ي' , 'س' , 'ش } function isArabicLanguage ( Text ) if ( Text ) then assert ( type ( Text ) == 'string' , 'Bad Arg #1 , [ '..Text..' ] not string' ) for _ , Characters in ipairs ( ArabicCharacters ) do if ( string.find ( Text , Characters ) ) then return true end end else error ( 'Bad Arg #1 nil value' ) end end Ex. : addCommandHandler ( 'اللغة' , function ( Player , _ , Text ) if ( isArabicLanguage ( Text ) ) then outputChatBox ( '* الكلام باللغة العربية' , Player ) end end ) هذا وكان كل شي , ما ادري اذا الوظيفة موجودة من قبل , والسلام عليكم ورحمة الله وبركاته
    1 point
  15. بسم الله الرحمن الرحيم سلام عليكم ورحمة الله وبركاتة انا سويت دورة عن كيف تسوي موقع دردشة .. وممكن يفيد بعضكم وسلام خير الختام
    1 point
  16. Im looking for someone from Owl gaming staff so that I can solve a problem of mine regarding account creation. Long story short, I cant do anything now (not even ask for support on the forums) and need my account activated or deleted. PM me for details. Thanks
    0 points
×
×
  • Create New...