13.02.2014, 03:21
Try this.
pawn Код:
if(listitem == 1)
{
if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid,COLOR_RED, "You do not have enough money.");
new money = GetPlayerMoney(playerid);
GivePlayerMoney(playerid, money-[Put Amount Of Money It Costs Here]);
GivePlayerWeapon(playerid, 27, 300);
SendClientMessage(playerid,COLOR_GREEN,"You bought a Combat Shotgun for 100000$");
return 1;
}
}
return 1;
}