---
title: "GetPlayerWeaponState | open.mp"
description: "Provjeri stanje igračevog oružja."
canonical: https://omp.itsneufox.com/bs/docs/scripting/functions/GetPlayerWeaponState
language: bs
---

# GetPlayerWeaponState

## Deskripcija

Provjeri stanje igračevog oružja.

| Ime | Deskripcija |
| --- | --- |
| playerid | ID igrača za primiti stanje oružja. |

## Returns

Stanje igračevog oružja. 0 ako navedeni igrač ne postoji.

## Primjeri

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

## Srodne Funkcije

-   [GivePlayerWeapon](https://omp.itsneufox.com/bs/docs/scripting/functions/GivePlayerWeapon): Daj igraču oružje.
