Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. اطرح كودك
  2. function Quit () local acc = getPlayerAccount ( source ) local mon = getPlayerMoney ( source ) if ( mon > 0 ) then if not ( isGuestAccount ( acc ) ) then setAccountData ( acc, "MoneyPlayer", mon ) end end end addEventHandler ( "onPlayerQuit", root, Quit ) function Join ( _, acc ) if ( acc ) local mon = getAccountData ( acc, "MoneyPlayer" ) if ( mon ) then setPlayerMoney ( source, mon ) end end end addEventHandler ( "onPlayerJoin", root, Join )
  3. هذي نفسها نفس اي حرف او كلمة + يستخدمونها عشان يخطرون الاشياء
  4. setAccountData يعطي الاعب داتا getAccountData يجيب داتا الاعب
  5. كيف اجل ؟ يمكن واحد يكتب وبس يطلع الكلمة صح ويعطيه رتبة
  6. addCommandHandler isGuestAccount getPlayerSerial aclGetGroup aclGroupAddObject هذا يتحقق ان الي كتب الامر عنده سريال معين
  7. الي فهمتهه انك تبي تلغم السكربت ؟
  8. على اي شي تحدده يعني مثل getPlayerAccount getPlayerSerial
  9. مافهمت وضح ؟
  10. هذا عشان لانه حط بدل root او guiRoot اسم الزر مباشرة ف ال false هي يعني اذا ضغط هذا الزر يعني مثلا اذا ماحطيت false اذا ضغطت اي زر راح يسوي نفس الامر
  11. Server : addEventHandler('onPlayerDamage', root, function (attacker) if (attacker and attacker ~= source and getElementType (attacker) == 'player') then triggerClientEvent (source, 'PlayerSOUND', source) end end) Client : addEvent ('PlayerSOUND', true) addEventHandler ('PlayerSOUND', root, function () playSound ('hitmarker-sound.wav') end)
  12. ولا تنسى تسوي تحقق اذا كانت الساعة 23 timee = 60 if (rt.hour == 23) then setTimer (function () timehours = rt.hour end, timee * 10000, 1) اتوقع كذا يصير ساعة ^ المهم هذا التحقق يعني يسوي تايمر اذا وصل 23 ساعة يسوي تايمر ساعة واحدة عشان اذا وصل 24 رد ينعاد الوقت من البداية ومايصير خطأ ادري تلخبط مخك ^ يعني اذا وصل 23 ساعة يسوي تايمر لين مايوصل 24 ساعة (يوم واحد) عشان يعيد التايمر من جديد و مايبقى المتغير timehours 11 ساعة
  13. العفو ^
  14. ايه فيه تقدر تسوي تحقق local rt = getRealTime () local screenWidth, screenHeight = guiGetScreenSize ( ) local timehours = rt.hour if (rt.hour == 13) then timehours = 1 elseif (rt.hour == 14) then timehours = 2 elseif (rt.hour == 15) then timehours = 3 elseif (rt.hour == 16) then timehours = 4 elseif (rt.hour == 17) then timehours = 5 elseif (rt.hour == 18) then timehours = 6 elseif (rt.hour == 19) then timehours = 7 elseif (rt.hour == 20) then timehours = 8 elseif (rt.hour == 21) then timehours = 9 elseif (rt.hour == 22) then timehours = 10 elseif (rt.hour == 23) then timehours = 11 end dxDrawText ( tonumber (timehours) , 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) end طبعا الdrawtext جايبه من الويكي هههه
  15. الحين ذة رابط المنتدى مالكم ولا وش ؟ ^
  16. اعمل نفسك ميت اعمل نفسك ميت
  17. addCommandHandler ("maintainceban", function (plr) for _, v in ipairs (getElementsByType ("player")) do if (plr and plr ~= v) then banPlayer (v, false, false, true, root, "banned for maintaince") end end end)
  18. slow or fast fast or slow slow or run fast run fast or run slow run slow or run very slow run very slow or run very fast ?
  19. في له شرح ع اليوتيوب + فيه عيوب انه يطفي كل ساعة اتوقع
  20. ^ + 'onClientRender'
  21. وش هو الرنت ؟!
  22. متفلسف ولا متسلفس
  23. addCommandHandler("blur", function ( plr, cmd, level ) blur = tonumber(level) if not ( blur or blur > 255 or blur < 0 ) then outputChatBox ( "Enter a value between 0 - 255.", plr, 255, 255, 255, true ) else setPlayerBlurLevel ( plr, blur ) outputChatBox ( "Blur level set to: " .. blur, plr, 255, 0, 0, true ) end end
  24. تاكد انه سيرفر سايد
×
×
  • Create New...