Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function grabar(nickname)
- local date_time = os.date("!%Y-%m-%d %H-%M-%S")
- local command = 'start "" /D "C:\\Users\\Hidend\\Downloads\\OBSCommand_1.6.3\\OBSCommand\\" "OBSCommand.exe" '
- .. '/server=127.0.0.1:4455 '
- .. '/password=contrasenaRandom'
- .. '/command=SetProfileParameter,'
- .. 'parameterCategory=Output,'
- .. 'parameterName=FilenameFormatting,'
- .. 'parameterValue="' .. nickname .. '-' .. date_time .. '" '
- .. '/startrecording'
- os.execute(command)
- sampAddChatMessage("Grabando!", 0x00DD00)
- bRecording = true
- end
- function parargrabacion()
- os.execute('"C:\\Users\\Hidend\\Downloads\\OBSCommand_1.6.3\\OBSCommand\\OBSCommand.exe" /server=127.0.0.1:4455 /password=contrasenaRandom /stoprecording')
- sampAddChatMessage("Grabacion parada!", 0x00DD00)
- bRecording = false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement