Command:buy(playerid,params[]) { if(choclate >= 1)//if he have 1 or more { GivePlayerMoney(playerid,5); choclate --;//subtract 1 } }