25.03.2014, 20:07
I need command to do if someone dont have a money he can not to buy items... Thanks for helpers I will +rep them.
new money = GetPlayerMoney(playerid);
if(money < 5000) return SendClientMessage(playerid,COLOR, "You don't have enough money to buy this item.");
if(GetPlayerMoney(playerid) < YOUR_CAR_COST HERE) return SendClientMessage(playerid,COLOR_RED,"You cannot afford this!");