Untitled
public text v1 · immutable// playa define:
new playa;
// shealth define:
new Float:shealth;
// new health define:
new Float:health;
if (strcmp("/food", cmdtext, true, 40) == 0){
GetPlayerHealth(playa, shealth);
SetPlayerHealth(playa, shealth+25);
GivePlayerMoney(playa, -foodcost);
GameTextForPlayer(playerid, "~w~ You pay $100 for food and eat it", 5000, 1);
return 1;
}