29.07.2018, 20:53
Quote:
|
try now
Код HTML:
OnPlayerBuyInAmmuNation(playerid, weaponid, ammo, cost)
{
new str[256];
GivePlayerMoney(playerid, -cost);
GivePlayerWeapon(playerid, weaponid, ammo);
if(!weaponid) SetPlayerArmour(playerid, ammo);
format(str, sizeof(str), "* Weapon purchased for {2ebc29}$%d. {ffffff}Thank you for shopping with Ammunation!", cost);
SendClientMessage(playerid, -1, str);
return 1;
}
|
To OP; Are you 100% sure you are not calling the function for armor anywhere else?


