[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


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)