ข้ามไปยังเนื้อหาหลัก

ArePlayerWeaponsAllowed

คำเตือน

ฟังก์ชันนี้ถูกเพิ่มใน omp v1.1.0.2612 และจะไม่ทำงานในเวอร์ชันก่อนหน้า!

Description​

Can the player use weapons?

NameDescription
playeridThe ID of the player to check.

Returns​

true - Player is allowed.

false - Player is not allowed.

Examples​

public OnPlayerSpawn(playerid)
{
if (ArePlayerWeaponsAllowed(playerid))
{
// do something
}

return 1;
}