get_user_ammo

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

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

Parameters
  • index — Client index
  • weapon — Weapon index
  • clip — Variable to store clip ammo to
  • ammo — Variable to store backpack ammo to
Returns

1 on success or 0 if the client is not connected

Errors
  • If the client index is not within the range of 1 to

    MaxClients or the weapon index is invalid, an error will

    be thrown.

Назад
Верх