Jump to content

N3xT

Retired Staff
  • Posts

    2,490
  • Joined

  • Days Won

    18

Everything posted by N3xT

  1. executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS `Rich` ( playerSerial, Money )' ) addCommandHandler ( 'Save', function ( player ) local playerSerial = getPlayerSerial ( player ) local checkData = executeSQLQuery ( 'SELECT * FROM `Rich` WHERE playerSerial = ?', playerSerial ) if ( #checkData == 0 ) then executeSQLQuery ( 'INSERT INTO `Rich` ( playerSerial, Money ) VALUES ( ?, ? )', playerSerial, getPlayerMoney ( player ) ) else executeSQLQuery ( 'UPDATE `Rich` SET Money = ?', getPlayerMoney ( player ) ) end end ) addEventHandler ( 'onPlayerJoin', root, function ( ) local playerSerial = getPlayerSerial ( source ) local checkMoney = executeSQLQuery ( 'SELECT * FROM `Rich` WHERE playerSerial = ?', playerSerial ) if ( #checkMoney == 1 ) then setPlayerMoney ( source, checkMoney[1].Money ) end end )
  2. كودك خطأ, راح يوصل 10 ويوقف
  3. استعمل اللغة العربية, وبخصوص صاحب الموضوع عشان تعطي اللاعب باراشوت استعمل giveWeapon ( element, 46 )
  4. sound=playSound(file)
  5. This might be helpful, look for 'Server crashes' part: HERE
  6. AM اذا كانت الساعة أكبر من أو تساوي 0 وأصغر من 12 خليها PM واذا كانت الساعة أكبر من أو تساوي 12 وأصغر من 24 خليها
  7. وعليكم السلام, احسب الفرق بين التوقيتين يعني مثلاً الحين الساعة 6 وانت تبي تحسب كم باقي على الساعة 12 12 - 6 = 6 اذا تبي تحسب كم باقي على الساعة 10 والساعة الحين 3 عصر 10 - 3 = 7 بخصوص الدقائق: راجع الموضوع ذا https://stackoverflow.com/questions/1515006/calculate-minutes-until-specific-time-c
  8. كل شيء مشروح بالمقطع, وراجع ردود الموضوع لأن فيه ناس واجهوا مشاكل ممكن تكون مثل مشكلتك
  9. https://forum.multitheftauto.com/topic/105237-mini-admin/
  10. ياليت تلتزمون باللغة العربية المرة القادمة
  11. غير معرفة j الكود شغال عندي, تأكد من أكوادك يمكن الـ
  12. local playerName = getPlayerName ( j ) if ( string.len ( playerName ) > 15 ) then playerName = string.sub ( playerName, 1, 15 ) end dxDrawText(playerName, screenW * 0.1992, screenH * 0.4222 + yOffset, (screenW * 0.1992) + 92 + yOffset, ( screenH * 0.4222) + 33, tocolor(255, 255, 255, alpha), 1.30, "default", "center", "center", true, false, true, true, false)
  13. string.sub عشان تجيب طول السترنق واذا كان طويل استعمل string.len استعمل
  14. الله يعافيك
  15. https://community.multitheftauto.com/index.php?p=resources&s=details&id=44
  16. ايضاً لاحظت بعض الاخوان يكتبون مشاء الله وانشاء الله والصح ماشاء الله وان شاء الله, وجزاك الله خيراً يا صاحب الموضوع
  17. I'm not sure, As I mentioned above this is related to their scripts loader and the way it works.
  18. I'm guessing that's related to ffs scripts loader, Try to contact ffs leadership/developers.
  19. بخصوص استفسارك الأول, يب عادي تسوي تايمر آخر يتحقق من وجود التايمر الاول واذا ما كان موجود فهذا يعني ان التايمر انتهى فيه طريقة اخرى عشان تعرف اذا انتهى ولا لا, كمثال التايمر حقك تبيه يشتغل 5 مرات تسوي متغير وتزيده مع كل مرة واذا وصل 5 يعني خلص setTimer ما تقدر ترجعه الا باستخدام killTimer بخصوص طلبك الثاني, اذا سويت تقوم باعادة تشغيل التايمر من جديد يعني باختصار تقوم بتصفير التايمر resetTimer فائدة
  20. ايه تقدر, استبدل الصورة باللي عندك local mouseX = 0 local mouseY = 0 addEventHandler("onClientRender", root, function ( ) if ( isCursorShowing ( ) ) then if not ( isMainMenuActive ( ) ) then if not myImage then myImage = dxCreateTexture( ":images/dx.png" ) end setCursorAlpha ( 0 ) dxDrawImage ( mouseX, mouseY, 14, 21, myImage, 0, 0, 0, tocolor(255, 255, 255, 255), true ) else setCursorAlpha ( 255 ) end end end ) addEventHandler( "onClientCursorMove", root, function ( _, _, x, y ) mouseY = y mouseX = x end ) addEventHandler( "onClientResourceStop", resourceRoot, function ( ) setCursorAlpha ( 255 ) end )
×
×
  • Create New...