SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 13/07/2015, 10:44 PM   #1
simo0000
Huge Clucker
 
simo0000's Avatar
 
Join Date: Nov 2013
Posts: 239
Reputation: 12
Default S-Giftbox dynamic giftbox system (2nd fs)

S-Giftbox filterscript

Hello guys I just created my 2nd filterscript and decided to share its a dynamic giftbox system with cool features
which you can place it and destroy it in-game with a simple command

Bugs

None. If you find any bugs report them with a reply and I will fix them. thnx

Features:
-/giftbox. only rcon admin can use that command which it's place a giftbox or destroy it.
-/getgift. it's for all players which they can get gifts from giftbox if they are in range of the giftbox

How to install:
copy S-Giftbox.amx to the your filterscripts and add S-Giftbox to you server.cfg

Download:


Solidfiles

Pastebin

How can i add more gifts?
you can simply add more gifts by editing RandomGift fucntion
pawn Code:
new randomgift = random(MAX_RANDOM_GIFTS) + 1;
    switch (randomgift)
    {
        case 1:
        {
            GivePlayerMoney(playerid, 50000);
            SendClientMessage(playerid, COLOR_YELLOW, "You have won 50000$ enjoy!.");
        }
        case 2:
        {
            GivePlayerMoney(playerid, 10000);
            SendClientMessage(playerid, COLOR_YELLOW, "You have won 10000$ enjoy!.");
        }
        case 3:
        {
            SetPlayerArmour(playerid, 100);
            SendClientMessage(playerid, COLOR_YELLOW, "You have won a vest enjoy!.");
        }
        case 4:
        {
            //do something here
         }
    }
 return 1;
}

and then increase the #define MAX_RANDOM_GIFTS 3 to #define MAX_RANDOM_GIFTS 4 etc..

sorry for my bad english
simo0000 is offline   Reply With Quote
Old 14/07/2015, 01:54 AM   #2
simo0000
Huge Clucker
 
simo0000's Avatar
 
Join Date: Nov 2013
Posts: 239
Reputation: 12
Default Re: S-Giftbox dynamic giftbox system (2nd fs)

Updated
__________________
My filterscripts
S-AFK
S-Giftbox dynamic giftbox system
simo0000 is offline   Reply With Quote
Old 14/07/2015, 02:35 AM   #3
TheRaGeLord
Banned
 
Join Date: Jun 2014
Posts: 314
Reputation: 24
Default Re: S-Giftbox dynamic giftbox system (2nd fs)

Nice..
TheRaGeLord is offline   Reply With Quote
Old 14/07/2015, 03:17 AM   #4
noamch1997
Big Clucker
 
Join Date: Jul 2014
Posts: 126
Reputation: 1
Default Re: S-Giftbox dynamic giftbox system (2nd fs)

nice i will use it =]
noamch1997 is offline   Reply With Quote
Old 14/07/2015, 03:54 PM   #5
simo0000
Huge Clucker
 
simo0000's Avatar
 
Join Date: Nov 2013
Posts: 239
Reputation: 12
Default Re: S-Giftbox dynamic giftbox system (2nd fs)

thnx guys for your commants.
__________________
My filterscripts
S-AFK
S-Giftbox dynamic giftbox system

Last edited by simo0000; 22/07/2015 at 12:32 AM.
simo0000 is offline   Reply With Quote
Old 14/07/2015, 03:56 PM   #6
AchievementMaster360
Huge Clucker
 
AchievementMaster360's Avatar
 
Join Date: Apr 2012
Location: New York, United States
Posts: 233
Reputation: 24
Default Re: S-Giftbox dynamic giftbox system (2nd fs)

Quote:
Originally Posted by simo0000 View Post
thnx guys for your commands. don't forget to +rep me plz.
thank you
Nice work and also dont ask for rep, it's not professional.
AchievementMaster360 is offline   Reply With Quote
Old 14/07/2015, 04:02 PM   #7
simo0000
Huge Clucker
 
simo0000's Avatar
 
Join Date: Nov 2013
Posts: 239
Reputation: 12
Default Re: S-Giftbox dynamic giftbox system (2nd fs)

Quote:
Originally Posted by AchievementMaster360 View Post
Nice work and also dont ask for rep, it's not professional.
thnx mate
__________________
My filterscripts
S-AFK
S-Giftbox dynamic giftbox system
simo0000 is offline   Reply With Quote
Old 14/07/2015, 04:04 PM   #8
BladeFire
Big Clucker
 
Join Date: Jul 2015
Posts: 61
Reputation: 7
Default Re: S-Giftbox dynamic giftbox system (2nd fs)

Great work man
BladeFire is offline   Reply With Quote
Old 14/07/2015, 04:14 PM   #9
simo0000
Huge Clucker
 
simo0000's Avatar
 
Join Date: Nov 2013
Posts: 239
Reputation: 12
Default Re: S-Giftbox dynamic giftbox system (2nd fs)

Quote:
Originally Posted by BladeFire View Post
Great work man
thnx bro. i appreciate it
__________________
My filterscripts
S-AFK
S-Giftbox dynamic giftbox system
simo0000 is offline   Reply With Quote
Old 14/07/2015, 04:27 PM   #10
Jakwob
Huge Clucker
 
Jakwob's Avatar
 
Join Date: Jan 2014
Location: United Kingdom
Posts: 247
Reputation: 27
Default Re: S-Giftbox dynamic giftbox system (2nd fs)

Good work mate + rep
Jakwob 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
[Request] Dynamic Giftbox Filterscript. Magnezia Scripting Help 2 25/05/2015 01:01 PM
Dynamic Giftbox Problem Yander Scripting Help 5 17/05/2014 06:52 AM
Dynamic Giftbox Bug Yander Scripting Help 7 15/05/2014 06:17 PM
[ Help ] GiftBox System NexisHotel Scripting Help 3 17/12/2013 03:49 AM
Help with Dynamic giftbox? jasonsmith Scripting Help 2 18/07/2013 04:36 AM


All times are GMT. The time now is 09:48 AM.


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