warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
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.