NPC PluginCommands: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
Line 1: Line 1:
===Details===
===Details===
====StartRecordingPlayerData====
<poem>
<poem>
*0x3b457A01
*0x3b457A01 (StartRecording)
</poem>
</poem>
<source>
<source>
Line 9: Line 8:
</source>
</source>
<poem>
<poem>
*0x3b457A02 (StopRecording)
*0x3b457A02 (StopRecording)
</poem>
</poem>
<source>
<source>
Line 16: Line 15:
</source>
</source>
<poem>
<poem>
*0x3b457A03
*0x3b457A03 (AllPlayers-StartRecording-Including-Future-players)
</poem>
</poem>
<source>
<source>
start record all
plgncmd 0x3b457A03 3 60 1
plgncmd 0x3b457A03 3 60 1
recording type=3, flags=60, newplayers=1 means when other players connected, they will also be automatically recorded
recording type=3, flags=60, newplayers=1 means when other players connected, they will also be automatically recorded
</source>
</source>
<poem>
<poem>
*0x3b457A04
*0x3b457A04   (AllPlayers-StopRecording)
</poem>
</poem>
<source>
<source>
Line 32: Line 30:
</source>
</source>
<poem>
<poem>
*0x3b457A05
*0x3b457A05   (Server-Recording-Start) (This is same as previous, except a .hrec file will be produced. That can be used to replay events)
</poem>
</poem>
<source>
<source>
Line 40: Line 38:
</source>
</source>
<poem>
<poem>
*0x3b457A06
*0x3b457A06   (Server-Recording-Stop)
</poem>
</poem>
<source>
<source>

Revision as of 15:03, 18 January 2024

Details

  • 0x3b457A01 (StartRecording)
plgncmd 0x3b457A01 1 3 car_test 60
start recording player 1, recording type=3, filename=car_test, flags=60
  • 0x3b457A02 (StopRecording)
plgncmd 0x3b457A02 1 
stop recording player 1
  • 0x3b457A03 (AllPlayers-StartRecording-Including-Future-players)
plgncmd 0x3b457A03 3 60 1
recording type=3, flags=60, newplayers=1 means when other players connected, they will also be automatically recorded
  • 0x3b457A04 (AllPlayers-StopRecording)
stop all 
plgncmd 0x3b457A04
stop all recording
  • 0x3b457A05 (Server-Recording-Start) (This is same as previous, except a .hrec file will be produced. That can be used to replay events)
server record
plgncmd 0x3b457A05 3 60 christmas_event
recording type=3, flags=60, hrec filename=christmas_event
  • 0x3b457A06 (Server-Recording-Stop)
stop server record 
plgncmd 0x3b457A05
stop server record. This will stop all recordings.

Note

These plugin commands also return messages. The 0x3b457A01 will return in channel 0x3b457A11, 02 in 12 and so on. Messages like

Success. Recording Started for player 1

or errors

Error: recordtype must be 1, 2 or 3

Every success message will contain the word: 'Success' and every error message contain word 'Error'