Jump to content

[Cerere]Tutorial EAT


Shaolinu

Recommended Posts

CMD:eat(playerid,params[]) //Example eat command
{
	SendClientMessage(playerid, -1, "Hmmmm.. that was some good food!"); //Send message to let the player know they're full again
	pInfo[playerid][Hunger] = 100; // 'fill the stomach'
	SetProgressBarValue(hungerbar[playerid], pInfo[playerid][Hunger]); //Sets the progress bar to the hunger value
	return 1;
}
  • Upvote 2

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

Acum 29 minute, Geani a spus:
CMD:eat(playerid,params[]) //Example eat command
{
	SendClientMessage(playerid, -1, "Hmmmm.. that was some good food!"); //Send message to let the player know they're full again
	pInfo[playerid][Hunger] = 100; // 'fill the stomach'
	SetProgressBarValue(hungerbar[playerid], pInfo[playerid][Hunger]); //Sets the progress bar to the hunger value
	return 1;
}

Am luat niste erori..Ce sa fac? frate si pe mine ma intereseaza..ca comanda asta sa pot sa o scriu,doar in acel biz..adica in restaurant..nu doar asa comanda..

Untitled.png

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.