cs_get_user_weapon_entity

Синтаксис

native cs_get_user_weapon_entity(playerIndex);

Употреба

playerIndex
Player index

Описание

Returns active weapon entity.

Връщаща стойност

Weapon entity index on success or 0 if there is no active weapon

Грешка

If the client index is not within the range of 1 to
maxClients, or the client is not connected, an error will be
thrown.