13.07.2015, 21:44
S-Giftbox filterscript
Hello guys I just created my 2nd filterscript and decided to share its a dynamic giftbox system with cool featureswhich 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;
}
sorry for my bad english
