OnPlayerEnterRaceCheckpoint
คำอธิบาย
This callback is called when a player enters a race checkpoint.
Name | Description |
---|---|
playerid | The ID of the player who entered the race checkpoint. |
ส่งคืน
มันถูกเรียกในฟิลเตอร์สคริปต์ก่อนเสมอ
ตัวอย่าง
public OnPlayerEnterRaceCheckpoint(playerid)
{
printf("Player %d entered a race checkpoint!", playerid);
return 1;
}
บันทึก
tip
NPC สามารถเรียก Callback นี้ได้
ฟังก์ชั่นที่เกี่ยวข้องกัน
- SetPlayerCheckpoint: Create a checkpoint for a player.
- DisablePlayerCheckpoint: Disable the player's current checkpoint.
- IsPlayerInCheckpoint: Check if a player is in a checkpoint.
- SetPlayerRaceCheckpoint: Create a race checkpoint for a player.
- DisablePlayerRaceCheckpoint: Disable the player's current race checkpoint.
- IsPlayerInRaceCheckpoint: Check if a player is in a race checkpoint.