29.06.2011, 07:39
pawn Код:
if (strcmp("/Buyhealth", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You can't afford this!");
return 1;
}
SetPlayerHealth(playerid, 100.0);
GivePlayerMoney(playerid, -10000);
return 1;
}
if (strcmp("/BuyArmor", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1, "You can't afford this!");
return 1;
}
SetPlayerArmour(playerid, 100.0);
GivePlayerMoney(playerid, -10000);
return 1;
}