Skip to main content

IsPlayerNPC

คำอธิบาย

Check if a player is an actual player or an NPC.

NameDescription
playeridThe ID of the player to check.

ส่งคืน

1: The player is an NPC.

0: The player is not an NPC.

ตัวอย่าง

public OnPlayerConnect(playerid)
{
if (IsPlayerNPC(playerid))
{
SendClientMessageToAll(-1, "An NPC connected!");
return 1;
}
}

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