28.07.2009, 12:13
pawn Код:
if (strcmp("/buyarmour", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 1000)
return SendClientMessage(playerid, 0xFFFFFFAA, "Poor bastard, Get some money!");
SetPlayerArmour(playerid, 100.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Armor for you!");
GivePlayerMoney(playerid, -1000);
return 1;
}