16.02.2014, 12:32
pawn Код:
if(GetPlayerMoney(playerid) <10000) return SendClientMessage(playerid, gun, "You don't have enough money to buy this item!");
new Float:armour;
GetPlayerArmour(playerid, armour);
if(armour == 100) return SendClientMessage(playerid, gun, "You already have a full Armour!");
SendClientMessage(playerid, gun, "You bought a full Armour for 10k!");
GivePlayerMoney(playerid, -10000);
SetPlayerArmour(playerid, 100);
}
}
}
return 1;
}