02.05.2010, 20:23
Quote:
Originally Posted by Anthony_Brassi
Quote:
GetPlayerArmour(playerid); IfPlayerArmourIfPlayerArmour(playerid, > 99) return SendClientMessage(COLOR, "You can't buy more then 100 Armor!"); |
pawn Код:
new
string[128],
Float:amount,
Float:limit,
Float:Armour;
GetPlayerArmour(playerid, Armour);
limit = floatsub(100, Armour);
if(amount > limit)
{
format(string, sizeof(string), "You can't buy more than %.2f Armour!", limit);
SendClientMessage(playerid, RED, string);
}