25.05.2012, 20:11
From this page you can see the slots of weaponids
https://sampwiki.blast.hk/wiki/Weapons
For example Desert Eagle is slot nr 2. Use it in GetPlayerWeaponData
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData
Example:
https://sampwiki.blast.hk/wiki/Weapons
For example Desert Eagle is slot nr 2. Use it in GetPlayerWeaponData
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData
Example:
pawn Код:
new weaponid, ammo;
GetPlayerWeaponData(playerid, 2, weaponid, ammo);
if(weaponid == WEAPON_DEAGLE && ammo == 50)
{
}