Skip to main content

StartRecordingPlayerData

คำอธิบาย

Starts recording a player's movements to a file, which can then be reproduced by an NPC.

NameDescription
playeridThe ID of the player to record.
recordtypeThe type of recording.
recordname[]The name of the file which will hold the recorded data. It will be saved in the scriptfiles directory, with an automatically added .rec extension, you will need to move the file to npcmodes/recordings to use for playback.

ส่งคืน

This function does not return any specific values.

ตัวอย่าง

if (!strcmp("/recordme", cmdtext))
{
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_ONFOOT, "MyFile");
}
else if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_DRIVER, "MyFile");
}
SendClientMessage(playerid, 0xFFFFFFFF, "All your movements are now being recorded!");
return 1;
}

ฟังก์ชั่นที่เกี่ยวข้องกัน