Skip to main content

IsPlayerAdmin

คำอธิบาย

Check if a player is logged in as an RCON admin.

NameDescription
playeridThe ID of the player to check.

ส่งคืน

1: Player is an RCON admin. 0: Player is NOT an RCON admin.

ตัวอย่าง

public OnPlayerSpawn(playerid)
{
if (IsPlayerAdmin(playerid))
{
SendClientMessageToAll(0xDEEE20FF, "An admin spawned.");
}
return 1;
}

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