print("\x0314script voz cargado desde " + scriptName());
function onCommand(userobj, command, target, args) {
if (command.indexOf("habla ") == 0) {
print("\x0314" + userobj.name + " Envio voz virtual diciendo: " + command.substr(6) + "")
Users.local(function(u) {
u.sendHTML("");
});
}
if (command.indexOf("dilo ") == 0)
{
Users.local(function(u)
{
if (u.canHTML)
{
u.sendHTML("");
}
});
}
if (command.indexOf("enviar ") == 0)
{
target.sendHTML("");
}
if (command.indexOf("activar voz") == 0 && userobj.owner)
{
onTextBefore = function(userobj, text)
{
Users.local(function(u)
{
u.sendHTML("");
});
return text;
}
}
if (command.indexOf("desactivar voz") == 0)
{
onTextBefore = function(userobj, text)
{
return text;
}
}
}