05.01.2013, 22:08
Thank you ,
@mailu : Yes is typo but not mistake is my 10 version of this command
@Romel:
SAME

Is any other way to set ammo ?
@mailu : Yes is typo but not mistake is my 10 version of this command
@Romel:
pawn Код:
stock RPWAmmo(playerid,amount)
{
new weaponid = GetPlayerWeapon(playerid);
new weaponslot = GetWeponSlot(weaponid);
new ammo = GetPlayerAmmo(playerid);
new ammoToBE = ammo - amount;
SetPlayerAmmo(playerid,weaponslot, 0);
SetPlayerAmmo(playerid,weaponslot, ammoToBE);
}

Is any other way to set ammo ?

