Jump to content

Enter Please


Recommended Posts

Posted

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)

Posted

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)

Posted

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 xD

Posted

yeah :D

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)

Posted

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 xD

Posted

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)

Posted

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 xD

Posted

ok Thanx Darken again :D

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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...