Switch to edit mode.
Name(s): c_record1: if (!this:fileexists("buffer"))
2: this:filewrite("buffer", {})
3: endif
4: if (this:ok(player))
5: if (args[1] == "start")
6: this.record = 1
7: this:_notify("Recording Starting Now.")
8: elseif (args[1] == "stop")
9: this.record = 0
10: this:_notify("Recording Stoped Now.")
11: elseif (args[1] == "clear")
12: this:filedelete("buffer")
13: this:filewrite("buffer", {})
14: this:_notify("Cleared Recording Buffer.")
15: endif
16: endif