Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] Bar Betting system [Unique]

$
0
0
Bar Betting System


Hai guys, today i bring you my script called "Bar Betting". Sounds differen't huh? Well this is how it works.

First, You Do /barbets, and it will show you a list of Drinks.
Code:

SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SYNTAX] {FFFFFF}Usage: \"barbets <bet-name>\"");
        SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SYNTAX] {FFFFFF}Bet Names: GrapeDrank($2,500), OrangeJuice($5,000), AppleJuice($10,000)");
        SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SYNTAX] {FFFFFF}Bet Names: Coke($25,000), Pepsi($50,000), LightBeer($100,000), Beer($250,000)");
        SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SYNTAX] {FFFFFF}Bet Names: RedWine($600,000), Champagne($1,200,000), Water($2,600,000)");
        SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SYNTAX] {FFFFFF}Bet Names: Lemonade($4,100,000), Milkshake($8,700,000), Zonrox($13,000,000)");
        SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SYNTAX] {FFFFFF}Bet Names: Domex($50,000,000), PepperDrink($75,000,000), Bleach($100,000,000)");
        SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SYNTAX] {FFFFFF}Note: You will buy the drink, if you win, you get double the prize of the drink,");
        SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SYNTAX] {FFFFFF}Note: If you lose, you get nothing. EXAMPLE: You bought PEPSI(50k) and you won,");
        SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SYNTAX] {FFFFFF}Note: You get 100k.");

Second, you choose a drink to buy, via /barbets <drinkname>, for example you choose red wine, you will lose 600k cause you will buy the drink, but if you win, you get 1,200,000.

Win Message:
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[BARBETS] {FFFFFF}You have won $(Winning Money) from a bar bet!");

Lose Message:
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[BARBETS] {FFFFFF}You lost, better luck next time!");

High Winning Message:
format(message, sizeof(message), "{FF0000}[BROADCAST] {00FF04}%s Has Just Won $(Winning Money) from a bar bet!",name);
SendClientMessageToAll(COLOR_WHITE, string);


DOWNLOAD LINK:
https://pastebin.com/TEWS4FHM

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>