Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. /*function ulx.micon(calling_ply, target_ply)
  2. if target_ply:isTG() then return end
  3. target_ply:SendLua([[
  4. timer.Create("mictoggle", 0.2, 0, function()
  5. LocalPlayer():ConCommand("+voicerecord")
  6. end)
  7. ]])
  8. end
  9. local micon = ulx.command("Chat", "ulx micon", ulx.micon, "!micon", true)
  10. micon:addParam{ type=ULib.cmds.PlayerArg }
  11. micon:addParam{ type=ULib.cmds.BoolArg, invisible=true }
  12. micon:defaultAccess( ULib.ACCESS_SUPERADMIN )
  13. micon:help( "Force microphone on." )
  14.  
  15. function ulx.micoff(calling_ply, target_ply)
  16. if target_ply:isTG() then return end
  17. target_ply:SendLua([[
  18. timer.Destroy("mictoggle")
  19. LocalPlayer():ConCommand("-voicerecord")
  20. ]])
  21. end
  22. local micoff = ulx.command("Chat", "ulx micoff", ulx.micoff, "!micoff", true)
  23. micoff:addParam{ type=ULib.cmds.PlayerArg }
  24. micoff:addParam{ type=ULib.cmds.BoolArg, invisible=true }
  25. micoff:defaultAccess( ULib.ACCESS_SUPERADMIN )
  26. micoff:help( "Force microphone off." )*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement