Skip to main content

OnPlayerLeaveCheckpoint

คำอธิบาย

This callback is called when a player leaves the checkpoint set for them by SetPlayerCheckpoint. Only one checkpoint can be set at a time.

NameDescription
playeridThe ID of the player that left their checkpoint.

ส่งคืน

มันถูกเรียกในฟิลเตอร์สคริปต์ก่อนเสมอ

ตัวอย่าง

public OnPlayerLeaveCheckpoint(playerid)
{
printf("Player %i left a checkpoint!", playerid);
return 1;
}

บันทึก

tip

NPC สามารถเรียก Callback นี้ได้

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