Jump to content

King12

Members
  • Posts

    439
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by King12

  1. هو ماهو طلب آنا جالس آستفسر عن اللوب بس يعني بالنهايه يصير كذا ولا كيف؟ local vehicleSpawns = { { 425, -6666, 127, 16 }; { 424, -5555, 126, 15 }; { 423, -4444, 125, 14 }; { 411, -3333, 124, 13 }; { 253, -2222, 123, 12 }; { 421, -1111, 122, 11 }; } for _, t in ipairs ( vehicleSpawns ) do createVehicle ( t[1], t[2], t[3], t[4] ) setTimer ( function () if not vehicleSpawns then vehicleSpawns(); else createVehicle ( t[1], t[2], t[3], t[4] ) 60000, 1 ) end end end الحين فرضنا آن كل السيارات اللي سويناها تفجرت ( راحت من الخريطه ) انا بسوي لها تحقق بالتايمر كل 60 ثانيه زي ماتشوف فوق يصير كذا؟
  2. طيب وش الحرفين ذولي وش يرمزون له k,v + يصير كذا التحقق للتيبل؟ function cars () setTimer ( function () if not vehicleSpawns then vehicleSpawns(); else createVehicle ( t[1], t[2], t[3], t[4] ) 60000, 1 ) end end end addEventHandler ("onClientResourceStart", root, cars ) وياليت تصححها آذا غلط
  3. يب مايفرق بين الكلنت والسيرفر مافي فرق وتقدر تغير ال k & v بالحرف او الكلمة الي تبيها ---- اخير سؤال مافهمته من ناحية السؤال الآخير , قصدي مثلاً السيارات تفجرت كلها هل الفنكشن يتحقق من السيارات ولا خلاص؟ وآذا لا هل لازم آسوي تحقق للسيارات علشان يسوي لوب مره ثانيه؟
  4. السلام عليكم, حبيت آستفسر عن اللوب فرضاً آني سويت تيبل وآبي آسوي عليها لوب كلها والتيبل هذا كان آحداثيات بالخريطه وآبيه يسوي لوب لكل آحداثيه ويسوي مكانها سياره هل تصير كذا؟ local vehicleSpawns = { { id = 425, x = -6666, y = 127, z = 16 }; { id = 424, x = -5555, y = 126, z = 15 }; { id = 423, x = -4444, y = 125, z = 14 }; { id = 411, x = -3333, y = 124, z = 13 }; { id = 253, x = -2222, y = 123, z = 12 }; { id = 421, x = -1111, y = 122, z = 11 }; } for _, t in ipairs ( vehicleSpawns ) do createVehicle ( t.id, t.x, t.y, t.z ) end وهل التيبل ينفع كلاينت وسيرفر؟ ووش الفرق بين for _, t & for k,v ? وآخيراً هل اللوب موجود فيه تايمر؟ وآذا لا كيف آسوي له
  5. +1 بآين عليك محترف تدخين بس مآتبي تقول بطلت آلتخدين لي 5 شهوور ولله الحمد > الله يثبتك على الحق لا آخدن ولا آشيش الحمدلله (مقصوده)
  6. OnVehicleEnter Parameters * player thePlayer, int seat, player jacked الباراميترس مو شرط تستخدمها. ليش تحطها له دامه مالها دخل بالطلب ض1
  7. --server side function isPlayerInTeam(player, team) assert(isElement(player) and getElementType(player) == "player", "Bad argument 1 @ isPlayerInTeam [player expected, got " .. tostring(player) .. "]") assert((not team) or type(team) == "string" or (isElement(team) and getElementType(team) == "team"), "Bad argument 2 @ isPlayerInTeam [nil/string/team expected, got " .. tostring(team) .. "]") return getPlayerTeam(player) == (type(team) == "string" and getTeamFromName(team) or (type(team) == "userdata" and team or (getPlayerTeam(player) or true))) end vehiclemark = createMarker(x, y, z, "checkpoint", 5 , R, B, G, A) function warp () local player = getElementsByType ( "player" ) local x, y, z = getElementPosition (player) if isPlayerInTeam(player, "Admin") then local vehicle = createVehicle ( 411, x+2, y+2, z ) warpPlayerIntoVehicle ( player, vehicle) else outputChatBox ( "You aren't an admin", 255, 255, 255, true ) end end addEventHandler ( "onMarkerHit", vehiclemark, warp )
  8. OnVehicleEnter Parameters * player thePlayer, int seat, player jacked الباراميترس مو شرط تستخدمها.
  9. Just keep stealing these scripts from nTl clan and sell 'em here. Great stuff, those scripts are made by FinalFir3 ( the current scripter ).
  10. I've tried every single event, but still no bugs and not working!
  11. Are you complaining about the function's name? or the arguments? I don't reject any helps. + I didn't see any outputs in debugscript so I thought my code is correct.
  12. Hello there, I'm trying to check if the car hits the object but I couldn't.. My code : function onPlayerTargeted ( theObject, thePlayer ) local object = getElementModel ( theObject ) if object == 18450 then local vehicle = getPedOccupiedVehicle ( thePlayer ) blowVehicle ( vehicle ) end end addEventHandler ( "onClientObjectDamage", root, onPlayerTargeted ) Any advice/suggestions?
  13. لا يالغالي اكسيتي هو اللي مصمم السكربتات كلها بس امراتي بيشتغل على التصميم من الصفر. اللي مايعرف ايسبورت ومايعرف ليدراته لايتفلسف بالردود. Credit : Xiti TemptatioN - inspiration for lobby design libregkd - Photoshop based version of lobby design iMr-T6[W]ER_#) - Started a Chat System, UAEpro - Everything else آسأل آمراتي عن آكسيتي قله يشتغل معك ولا لا وخل عنك الفلسفه
  14. الخطأ اللي بالصوره مو موجود بآكوادك اللي بالمنتدى.
  15. لا يالغالي اكسيتي هو اللي مصمم السكربتات كلها بس امراتي بيشتغل على التصميم من الصفر. اللي مايعرف ايسبورت ومايعرف ليدراته لايتفلسف بالردود.
  16. اي مشاكل تقصد ؟ يجيك واحد يقولك مقلد وتصير سالفه ع الفاضي آذا آنت شفت واجهة آكسيتي بتفهمني
  17. I want it to time the outputchatbox to output the music every 2mins. Use setTimer Can you do it to my code, because I've tried it and whenever I write /radio again to turn off the radio the message keeps appearing. Also, the previous musics and the current music keeps showing in the chat
  18. I want it to time the outputchatbox to output the music every 2mins.
  19. Okay, so let's see: 1. Use the script below and it should be fixed. 2 and 3. That's a problem that can't be fixed within the LUA script. It's something in your radio that isn't working right. Either the internet connection is really slow, so it takes really long to send the meta tags, and the problem with the stream title is also within the stream itself, not the script. function radiotest() if radioplaying then radioplaying = false destroyElement(radioSound) outputChatBox("#D27350[RADIO] #FFFFFFYou have stopped the radio.",176,0,57,true) removeEventHandler("onClientSoundChangedMeta", getRootElement(), radioName) else radioplaying = true radioSound = playSound("http://listen.HouseTime.fm/dsl.pls") setSoundVolume(radioSound,1) outputChatBox("#D27350[RADIO] #FFFFFFYou have started the radio.",176,0,57,true) addEventHandler("onClientSoundChangedMeta", getRootElement(), radioName) end end addCommandHandler("radio", radiotest) function radioName() local meta = getSoundMetaTags(radioSound) if meta.stream_title then outputChatBox("#D27350[RADIO] #FFFFFFCurrent Music : "..(meta.stream_title).."!", 176, 0, 57, true) else outputChatBox("No song title found!") end end addEventHandler("onClientSoundFinishedDownload", getRootElement(), radioName) EDIT: There was an error in the script, fixed it. Thanks alot but where is the timer?
  20. So how am I supposed to cancel the meta event?
  21. addCommandHandler("radio", function(command) if startedRadio then stopSound(radioSound) startedRadio = false outputChatBox("#D27350[RADIO] #FFFFFFYou have stopped the radio.",176,0,57,true) else startedRadio = true radioSound = playSound("http://1111:33341") setSoundVolume(radioSound,1) outputChatBox("#D27350[RADIO] #FFFFFFYou have started the radio.",176,0,57,true) end end,false) The problems I'm facing now are these : - Either I stopped radio by /radio it keeps showing me the information about streamer and music - It doesn't show the information by the time I turn on the radio /radio - If I changed the music in my radio the new one and the previous one will keep showing in the chat, it keeps counting the musics.
  22. يالغالي انا ابيه تحقق من هذا بالكلاينت radioSound = playSound("http://test.com") ويرسل المعلومات للسيرفر انا مسويها تريقر بس ماعرفت كيف بالضبط
  23. طيب يالحبيب انا مسوي ايفنتات ومسوي راديو بالكلاينت كيف اسويه سيرفر سايد وهو ما انربط بالكلاينت؟
  24. لما اكتب الامر + ياليت تخليه لقروب الادمن بس
×
×
  • Create New...