Evil-Cod3r Posted March 5, 2012 Posted March 5, 2012 Hi all is there any function or event that if i have a music url can get it form any where like my music www.music.com/music1/ is there a function or event can get any url i put ? My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
drk Posted March 5, 2012 Posted March 5, 2012 Explain better. EPT Team Server Development: 0% Learning C++ | C++ is amazing
Evil-Cod3r Posted March 5, 2012 Author Posted March 5, 2012 is there any function or event that get any musice ulr i put? My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
drk Posted March 5, 2012 Posted March 5, 2012 Huumm.. I can't understand. You want a function that get's music url that you put in a memo or play the music from the url you put? EPT Team Server Development: 0% Learning C++ | C++ is amazing
Evil-Cod3r Posted March 5, 2012 Author Posted March 5, 2012 yeah My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
drk Posted March 5, 2012 Posted March 5, 2012 Yeah?? What? get's music url that you put in a memo or play the music from the url you put? EPT Team Server Development: 0% Learning C++ | C++ is amazing
Evil-Cod3r Posted March 5, 2012 Author Posted March 5, 2012 play the music from the url you put this My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
drk Posted March 5, 2012 Posted March 5, 2012 If it's by a player types in a memo or other: memo = guiCreateMemo ( ... ) button = guiCreateButton ( ... ) addEventHandler ( 'onClientGUIClick',root, function ( ) if ( source == button ) then local url = guiGetText ( memo ) playSound ( url, false ) end end ) If it's by your url only use: playSound ( 'http://example.com', false ) EPT Team Server Development: 0% Learning C++ | C++ is amazing
Evil-Cod3r Posted March 5, 2012 Author Posted March 5, 2012 ok Thanx Darken again My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
drk Posted March 5, 2012 Posted March 5, 2012 No problem EPT Team Server Development: 0% Learning C++ | C++ is amazing
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now