SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 04/08/2012, 07:21 AM   #1
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,796
Reputation: 294
Default Romel's Efficient Cookie System Final VERSION

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.

NewUpdates:

• 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 View Post
Sorry for double posting but.
I will give another way how to disable/enable the HealthEffect without editing the script.

pawn Code:
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 Code:
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 Code:
#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:

Y_Less 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:
Attached Files
File Type: zip rCookies v1.0 [Efficient and Fast].zip (484.2 KB, 35 views)
File Type: zip rCookies_Final-Version-v1.1.zip (485.7 KB, 47 views)
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.

Last edited by _Jake_; 11/08/2012 at 04:58 AM. Reason: Updated and Final Version!
_Jake_ is offline   Reply With Quote
Old 10/08/2012, 08:43 AM   #2
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,796
Reputation: 294
Default Re: Romel's Efficient and Fast Cookie System v1.0

Changelog:

v1.1

- Will take effect on health
- will have cookie shop.

v1.1 coming soon.
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 10/08/2012, 10:44 AM   #3
Shetch
Huge Clucker
 
Shetch's Avatar
 
Join Date: Feb 2011
Location: Latvia
Posts: 482
Reputation: 33
Default Re: Romel's Efficient and Fast Cookie System v1.0

Nothing special, but good job I guess.

I guess you could use this as a some sort of respect system.
__________________
Shetch is offline   Reply With Quote
Old 10/08/2012, 11:00 AM   #4
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,796
Reputation: 294
Default Re: Romel's Efficient and Fast Cookie System v1.0

Well its more like healing system with a shop system.
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 10/08/2012, 02:06 PM   #5
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,796
Reputation: 294
Default Re: Romel's Efficient and Fast Cookie System v1.0

The final version of rCookie Efficient system are now released.

Topic Updated!

UPDATED
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 10/08/2012, 02:19 PM   #6
Djean
Gangsta
 
Djean's Avatar
 
Join Date: Jul 2012
Location: Jamaica
Posts: 589
Reputation: 15
Default Re: Romel's Efficient and Fast Cookie System v1.0

This has been done a DOZEN times but lets see how good it is.
__________________

________________________________________________

________________________________________________
Djean is offline   Reply With Quote
Old 10/08/2012, 02:24 PM   #7
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,796
Reputation: 294
Default Re: Romel's Efficient and Fast Cookie System v1.0

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.
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 11/08/2012, 01:22 AM   #8
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,796
Reputation: 294
Default Re: Romel's Efficient and Fast Cookie System v1.0

Woah, there is still no view on rCookies-Final-Version-v1.1 registered download.
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 11/08/2012, 04:55 AM   #9
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,796
Reputation: 294
Default Re: Romel's Efficient and Fast Cookie System v1.0

Sorry for double posting but.
I will give another way how to disable/enable the HealthEffect without editing the script.

pawn Code:
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 Code:
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
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Old 09/09/2012, 06:18 AM   #10
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,796
Reputation: 294
Default Re: Romel's Efficient and Fast Cookie System v1.0

This filterscript has been rebuilt and remade on my Admin System.

Coming soon Stay Tune.
__________________
I stopped playing stunt servers long time ago and decided to enter the RolePlay servers and roleplay with it, You would find me playing in P:LA or in any popular servers, edit or not, My roleplay name would be always Ronald_Lacson.


When on UN-RP servers, My username would be always Jake_Hero, If you want to add me on Skype, the ID would be, spencer_

I need a user who can let me use JakAdmin 3.2.2 on their servers, I am glad if someone will let me, It's not that i will steal anything - You're the one who'll upload the Beta Script.
_Jake_ is offline   Reply With Quote
Reply

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
[FilterScript] [FS] Cookie System (KillingSprees/Setcookies/etc...) ViruZZzZ_ChiLLL Filterscripts 43 15/09/2012 05:52 AM
Help with a cookie system. ++rep rangerxxll Scripting Help 8 06/03/2012 06:44 AM
[FilterScript] EpicZZ Cookie System [ Version 1.0 ] AK47317 Filterscripts 17 29/04/2011 10:47 AM
[FilterScript] [FS] DCS - Dynamic cookie system [DINI] [0.3] Striker_Moe Filterscripts 25 06/06/2010 07:22 PM


All times are GMT. The time now is 06:13 PM.


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