equal
deleted
inserted
replaced
287 result:= 0; |
287 result:= 0; |
288 AddFileLog('BeginPreRecording'); |
288 AddFileLog('BeginPreRecording'); |
289 // Videos don't work if /lua command was used, so we forbid them |
289 // Videos don't work if /lua command was used, so we forbid them |
290 if luaCmdUsed then |
290 if luaCmdUsed then |
291 begin |
291 begin |
292 // TODO: Show message to player |
|
293 PlaySound(sndDenied); |
292 PlaySound(sndDenied); |
294 AddChatString(#0 + shortstring(trmsg[sidVideoRecLuaFail])); |
293 AddChatString(#0 + shortstring(trmsg[sidVideoRecLuaFail])); |
295 AddFileLog('Pre-recording prevented; /lua command was used before'); |
294 AddFileLog('Pre-recording prevented; /lua command was used before'); |
296 exit; |
295 exit; |
297 end; |
296 end; |