Romel's Efficient Cookie System Final VERSION -
JaKe Elite - 04.08.2012
Romel's Efficient and Fast Cookie System Final Version
built and script by Romel
Hello i was bored so i made this cookie system.
Hope you have fun.
Note: This is the final version of rCookies. There will be no more updates, i will still reply on questions, but i will not fix the bug.
New
Updates:
• You can disable/enable the HealthEffect without editing the script.
You need to edit the script to create the command /healtheffect which disable/enable the HealthEffect
Quote how to do it:
Quote:
Originally Posted by Romel
Sorry for double posting but.
I will give another way how to disable/enable the HealthEffect without editing the script.
pawn Код:
new bool:HealthEffect = true; //if its true it means on, if its false it means off.
CMD:healtheffect(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "You are not Admin!"); if(HealthEffect == false) { format(str, sizeof(str), "Rcon Admin %s(%d) enables the Cookie Health Effect!", GetName(playerid), playerid); SendClientMessageToAll(YELLOW, str); SendClientMessage(playerid, YELLOW, "You enable the Cookie Health Effect!"); HealthEffect = true; } else if(HealthEffect == true) { format(str, sizeof(str), "Rcon Admin %s(%d) disables the Cookie Health Effect!", GetName(playerid), playerid); SendClientMessageToAll(RED, str); SendClientMessage(playerid, YELLOW, "You disable the Cookie Health Effect!"); HealthEffect = false; } return 1; }
of course to make this work you have to change the /eatcookie too.
Here is the new /eatcookie created for /healtheffect
pawn Код:
CMD:eatcookie(playerid, params[]) { GetPlayerHealth(playerid, hp); if(pCookie[playerid][cookie] == 0) return SendClientMessage(playerid, RED, "You do not have cookies!"); format(str2, sizeof(str2), "%s(%d) eat his/her cookies!", GetName(playerid), playerid); SendClientMessageToAll(YELLOW, str2); SendClientMessage(playerid, YELLOW, "Cookies eaten!, YUMMY!"); pCookie[playerid][cookie] -= 1; OnePlayAnim(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0); if(HealthEffect == true) { SetPlayerHealth(playerid, hp + 20.0); SendClientMessage(playerid, -1, "Your health goes up to 20+!"); } return 1; }
Now Press CTRL + F now find for #define HealthEffect or just word HealthEffect
then delete it
|
Change
Log:
• Health goes up to 20+ when eat cookies
to turn it off/on open cookies.pwn and find for #define HealthEffect you will see this
pawn Код:
#define HealthEffect true
to turn it off make true to false, to turn it on again make false to true.
• /chelp and /crhelp are now in dialog.
• /cookie are now added, you are now able to check other cookies
• /cshop are now added, you are now able to buy 5, 10, 15 or 20 packs of cookies.
Commands:
The command is:
/givecookie
/eatcookie
/mycookie
/chelp
/cookie
/cshop
command for rcon:
/setcookie
/resetcookie
/crhelp
Saving
System:
I use y_ini to save it.
Its most efficient and fast yet saving INI Writing in SAMP.
Credits:
****** for YSI (y_ini) and sscanf
Zeex for zcmd
Romel for scripting the filterscript.
Bugs:
If you find any bugs, I will not fix it for you or re-lease it for bug fixes.
Fix it your own. You can have the script. Keep the credits.
Current, No found bugs tested 100%
For Guest Users:
rCookies v1.0 [Fast and Efficient] (Mediafire)
rCookies_Final-Version-v1.1 (Mediafire)
For Registered Users:
Re: Romel's Efficient and Fast Cookie System v1.0 -
JaKe Elite - 10.08.2012
Changelog:
v1.1
- Will take effect on health
- will have cookie shop.
v1.1 coming soon.
Re: Romel's Efficient and Fast Cookie System v1.0 -
Shetch - 10.08.2012
Nothing special, but good job I guess.
I guess you could use this as a some sort of respect system.
Re: Romel's Efficient and Fast Cookie System v1.0 -
JaKe Elite - 10.08.2012
Well its more like healing system with a shop system.
Re: Romel's Efficient and Fast Cookie System v1.0 -
JaKe Elite - 10.08.2012
The final version of rCookie Efficient system are now released.
Topic Updated!
UPDATED
Re: Romel's Efficient and Fast Cookie System v1.0 -
Djean - 10.08.2012
This has been done a DOZEN times but lets see how good it is.
Re: Romel's Efficient and Fast Cookie System v1.0 -
JaKe Elite - 10.08.2012
Nope.
/resetcookie has been done by Roach or someone who already made cookie system?
I don't think so, So its not have been done many times.
Anyway thank you.
Re: Romel's Efficient and Fast Cookie System v1.0 -
JaKe Elite - 11.08.2012
Woah, there is still no view on rCookies-Final-Version-v1.1 registered download.
Re: Romel's Efficient and Fast Cookie System v1.0 -
JaKe Elite - 11.08.2012
Sorry for double posting but.
I will give another way how to disable/enable the HealthEffect without editing the script.
pawn Код:
new bool:HealthEffect = true; //if its true it means on, if its false it means off.
CMD:healtheffect(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "You are not Admin!");
if(HealthEffect == false)
{
format(str, sizeof(str), "Rcon Admin %s(%d) enables the Cookie Health Effect!", GetName(playerid), playerid);
SendClientMessageToAll(YELLOW, str);
SendClientMessage(playerid, YELLOW, "You enable the Cookie Health Effect!");
HealthEffect = true;
}
else if(HealthEffect == true)
{
format(str, sizeof(str), "Rcon Admin %s(%d) disables the Cookie Health Effect!", GetName(playerid), playerid);
SendClientMessageToAll(RED, str);
SendClientMessage(playerid, YELLOW, "You disable the Cookie Health Effect!");
HealthEffect = false;
}
return 1;
}
of course to make this work you have to change the /eatcookie too.
Here is the new /eatcookie created for /healtheffect
pawn Код:
CMD:eatcookie(playerid, params[])
{
GetPlayerHealth(playerid, hp);
if(pCookie[playerid][cookie] == 0) return SendClientMessage(playerid, RED, "You do not have cookies!");
format(str2, sizeof(str2), "%s(%d) eat his/her cookies!", GetName(playerid), playerid);
SendClientMessageToAll(YELLOW, str2);
SendClientMessage(playerid, YELLOW, "Cookies eaten!, YUMMY!");
pCookie[playerid][cookie] -= 1;
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
if(HealthEffect == true)
{
SetPlayerHealth(playerid, hp + 20.0);
SendClientMessage(playerid, -1, "Your health goes up to 20+!");
}
return 1;
}
Now Press CTRL + F now find for #define HealthEffect or just word HealthEffect
then delete it
Re: Romel's Efficient and Fast Cookie System v1.0 -
JaKe Elite - 09.09.2012
This filterscript has been rebuilt and remade on my Admin System.
Coming soon Stay Tune.