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