King12
Members-
Posts
439 -
Joined
-
Last visited
-
Days Won
1
Everything posted by King12
-
السلام عليكم آبي آسوي كوماند يطلع كلام بالشات لكن آبيه يطلع لكل الناس فسويت تريقر وماعرفت له زين --Server Side addEvent ( "onChatRadioName", true ) addEventHandler ( "onChatRadioName", root, function ( ) local meta = getSoundMetaTags(radioSound) if meta.stream_title then outputChatBox("#D27350[RADIO] #ffffffCurrent Music Playing : "..(meta.stream_title)..".", 255, 0, 0, true) if meta.stream_name then outputChatBox("#D27350[RADIO] #ffffffStreamer : "..(meta.stream_name)..".", 255, 0, 0, true) else outputChatBox("No song/streamer found!") end end end ) -- Client Side addCommandHandler ( "musica", function ( ) triggerServerEvent ( "onChatRadioName", localPlayer ) end )
-
Thanks alot mate, this worked for me. I've streamed few musics and suddenly it's not getting updated. How can I update the music name in the server by the time I change it in my virtual dj (streaming) ? Because it keeps showing the previous musics and the new one. Also, I've made the same command to turn on/off the radio for clients. but the message keeps showing after turning it off.
-
شغل جميل بس ياليت تغير واجهة الdx اللي مسويها اكسيتي لواجهة ثانيه علشان ماتجيك مشاكل لاتنسى تكمل على اليوزربانل لآنه مجنون ة_ة
-
Thanks alot mate, this worked for me.
-
function radiotest() radio = playSound ("http://listen.HouseTime.fm/dsl.pls") local meta = getSoundMetaTags(radio) outputChatBox("Current Music :"..(meta.stream_title).."!", 255, 0, 0, true) end addEventHandler("onClientSoundChangedMeta", root, radiotest) No error messages. I just want to get this value It says your stream is private. I also can't hear anything when I play the stream, so I think there's something wrong with your stream... My friend has just stopped the stream few mins ago. It was working on my server but I can't extract the music name to the chatbox.
-
function radiotest() radio = playSound ("http://listen.HouseTime.fm/dsl.pls") local meta = getSoundMetaTags(radio) outputChatBox("Current Music :"..(meta.stream_title).."!", 255, 0, 0, true) end addEventHandler("onClientSoundChangedMeta", root, radiotest) No error messages.
-
I just want to get this value
-
I've made this for now function radiotest() radio = playSound ("http://9aaaaa:29223/listen.pls") local meta = getSoundMetaTags(radio) outputChatBox("Current Music :"..(meta.stream_title).."!", 255, 0, 0, true) end addCommandHandler("radio", radiotest) But I still get this error at debugscript ERROR: stream\draw.lua:4: attempt to concatenate field 'stream_title"(a nil value)
-
How can I connect this with SHOUTcast script? I mean how can I get the name of "Current Song" instead of using "..(meta.title).." for .mp3 files?
-
Hello there, I'm wondering for a way to get the music's name from the radio and bring it to the server as message or dx draw whatever. This is an example for a radio : http://stream.dubbase.fm:7002/ I want to get the music name, what's the needed functions for it?
-
Thanks but it doesn't check the peds health, why?
-
Hello, I'm working on a basic script to improve my scripting skills. I wanted to get the peds health but I couldn't. Here is my code : ped1 = createPed(120, -2407.6513671875, -592.85119628906, 132.6484375) function pedHealth () local peds = getElementHealth ( ped1() ) if peds == 90 then setElementHealth ( ped1, 100 ) outputChatBox ( "The ped have been healed to 100", 255, 0, 0, true) end end addEventHandler("onClientPedDamage", ped1, pedHealth)
-
وش الفنكشنات المطلوبه؟
-
السلام عليكم, حبيت آسأل عن نافذة التحميل اللي تطلع تحت اول ماتدخل السيرفر تقدر تغيرها لشكل ثاني؟ وآذا لا هل يمكن بعد مايخلص التحميل؟
-
Congratz MTASA :] By the way, I wanted to report a bug but I couldn't login into my account there for unknown reasons. The bug is about arabic language the main menu and the other windows should be re-placed from left to right because this how our language goes. (works)
-
طيب انا مو همني النسخه المنشوره آنا آبي لو آحد يقدر يساعدني بالمشكله هذي لآنها رفعت ضغطي .-.
-
يالغالي النسخه المنشوره اللي تكلم عنها ماهي زي حقتي .. اللي عندي تختلف كثير
-
يب نسخة سقمار شريتها منه قبل فتره وقلت له يعدل لي السكربت على شكل لوبي تي جي جيت بشغلها اليوم طلعت لي الآخطاء هذي ولاتنسى آني قلت ماعندي مشكله لو آثبت للمشرفين ملكيتي للسكربت بحكم آنه نسخه خاصه..
-
السلام عليكم قبل فتره طويله آشتريت سكربت من واحد وكانت وقتها mtasa على نسخة 1.3 جيت اليوم بشغل السكربت طلعت لي هذي المشكله ERROR: [sigmar]\sigmar\server.lua:116: bad argument #2 to 'random' (interval is empty) elseif (arg2 == 1) then MapID = math.random(1,#g_MapsHunter); -- line 116 mapName = g_MapsHunter[MapID][2] resName = g_MapsHunter[MapID][1] elseif name:find("[Hunter]",1,true) then g_MapsHunter[#g_MapsHunter+1] = {getResourceName(v),name,0} للعلم ماعندي مشكله لو طلب آحد المشرفين آثبات شراء السكربت علشان محد يقول ناتف السكربت ويبي يعدل عليه.. ننتظر حلولكم :] #edit : مشكله نسيت آضيفها بالتريقر ERROR: Client triggered serverside event onClientReady2, but event is not added serverside --Client Side triggerServerEvent("onClientReady2",getLocalPlayer()); --Server Side addEvent("onClientReady2",true) addEventHandler("onClientReady2",root, function() triggerLatentClientEvent(source,"onServerSendS",100000,false,source,scriptstr); end)
-
Still don't work, my log : http://pastebin.mtasa.com/318319038
-
Hi, i'm really tired of the crashes i got everyday, just like 30 crash per day. my pc specs are great to launch mtasa with high quality. when i minimize the game and bring it back i got crash, and sometimes while i'm playing or watching someone in race i got crash to. and this is really annoying me, because it started appear to much since i installed windows 8. Crash information : Version = 1.3.4-release-6007.5.044 Time = Thu Jan 30 20:47:32 2014 Module = E:\GTA San Andreas\d3dx9_42.dll Code = 0xC0000005 Offset = 0x00022AB9 EAX=FF1E1E1E EBX=00000018 ECX=00000006 EDX=0028FC04 ESI=0028FB60 EDI=00000000 EBP=0028FB78 ESP=0028FB54 EIP=5DD22AB9 FLG=00010202 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B Cheers,
-
معليش ثقلت عليك بس , كيف آخلي الويندو تتوسط الشاشه بكل المقاسات + يكون فيه زر Close لما يضغطه يفجر السياره اللي هو راكبها؟
-
I think you have to use this function in your script and compile it in mtasa compiler. getServerName just let the script check the server name if it's the same written in script then the script will work, if it's false then the script won't work.
-
يعني يكون كذا ؟ ترى آول مره آجرب آسوي كود myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Password Checker", true ) MyBtn = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "Ok!", true ) myEdit = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true ) guiEditSetMaxLength ( myEdit, 5 ) addEventHandler ( "onClientGUIClick", MyBtn, false function () if guiGetText ( MyEdit ) == "test1" then guiSetVisible (MyWindow, true) fadeCamera ( source, false, 1.0, 0, 0, 0 ) else outputChatBox ( "Wrong Pass" 255,255,255, true ) fadeCamera ( source, true, 1.0, 0, 0, 0 ) end end ) myMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit function ( hitPlayer, matchingDimension ) vehicle = getPedOccupiedVehicle ( hitPlayer ) if hitPlayer ~= gMe then return end if source == myMarker then guiSetVisible (MyWindow, false) end end )
-
Event : "onMarkerHit" triggerClientEvent guiSetVisible guiGetText guiSetVisible -- false fadeCamera طيب يالغالي كيف آسوي التحقق حق الجمله اللي بالآيديت ؟
