How to get player weapon and ammo?
#3

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:

pawn Код:
new weaponid, ammo;
GetPlayerWeaponData(playerid, 2, weaponid, ammo);
if(weaponid == WEAPON_DEAGLE && ammo == 50)
{

}
Reply


Messages In This Thread
How to get player weapon and ammo? - by ricardo178 - 25.05.2012, 19:48
Re: How to get player weapon and ammo? - by milanosie - 25.05.2012, 19:50
Re: How to get player weapon and ammo? - by MadeMan - 25.05.2012, 20:11
Re: How to get player weapon and ammo? - by ricardo178 - 25.05.2012, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)