Advertisement
Hidend

Untitled

May 15th, 2024 (edited)
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. function grabar(nickname)
  2. local date_time = os.date("!%Y-%m-%d %H-%M-%S")
  3. local command = 'start "" /D "C:\\Users\\Hidend\\Downloads\\OBSCommand_1.6.3\\OBSCommand\\" "OBSCommand.exe" '
  4.                 .. '/server=127.0.0.1:4455 '
  5.                 .. '/password=contrasenaRandom'
  6.                 .. '/command=SetProfileParameter,'
  7.                 .. 'parameterCategory=Output,'
  8.                 .. 'parameterName=FilenameFormatting,'
  9.                 .. 'parameterValue="' .. nickname .. '-' .. date_time .. '" '
  10.                 .. '/startrecording'   
  11.                 os.execute(command)
  12.                 sampAddChatMessage("Grabando!", 0x00DD00)
  13.                 bRecording = true
  14. end
  15.  
  16. function parargrabacion()
  17.     os.execute('"C:\\Users\\Hidend\\Downloads\\OBSCommand_1.6.3\\OBSCommand\\OBSCommand.exe" /server=127.0.0.1:4455 /password=contrasenaRandom /stoprecording')
  18.     sampAddChatMessage("Grabacion parada!", 0x00DD00)
  19.     bRecording = false
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement