get_user_weapons

Синтаксис

native get_user_weapons(index, weapons[32], &num);

Употреба

index
Client index
weapons
Array to store weapon indexes in
num
Variable to store number of weapons in the inventory to

Описание

Retrieves all weapons in the client inventory, stores them in an array, and
returns the inventory as a bitflag sum.

Забележка

Make sure that num has an initial value of 0 or the native will not
work correctly.

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

Bitflag sum of weapon indexes, 0 if client is not connected

Грешка

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