IsPlayerNPC
คำอธิบาย
Check if a player is an actual player or an NPC.
Name | Description |
---|---|
playerid | The 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;
}
}
ฟังก์ชั่นที่เกี่ยวข้องกัน
- ConnectNPC: Connect an NPC.
- IsPlayerAdmin: Checks if a player is logged into RCON.