View/Edit #2250:c_record

Switch to edit mode.

Name(s): c_record
1:  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

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Floyd (#7788)

You are not logged in.

[home | help | who | search | setup | code]