Skip to main content

GetPlayerWeaponState

คำอธิบาย

Check the state of a player's weapon.

NameDescription
playeridThe ID of the player to obtain the weapon state of.

ส่งคืน

The state of the player's weapon. 0 if player specified does not exist.

ตัวอย่าง

public OnPlayerSpawn(playerid)
{
SetPVarInt(playerid, "WepState", GetPlayerWeaponState(playerid));
return 1;
}

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

  • GivePlayerWeapon: Give a player a weapon.