11.09.2010, 12:25
pawn Код:
if(listitem == 0)
{
if(GetPlayerMoney(playerid) <= 2000)
{
GivePlayerWeapon(playerid,22, 500);
TogglePlayerControllable(playerid,1);
GivePlayerMoney(playerid,-2000);
}
else
{
SendClientMessage(playerid, COLOR_BRIGHTRED, "Not enough money to buy this weapon");
}
}
(thats just for 1 item make for others youself )