Jump to content

Mr.Mostafa

Members
  • Posts

    1,377
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Mr.Mostafa

  1. تحميل المودات , حقت اول لما تدخل السيرف
  2. سلام عليكم ابي كود التحقق اذا كان شريط التحميل موجود ولا لا شكرا
  3. خلاص استخدمت كود تاني , شكرا
  4. --server side addEventHandler ( "onResourceStart" , resourceRoot , function ( ) triggerEvent("playrandom",root) end ) sounds = { {"song.mp3"}, {"song2.mp3"}, {"song3.mp3"} } addEvent("playrandom",true) addEventHandler("playrandom",root,function() ra=math.random(#sounds) file=sounds[ra] filename=split(file,".")[1] outputChatBox("the file will played is "..filename,root,255,255,255,true) triggerClientEvent(root,"playthesound",root,file) end) --client addEvent("playthesound",true) addEventHandler("playthesound",root,function(file) if(sound and isElement(sound)) then destroyElement(sound) end sound=playSound(file) length_s=getSoundLength(sound) setTimer(function() triggerServerEvent("playrandom",localPlayer) end,((length_s*1000 > 50 and length_s*1000) or 50),1) end)
  5. debug : Operation failed @ 'fileDelete'[c.lua] fileDelete("c.lua")
  6. function start() local x,y,z = -- حط الاحداثيات الي تبي يكون فيها الصوت local soundName = sounds[math.random(1, #sounds)][1] sound = playSound3D(soundName, x, y, z, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) outputChatBox(""..soundName.." : تم تشغيل",0,255,0,true) end setTimer(function() if ( isElement ( sound ) ) then return end start() end,1000,0) جرب وقولي اذا اشتغل او لا
  7. سلام عليكم وش الافضل عشان احمي ملف الكلنت من السرقة ؟ fileDelete - casheFalse(meta) وشكرا
  8. يب يب تمام استخدم الكود حقك , حق موضوع سورس طيب ؟
  9. لا انا قاصد ما اسويها انا كتبت كلامك بس في صيغة كود
  10. if hour >= 0 and hour < 12 then status = "AM" elseif hour >= 12 and hour < 24 then status = "PM"
  11. طيب فرضنا ان الساعة الحين 11 , وانا ابي احسب كام باقي علي الساعة 10 10 - 11 = -1 ؟ + بالنسبة لموضوع الدقائق شفت الموضوع بس الصراحة مافهمت شي , فا ياريت اذا توضحلي اكتر
  12. اتمني احد يحذفه نزلت موضوع وضحت فيه اكتر @N3xT @!#NssoR_)
  13. سلام عليكم ابي اي طريقة , بحيث لو كتبت كوماند , يجيب لي كام باقي علي الساعة 10 بالساعات والدقائق + كيف اعرف اذا AM ولا pm addCommandHandler("tim", function(source) local Realtime = getRealTime() local year = Realtime.year + 1900 local month = Realtime.month + 1 local day = Realtime.monthday local hour = Realtime.hour -12 local Min = Realtime.minute local sec = Realtime.second outputChatBox("Time Now : ["..year.."/"..month.."|"..hour..":"..Min.."]",source,0,255,0,true) outputChatBox("باقي علي الساعة 10 : ".. hour-10 ..":"..Min..":"..sec.."",source,0,255,0,true) end ) لو مافي حل اقدر اسوي مثلا كدا if hour == 9 then baky = 1 elseif hour == 8 then baky == 2 بس هادي الطريقة متعبة علي الفاضي , وما بتظبط علي الدقايق if hour ==
  14. سلام عليكم ممكن تصحيح لهادا الكود ابي يجيب لي كام باقي والساعة تيجي 10 addCommandHandler("tim", function(source) local Realtime = getRealTime() local year = Realtime.year + 1900 local month = Realtime.month + 1 local day = Realtime.monthday local hour = Realtime.hour -12 local Min = Realtime.minute local sec = Realtime.second outputChatBox("Time Now : ["..year.."/"..month.."|"..hour..":"..Min.."]",source,0,255,0,true) outputChatBox("باقي علي الساعة 10 : ".. hour-10 ..":"..Min..":"..sec.."",source,0,255,0,true) end )
  15. مب اذان , بس اعتبر كدا مثلا
  16. ابي اجيب وقت محدد للكل , عشان ابي لما المغرب بتوقيت السعودية ياذن يسوي شي
  17. والوقت حق السيرفر هادا يجي منين ولا كيف اظبطه؟
  18. يعني لازم باي شكل يكون التايمر بجهة الكلنت , لان الترايقر بيسبب لاق ؟
  19. يب بس التايمر في جهة السيرفر فا انا اسوي getTimerDetails وارسل ترايقر عشان تنكتب علي الشاشة بتجيب لا ق؟
×
×
  • Create New...