SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 03/06/2017, 05:36 AM   #1
SeanDenZYR
Big Clucker
 
Join Date: May 2016
Location: Philippines!!
Posts: 87
Reputation: 8
Default Bar Betting system [Unique]

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

Last edited by SeanDenZYR; 03/06/2017 at 11:41 AM.
SeanDenZYR is offline   Reply With Quote
Old 03/06/2017, 07:59 AM   #2
coool
Huge Clucker
 
Join Date: Feb 2013
Location: Pakistan, Sindh
Posts: 448
Reputation: 28
Default Re: Bar Betting system [Unique]

download link?
__________________
My Writing Works
Lost In Future

coool is offline   Reply With Quote
Old 03/06/2017, 11:39 AM   #3
SeanDenZYR
Big Clucker
 
Join Date: May 2016
Location: Philippines!!
Posts: 87
Reputation: 8
Default Re: Bar Betting system [Unique]

oh lol sec.
SeanDenZYR is offline   Reply With Quote
Old 03/06/2017, 11:44 AM   #4
Dice_
Huge Clucker
 
Dice_'s Avatar
 
Join Date: Sep 2015
Location: Indonesia
Posts: 409
Reputation: 48
Default Re: Bar Betting system [Unique]

Nothing special or unique.
1 star.
__________________
quit
Dice_ is offline   Reply With Quote
Old 03/06/2017, 01:00 PM   #5
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,316
Reputation: 1171
Default Re: Bar Betting system [Unique]

Quote:
Originally Posted by Dice_ View Post
Nothing special or unique.
1 star.
It is horrible, so much repeat code this could be written in less than 200 lines of code easily.
Pottus is offline   Reply With Quote
Old 03/06/2017, 01:08 PM   #6
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,473
Reputation: 120
Default Re: Bar Betting system [Unique]

Quote:
Originally Posted by Dice_ View Post
Nothing special or unique.
1 star.
Quote:
Originally Posted by Pottus View Post
It is horrible, so much repeat code this could be written in less than 200 lines of code easily.
^ Totally agree.

I thought it will be an unique idea with a complex system or stuff like that. No, it's a command with random(6) everywhere without any optimization ..
__________________
What matters isn't to going further, it's the way to get there
Dayrion is online now   Reply With Quote
Old 04/06/2017, 03:04 PM   #7
Bernadeath
Banned
 
Join Date: Jun 2017
Location: Philippines
Posts: 16
Reputation: 8
Default Re: Bar Betting system [Unique]

Pretty nice.
Bernadeath is offline   Reply With Quote
Old 15/06/2017, 02:06 PM   #8
Cyboorg
Big Clucker
 
Cyboorg's Avatar
 
Join Date: May 2017
Location: Kosovo
Posts: 71
Reputation: 3
Default Re: Bar Betting system [Unique]

Not working,i type Bleach,and still if i won i get 2500 if i lose ,i get -2500 !!
Cyboorg is offline   Reply With Quote
Old 29/06/2017, 06:25 PM   #9
Astralis
High-roller
 
Join Date: Sep 2009
Location: France
Posts: 3,115
Reputation: 411
Default Re: Bar Betting system [Unique]

Quote:
Originally Posted by Dice_ View Post
Nothing special or unique.
1 star.
I however like the idea of this bar betting system.
__________________
http://samp4you.com
Hosted Tab 25/mo || 100 Slots 5,50/mo
Astralis 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
Football betting system texas63633 Scripting Help 1 23/08/2016 09:03 PM
Betting system JasonTurkey Scripting Help 10 15/11/2013 05:03 AM
betting system Boss201 Scripting Help 4 29/10/2013 12:51 PM
A Betting system/Casino type system? GrantLea Help Archive 1 12/12/2010 08:42 PM
[FilterScript] [FS]Betting System v2 Krearon Filterscripts 17 09/08/2010 04:37 PM


All times are GMT. The time now is 07:06 PM.


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