SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 24/05/2018, 04:03 AM   #1
Little Clucker
Join Date: Apr 2018
Posts: 12
Reputation: 0
Default Cookies

Hello guy's i need some help that how to create a cookie system for player's.

Process i want : If a player has low health, he types /ec & he will regain his health by eating cookie & a cookie will be deducted from his stats.

How to make or define the cookie? Can anyone give me code. And if i define cookie, it shows "undefined symbol - Cookie"
Chanty420 is offline   Reply With Quote
Old 24/05/2018, 06:09 AM   #2
Join Date: Mar 2013
Location: the Netherlands
Posts: 887
Reputation: 79
Default Re: Cookies

Show us the code you have already and we might be able to point you in the right direction.
Developer and owner of
Sithis is offline   Reply With Quote
Old 24/05/2018, 07:02 AM   #3
Little Clucker
Join Date: Feb 2016
Location: Denmark
Posts: 16
Reputation: 1
Default Re: Cookies

new cookies[MAX_PLAYERS];
	if(cookies[playerid] > 0)
		new Float:Health;
		SetPlayerHealth(playerid,GetPlayerHealth(playerid,Health)+15); // added 15 health if you eat cookies
		cookies[playerid] =-1; // deducted the coockies when u eat
		SendClientMessage(playerid,-1,"You eat cookies!");
	else SendClientMessage(playerid,-1,"ERROR: You don't have coockies!"); // Message will be showed if you don't have cookies
	return 1;
Just try the code
everything gonna be fine.
dwp12345 is offline   Reply With Quote
Old 24/05/2018, 07:19 AM   #4
Big Clucker
TadePoleMG's Avatar
Join Date: Apr 2018
Location: Uttar Pradesh, India
Posts: 164
Reputation: 2
Default Re: Cookies

Hi friend

Try this link -

Thank You.
-| Gaming 'N' Scripting |-
TadePoleMG is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookies Despacito Scripting Help 8 13/05/2017 12:28 PM
cookies Loinal Scripting Help 5 23/04/2017 09:19 PM
Cookies? denNorske Scripting Help 10 06/09/2016 09:45 PM
Cookies ShoortyFl Scripting Help 3 26/07/2015 10:28 AM
Cookies Help! TazmaNiax Scripting Help 2 03/06/2014 03:19 AM

All times are GMT. The time now is 05:29 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.