28.07.2009, 16:52
pawn Код:
if (strcmp("/9mm", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) => 150)
{
GivePlayerWeapon(playerid, 22, 500);
GivePlayerMoney(playerid, b-150);
SendClientMessage(playerid, COLOR_ADMIN, "*** You have bought a 9MM Pistol - Cost: $150");
}
else return SendClientMessage(playerid, YOUR_COLOR, "Insufficient funds.");
return 1;
}