Jump to content

jafar

Members
  • Posts

    1,434
  • Joined

  • Last visited

Everything posted by jafar

  1. الشركة مضمونة ومرخصة وعندهم فرع , كلم الدعم الفني
  2. viewtopic.php?f=161&t=68480
  3. طبعاً تقدر , بس اذا تبي السلاح يتحرك لازم تسويه اوبجكت منفصل ..
  4. ليش البريك؟ فرضاً فيه شخصين معاهم الرتبة , راح ياخذ بس شخص واحد , ويسوي بريك للوب وهكذا -.-
  5. استخدم لوب عشان تظهر للكل لان طريقتك راح تكون الصورة تطلع حق اللاعب الي عنده الداتا فقط
  6. اذا سويت العدد كبير احتمال يجي لاق ..
  7. هذا مو txd هذا المود باستخدام dxDrawLine3D مع بعض الحسابات .. المود مسونه مسبقاً , ممكن انشره : )
  8. تم إضافة جزء من محتويات الفنكشنات كلنت + سيرفر ناقص فقط كتابة صفحة الفنشنكن + الترجمة
  9. طلبك موجود مسبقاً , لو تبحث راح تلقى
  10. هههههههههه احط اسمك ؟؟ ليش انت حاط حرف واحد ف الكود وبعدين أساساً ذي مو فكرتك عشان تنسبها لنفسك ذي فكرة منتشرة
  11. عشان تسوي قروب Admin Panel > Resources > Manage ACL > Group Create عشان تسوي إسل حق القروب Admin Panel > Resources > Manage ACL > ACL Create وعشان تضيف وتحذف الخاصيات استخدم مود سورا , الرابط موجود ف موضوعك السابق
  12. لازم تثبت ogp_agent بالطريقة الصحيحة عشان تستخدم هالاوامر
  13. خذ الكود الي حطاه مجنون فيك ونزل السبت في آخر الجدول , بحيث يكون الاحد هو اول قيمة واستخدم فنكشن getToadayDayName ( ) لجلبهم
  14. اعتقد بتضبط اذا حطيت تايمر
  15. مايحتاج جدول لان مو مسوي له متغير : ) لكن اذا يبي يحذف السيارة اذا طلع اللاعب يسوي جدول
  16. المفروض السبت يكون آخر قيمة , لان ف الفنكشن بداية الاسبوع من الاحد
  17. يب , شفت طريقة ثانية بس مافهمت لها ومعقدة , شفت إن إلي سويتها أبسط شيء
  18. عارف أن حساباتها دقيقة وطويلة ,, بس أنا أخذت الحسابات من عند شخص مشهور ف هالمجال وهو العجيري مصدر الحسابات إلي عملتها:
  19. طريقتكـ كلها من البداية خطا .. عشان يسويها هجري يبي له حسابات والكود مهو بالسهولة ذي مافيها اي خطأ , بس فيه مشكلة بسيطة تقدم او تأخر ف التاريخ بنسبة قليلة , والحسابات مأخوذة من العجيري : )
  20. convertHistoryToHijri لتحويل التاريخ الميلادي إلى هجري ملاحظة: الطريقة ليست دقيقة 100 % Syntax string string string convertHistoryToHijri ( ); Function Source convertHistoryToHijri = function ( ) local Time = getRealTime ( ); local Day = Time.monthday local Month = Time.month + 1 local Year = Time.year + 1900 -- if Month == 1 then Last = Day end if Month == 2 then Last = Day + 30 end if Month == 3 then Last = Day + 60 end if Month == 4 then Last = Day + 90 end if Month == 5 then Last = Day + 120 end if Month == 6 then Last = Day + 150 end if Month == 7 then Last = Day + 180 end if Month == 8 then Last = Day + 210 end if Month == 9 then Last = Day + 240 end if Month == 10 then Last = Day + 270 end if Month == 11 then Last = Day + 300 end if Month == 12 then Last = Day + 330 end -- x = math.ceil ( ( Year - 1 ) * 365.25 ); x = x + Last x = math.abs ( x - 227015 ); x = math.floor ( x * 30 ); xx = x x = math.floor ( x / 10631 ); m = math.floor ( x * 10631 ); m = math.abs ( m - xx ); x2 = math.floor ( m / 30 ); x2 = math.abs ( x2 - 13 ); -- if x2 >= 1 and x2 <= 30 then x4 = x2 x3 = 1 end if x2 >= 31 and x2 <= 60 then x4 = x2 - 30 x3 = 2 end if x2 >= 61 and x2 <= 90 then x4 = x2 - 60 x3 = 3 end if x2 >= 91 and x2 <= 120 then x4 = x2 - 90 x3 = 4 end if x2 >= 121 and x2 <= 150 then x4 = x2 - 120 x3 = 5 end if x2 >= 151 and x2 <= 180 then x4 = x2 - 150 x3 = 6 end if x2 >= 181 and x2 <= 210 then x4 = x2 - 180 x3 = 7 end if x2 >= 211 and x2 <= 240 then x4 = x2 - 210 x3 = 8 end if x2 >= 241 and x2 <= 270 then x4 = x2 - 240 x3 = 9 end if x2 >= 271 and x2 <= 300 then x4 = x2 - 270 x3 = 10 end if x2 >= 301 and x2 <= 330 then x4 = x2 - 300 x3 = 11 end if x2 >= 331 and x2 <= 360 then x4 = x2 - 330 x3 = 12 end -- return tostring ( x4 ), tostring ( x3 ), tostring ( x + 1 ); end مثال setTimer ( function ( ) local Day, Month, Year = convertHistoryToHijri ( ); outputChatBox ( Day .. "/" .. Month .. "/" .. Year .. " هـ" ); end , 1000 , 1 ); convertHistoryToHijri = function ( ) local Time = getRealTime ( ); local Day = Time.monthday local Month = Time.month + 1 local Year = Time.year + 1900 -- if Month == 1 then Last = Day end if Month == 2 then Last = Day + 30 end if Month == 3 then Last = Day + 60 end if Month == 4 then Last = Day + 90 end if Month == 5 then Last = Day + 120 end if Month == 6 then Last = Day + 150 end if Month == 7 then Last = Day + 180 end if Month == 8 then Last = Day + 210 end if Month == 9 then Last = Day + 240 end if Month == 10 then Last = Day + 270 end if Month == 11 then Last = Day + 300 end if Month == 12 then Last = Day + 330 end -- x = math.ceil ( ( Year - 1 ) * 365.25 ); x = x + Last x = math.abs ( x - 227015 ); x = math.floor ( x * 30 ); xx = x x = math.floor ( x / 10631 ); m = math.floor ( x * 10631 ); m = math.abs ( m - xx ); x2 = math.floor ( m / 30 ); x2 = math.abs ( x2 - 13 ); -- if x2 >= 1 and x2 <= 30 then x4 = x2 x3 = 1 end if x2 >= 31 and x2 <= 60 then x4 = x2 - 30 x3 = 2 end if x2 >= 61 and x2 <= 90 then x4 = x2 - 60 x3 = 3 end if x2 >= 91 and x2 <= 120 then x4 = x2 - 90 x3 = 4 end if x2 >= 121 and x2 <= 150 then x4 = x2 - 120 x3 = 5 end if x2 >= 151 and x2 <= 180 then x4 = x2 - 150 x3 = 6 end if x2 >= 181 and x2 <= 210 then x4 = x2 - 180 x3 = 7 end if x2 >= 211 and x2 <= 240 then x4 = x2 - 210 x3 = 8 end if x2 >= 241 and x2 <= 270 then x4 = x2 - 240 x3 = 9 end if x2 >= 271 and x2 <= 300 then x4 = x2 - 270 x3 = 10 end if x2 >= 301 and x2 <= 330 then x4 = x2 - 300 x3 = 11 end if x2 >= 331 and x2 <= 360 then x4 = x2 - 330 x3 = 12 end -- return tostring ( x4 ), tostring ( x3 ), tostring ( x + 1 ); end
×
×
  • Create New...