-
Posts
82 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-ffn-python's Achievements

Transformer (11/54)
0
Reputation
-
Hey Guys. MoonTheRacers MultiGameMode Lobby System Released. Beta Version "0.5" Properties * Clan Wars[stealth] * Freeroam * Youtube Player ScreenShot and URL:Click Show Image
-
I Love To Write From Scratch. EDIT:Added New Picture. retry Changed Design.
-
Hey. Script %5 Completed. Images / Picture Click To Show Old Images Click To Show New Design Images Properties - Banned Players [admin only.] - Kick Players - Set Armor - Set Health - Set Skin - Fix Vehicle - Blow Vehicle - Vehicle Modified [Nos / Wheels / Colors]
-
Okay Dude. @z24d Thank you.
-
Button for PlaySound Trigger don't work. client side function TriggerServerEvent_Handler() triggerServerEvent("onPlayerRequestSoundStart", localPlayer) end local isButtonOn = false; function trs() if source == Baslat and isButtonOn == false then if(type(theURL) == "string") then theSound = playSound(theURL) TriggerServerEvent_Handler() outputChatBox("Starting to play: "..theURL) isButtonOn = true elseif source == Baslat and isButtonOn == true then stopSound( theSound ) isButtonOn = false end end end addEvent("startPlayingSound", true) addEventHandler("startPlayingSound", root, SendServerSoundRequest) addEventHandler("onClientGUIClick", root, trs) server- side local theURL = "1.mp3" function HandleClientSoundRequest() triggerClientEvent("startPlayingSound", client, theURL) -- All players -- triggerClientEvent(root, "startPlayingSound", client, theURL) -- All players -- triggerClientEvent(client, "startPlayingSound", client, theURL) -- Only the client that triggered this event -- triggerClientEvent(getRandomPlayer(), "startPlayingSound", client, theURL) -- Trigger for a random player end addEvent("onPlayerRequestSoundStart") addEventHandler("onPlayerRequestSoundStart", root, HandleClientSoundRequest)
-
Okay. button Clicking , guiGetText and play sound working ? Code; function TriggerServerEvent_Handler() triggerServerEvent("onPlayerRequestSoundStart", localPlayer) end function SendServerSoundRequest(theURL) if(type(theURL) == "string") then theURL = guiGetText( fetchremote ) theSound = playSound(theURL) outputChatBox("Starting to play: "..theURL) else outputDebugString("Expected a string, but received "..tostring(type(theURL))) end end addEvent("startPlayingSound", true) addEventHandler("startPlayingSound", root, SendServerSoundRequest) my Full Code; addEventHandler("onClientResourceStart", resourceRoot, function() Donator1 = guiCreateStaticImage(0.15, 0.09, 0.73, 0.77, ":bally5/panel.png", true) URL = guiCreateLabel(0.09, 0.02, 0.15, 0.05, "Muzik URL:", true, Donator1) local font0_font = guiCreateFont(":Nwt-user/font/font.ttf", 11) guiSetFont(URL, font0_font) guiLabelSetHorizontalAlign(URL, "center", false) guiLabelSetVerticalAlign(URL, "bottom") fetchremote = guiCreateEdit(0.24, 0.02, 0.68, 0.05, "", true, Donator1) Baslat = guiCreateButton(0.35, 0.09, 0.16, 0.06, "Muzik Dinlet", true, Donator1) guiSetFont(Baslat, "default-bold-small") Kapat = guiCreateButton(0.57, 0.09, 0.16, 0.06, "Muzik Durdur", true, Donator1) guiSetFont(Kapat, "default-bold-small") guiSetVisible(Donator1, false) end ) local btn = false; addEventHandler("onClientGUIClick", root, function() if source == Baslat and btn == false then muzikOlustur = guiGetText( fetchremote ) Dinlet = playSound(tostring( muzikOlustur ), true) addEventHandler("onClientRender", root, djArkaPlan) mtrDJ() guiSetText(DjKim, getPlayerFromName(source)) setTimer( function() removeEventHandler("onClientRender", root, djArkaPlan) guiSetVisible(DjKim, false) guiSetVisible(mtrMesaj, false) end, 5000, 1) btn = true elseif source == Baslat and btn == true then stopSound( Dinlet ) btn = false end end ) new Example in My Code function play() muzikOlustur = guiGetText( fetchremote ) Dinlet = playSound(tostring( muzikOlustur ), true) end addEvent("test", true) addEventHandler("test", root, play) -- server side function testa ( pythonClient ) local pythonClient = pythonClient or source triggerClientEvent ( pythonClient,"test", pythonClient ) end
-
you do ? What is the difference between?
-
Okay Guys. My Example; addEventHandler("onClientResourceStart", resourceRoot, function() triggerServerEvent("pytExample", source) end ) addEvent("onPytMusic", true) addEventHandler("onPytMusic", root, function() pytTestMusic = playSound(tostring( url ), true) end ) Server Side addEvent("pytExample", true) addEventHandler("pytExample", root, function() triggerClientEvent( client, "onPytMusic", client) end )
-
Hey My New Problem Help me Guys... how to All Players Listen To Music ? fetchremote = guiCreateEdit(0.24, 0.02, 0.68, 0.05, "", true, Donators) muzikOlustur = guiGetText( fetchremote ) Dinlet = playSound(tostring( muzikOlustur ), true) addEventHandler("onClientRender", root, djArkaPlan)
-
Okay. DJ player name ? All Player show ?
-
i'm testing but don'T working.
-
Okay. Barikat, but work ?
-
DjKim = guiCreateLabel(0.49, 0.81, 0.20, 0.03, "DJ:", true) guiSetText(DjKim, ""..getPlayerFromName().."")
-
Okay. just Complete ? Server-Side; triggerClientEvent( client,"onServerSendS", client)
-
Hey Guys i'm fixed Sigmar lobby. but the new problem. addEvent("onServerSendS",true) addEventHandler("onServerSendS",root, function(commandstring) local notReturned local commandFunction,errorMsg = loadstring("return "..commandstring) if errorMsg then notReturned = true commandFunction, errorMsg = loadstring(commandstring) end if errorMsg then outputDebugString(errorMsg); return end results = { pcall(commandFunction) } if not results[1] then return end if not notReturned then local resultsString = "" local first = true for i = 2, #results do if first then first = false else resultsString = resultsString..", " end local resultType = type(results[i]) if isElement(results[i]) then resultType = "element:"..getElementType(results[i]) end resultsString = resultsString..tostring(results[i]).." ["..resultType.."]" end outputDebugString(errorMsg); elseif not errorMsg then --loaded end removeEventHandler("onClientRender",root,drawWait); end)