[FilterScript] S-Giftbox dynamic giftbox system (2nd fs)
#1

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 Код:
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
Reply
#2

Updated
Reply
#3

Nice..
Reply
#4

nice i will use it =]
Reply
#5

thnx guys for your commants.
Reply
#6

Quote:
Originally Posted by simo0000
Посмотреть сообщение
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.
Reply
#7

Quote:
Originally Posted by AchievementMaster360
Посмотреть сообщение
Nice work and also dont ask for rep, it's not professional.
thnx mate
Reply
#8

Great work man
Reply
#9

Quote:
Originally Posted by BladeFire
Посмотреть сообщение
Great work man
thnx bro. i appreciate it
Reply
#10

Good work mate + rep
Reply
#11

Quote:
Originally Posted by Jakwob
View Post
Good work mate + rep
thnx bro
Reply
#12

good Job +REP
Reply
#13

Quote:
Originally Posted by SNAKE12
View Post
good Job +REP
thnx
Reply
#14

Dude, the gifts we receive gets saved?
Reply
#15

it say you aren\'t admin when i type /Giftbox ! ( i\'m admin) XD
Reply
#16

Wow nice Work
Reply
#17

Hey good FS but how can i set a limit on how many times a place can use /getgift? like per giftbox i mean?
Reply
#18

Nice script, Great job.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)