get_user_ammo

Синтаксис

native get_user_ammo(index, weapon, &clip, &ammo);

Употреба

index
Client index
weapon
Weapon index
clip
Variable to store clip ammo to
ammo
Variable to store backpack ammo to

Описание

Retrieves ammo in the clip and backpack of the specified weapon.

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

1 on success or 0 if the client is not connected

Грешка

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