Jump to content

[DUDA] - PlaySound3D


Sergioks

Recommended Posts

Hola, Tengo Una Duda... ¿ Como Hago para que Los Sonidos que se reproduzcan con PlaySound3D Solo lo escuche el que lo ejecutó ?

Osea, Como Hago para que El usuario que Puso la URL, sea el unico que la oiga, y que la musica lo siga, y no se quede en un solo sitio. ¿ se puede eso ? si se puede.. ¿ podrian decirme como, o con que Codigos ?

Gracias.

Link to comment
Para eso mejor usa:
playSound 

EJ:

function sonido(jugador,cmd,url) 
if url then 
playSound(url) 
end 
end 
addCommandHandler("url",sonido)--El comando seria /url [LINK AL SONIDO] 

Una pequeña corrección:

Los parámetros de las funciones manejadas por 'addCommandHandler' en client-side son el comando y los argumentos.

Handler function parameters

These are the parameters for the handler function that is called when the command is used.

Client

string commandName, [string arg1, string arg2, ...] 

- commandName: The name of the command triggered. This is useful if multiple commands go through one function.

- arg1, arg2, ...: Each word after command name in the original command is passed here in a seperate variable. If there is no value for an argument, its variable will contain nil. You can deal with a variable number of arguments using the vararg expression, as shown in Server Example 2 below.

Link to comment
  • Recently Browsing   0 members

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