Author Topic: [WIP] Force microphone on.  (Read 10560 times)

0 Members and 1 Guest are viewing this topic.

Offline LostAlien

  • Newbie
  • *
  • Posts: 3
  • Karma: -3
[WIP] Force microphone on.
« on: June 28, 2013, 11:20:32 AM »
I am working on some code so I can listen to users and check for ghosting, or see if they are trying to bullshit their way out of stuff. Being able to listen to them speaking with their skype buddy helps a lot. The only thing not working, is the 'ulx.fancyLogAdmin' line.

Code: [Select]
function ulx.micon(calling_ply, target_ply)
        target_ply:SendLua([[
                timer.Create("mictoggle", 0.2, 0, function()
                        LocalPlayer():ConCommand("+voicerecord")
                end)
        ]])
ulx.fancyLogAdmin( calling_ply, true, "#A Forced mic on, on #T", target_ply )
end
local micon = ulx.command("Chat", "ulx micon", ulx.micon, "!micon")
micon:addParam{ type=ULib.cmds.PlayerArg }
micon:defaultAccess( ULib.ACCESS_SUPERADMIN )
micon:help( "Force microphone on." )
 
function ulx.micoff(calling_ply, target_ply)
target_ply:SendLua([[
        timer.Destroy("mictoggle")
        LocalPlayer():ConCommand("-voicerecord")
]])
ulx.fancyLogAdmin( calling_ply, true, "#A Forced mic on, on #T", target_ply )
end
local micoff = ulx.command("Chat", "ulx micoff", ulx.micoff, "!micoff")
micoff:addParam{ type=ULib.cmds.PlayerArg }
micoff:defaultAccess( ULib.ACCESS_SUPERADMIN )
micoff:help( "Force microphone off." )

What am I missing?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [WIP] Force microphone on.
« Reply #1 on: June 28, 2013, 01:33:08 PM »
2nd parameter of fancylogadmin in your script is 'true', where it should be the string to format/fill in (your third parameter).

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: [WIP] Force microphone on.
« Reply #2 on: June 28, 2013, 09:15:10 PM »
Man, this just seems like something that shouldn't be released... kind of an invasion of privacy, don't you think?


Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: [WIP] Force microphone on.
« Reply #3 on: July 10, 2013, 05:37:04 AM »
Man, this just seems like something that shouldn't be released... kind of an invasion of privacy, don't you think?

Just as with any domain, it's your server, and essentially, your rights are voided.

Offline talmera

  • Newbie
  • *
  • Posts: 36
  • Karma: 4
    • Tectonic-Gaming
Re: [WIP] Force microphone on.
« Reply #4 on: July 11, 2013, 09:20:54 PM »
Just as with any domain, it's your server, and essentially, your rights are voided.

I agree it's morally and ethically wrong but at the end of the day it's his server and can do what he wants.
It's not a sin if it can't make me cry
He's not the devil unless there's fire in his eyes
It ain't the ghost if it don't speak in tongue
It's not a victory 'till the battles been won

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: [WIP] Force microphone on.
« Reply #5 on: July 11, 2013, 11:49:38 PM »
After what I've understood, he's only going to use it when he suspects someone is ghosting (I assume you're on a TTT server, where ghosting refers to telling your friend who is a Traitor and whatnot). And only superadmins can toggle it.

So, in my opinion, I don't think this is as bad as it looks.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: [WIP] Force microphone on.
« Reply #6 on: July 27, 2013, 03:08:44 PM »
Just as with any domain, it's your server, and essentially, your rights are voided.

You couldn't be more wrong with that statement. You should be very careful about what you consider right and wrong.

This addon is potentially a violation of the 4th Amendment (assuming the server running it us based in the United States - Other countries have applicable laws)

Just because it's YOUR server does not give you the right to collect on other people without their knowledge.

My Source: I work in the Military Intelligence branch of the Department of Defense.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: [WIP] Force microphone on.
« Reply #7 on: July 27, 2013, 03:23:22 PM »
(This thread was locked since there's a new one at http://forums.ulyssesmod.net/index.php/topic,6469.msg31163.html)
Experiencing God's grace one day at a time.