29.07.2018, 20:39
No just calling in that code.
pawn Код:
public OnPlayerBuyInAmmuNation(playerid, weaponid, ammo, cost)
{
new const fmt_str[] = "* Weapon purchased for "GREEN"$%d. "WHITE"Thank you for shopping with Ammunation!";
new str[sizeof(fmt_str) + 3];
GivePlayerMoney(playerid, -cost);
GivePlayerWeapon(playerid, weaponid, ammo);
if(!weaponid) SetPlayerArmour(playerid, ammo);
format(str, sizeof str, fmt_str, cost);
SendClientMessage(playerid, -1, str);
return 1;
}