SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Screenshots and Videos

Reply
 
Thread Tools Display Modes
Old 20/04/2017, 02:55 AM   #1
Dignity
High-roller
 
Join Date: May 2013
Location: Belgium
Posts: 1,790
Reputation: 948
Default Simple Blackjack Framework [WILD WEST SERVER]

Hello,

Ever since launching I've wanted a card game of my own. Since I don't really know how to play poker (and can't be assed to learn because of the many different hands you can have), someone suggested a blackjack script to me which I've now developed into a fully working framework.

Basically, this is what it does:

-> Allows for blackjack game creation & deletion (auto-deleted when the dealer quits or relogs)
-> Players can be invited into a game and can leave at will, the script cleans up properly after them
-> In a new game, a player has to ready up before the dealer can deal. This is a small security layer.
-> Hit and stick possibility, a player has to make a decision before the dealer can /deal new cards.
-> If someone gets over 21 in the first deal only, they get another chance and automatically get 2 new cards
-> After the first deal's protection is over, if someone gets over 21, they can't play anymore.
-> Someone who lost can't do any blackjack commands anymore other than /leave. They can stay and watch, though
-> Your old cards are remembered for you personally, below the deck. The cards shift 1 per deal (i.e. card 1 shifts to card 2, old card 2 is put into reserves)
-> Very simple GUI, probably can be improved but I like the sluggish design of it.

Tables will be created dynamically (which is a work in progress as of posting this thread), and business owners who "own" a table can grant non-saving permissions to a player to deal. Bets are handled in characterly and not scriptwise. There is code for automatic bets in place, but the community voted for it to be IC.

Also, it's a bit spammy right now. I'll work on improving that in the future.


click on the picture to watch the video
__________________

Click on the logo to join our Discord

Stay up to date with our progress: http://ww-rp.net/
Dignity is offline   Reply With Quote
Old 21/04/2017, 07:22 PM   #2
SelfiMaster
Little Clucker
 
Join Date: Apr 2016
Posts: 13
Reputation: 0
Default Re: Simple Blackjack Framework [WILD WEST SERVER]

I love it. I'll be addicted if I see something like this in-game.
SelfiMaster is offline   Reply With Quote
Old 22/04/2017, 01:34 AM   #3
ReyoDahBoss
Big Clucker
 
ReyoDahBoss's Avatar
 
Join Date: Jun 2014
Location: Kompot
Posts: 71
Reputation: 68
Default Re: Simple Blackjack Framework [WILD WEST SERVER]

Quote:
Originally Posted by SelfiMaster View Post
I love it. I'll be addicted if I see something like this in-game.
@SelfiMaster, you sure will be surprised when you run into a poker night in a bar when the finished product is here.
__________________


Click on the logo to join our Discord

Stay up to date with our progress: http://ww-rp.net/


ENTERTAINER | MAPPER | ORIGINAL SUPPORTER FOR KOMPOT
FOLLOW REYO ON YOUTUBE
ReyoDahBoss is offline   Reply With Quote
Old 22/04/2017, 01:11 PM   #4
OsteeN
Big Clucker
 
Join Date: Dec 2012
Location: Sweden
Posts: 96
Reputation: 14
Default Re: Simple Blackjack Framework [WILD WEST SERVER]

Quote:
Originally Posted by Dignity View Post
Hello,

-> If someone gets over 21 in the first deal only, they get another chance and automatically get 2 new cards
How is that even possible?
OsteeN is offline   Reply With Quote
Old 22/04/2017, 03:07 PM   #5
Dignity
High-roller
 
Join Date: May 2013
Location: Belgium
Posts: 1,790
Reputation: 948
Default Re: Simple Blackjack Framework [WILD WEST SERVER]

Quote:
Originally Posted by OsteeN View Post
How is that even possible?
It's not in the original game but I've added it to avoid bitching in my server, especially with high entry bets.

I should also mention that their previous total gets cleared. The first dealed cards just get "forgotten"
__________________

Click on the logo to join our Discord

Stay up to date with our progress: http://ww-rp.net/
Dignity is offline   Reply With Quote
Old 24/04/2017, 03:06 PM   #6
OsteeN
Big Clucker
 
Join Date: Dec 2012
Location: Sweden
Posts: 96
Reputation: 14
Default Re: Simple Blackjack Framework [WILD WEST SERVER]

Quote:
Originally Posted by Dignity View Post
It's not in the original game but I've added it to avoid bitching in my server, especially with high entry bets.

I should also mention that their previous total gets cleared. The first dealed cards just get "forgotten"
What I meant was, how is it even possible for the player to get over 21 from 2 cards?
OsteeN is offline   Reply With Quote
Old 24/04/2017, 04:39 PM   #7
Dignity
High-roller
 
Join Date: May 2013
Location: Belgium
Posts: 1,790
Reputation: 948
Default Re: Simple Blackjack Framework [WILD WEST SERVER]

Quote:
Originally Posted by OsteeN View Post
What I meant was, how is it even possible for the player to get over 21 from 2 cards?
We are playing by the values linked to GTA cards, so king = 13, queen = 12, jack = 11. No reason for this other than when I converted the sprites to arrays I used the info provided by sprites.

I could set the cards in question to 10, but it doesn't really matter imo.
__________________

Click on the logo to join our Discord

Stay up to date with our progress: http://ww-rp.net/
Dignity is offline   Reply With Quote
Old 16/05/2017, 10:40 PM   #8
SelfiMaster
Little Clucker
 
Join Date: Apr 2016
Posts: 13
Reputation: 0
Default Re: Simple Blackjack Framework [WILD WEST SERVER]

Quote:
Originally Posted by ReyoDahBoss View Post
@SelfiMaster, you sure will be surprised when you run into a poker night in a bar when the finished product is here.
Can't wait for that, really soon we'll be able to play it.
SelfiMaster is offline   Reply With Quote
Old 16/05/2017, 11:26 PM   #9
Sew_Sumi
High-roller
 
Join Date: Jun 2008
Posts: 4,469
Reputation: 263
Default Re: Simple Blackjack Framework [WILD WEST SERVER]

Quote:
Originally Posted by Dignity View Post
We are playing by the values linked to GTA cards, so king = 13, queen = 12, jack = 11. No reason for this other than when I converted the sprites to arrays I used the info provided by sprites.

I could set the cards in question to 10, but it doesn't really matter imo.
In the game K Q J are 10... A is 11 or 1. Same rules for real life Blackjack.
Sew_Sumi is online now   Reply With Quote
Old 17/05/2017, 01:11 AM   #10
BR3TT
Big Clucker
 
Join Date: Sep 2012
Location: Australia
Posts: 110
Reputation: 14
Default Re: Simple Blackjack Framework [WILD WEST SERVER]

Quote:
Originally Posted by Dignity View Post
We are playing by the values linked to GTA cards, so king = 13, queen = 12, jack = 11. No reason for this other than when I converted the sprites to arrays I used the info provided by sprites.

I could set the cards in question to 10, but it doesn't really matter imo.
For a more realistic experience, it would matter to make these values 10 otherwise it's just Blackjack with a twist I guess. Normal blackjack 'strategies' would no longer apply to this game as well which might put off people who enjoy the game.
BR3TT 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
[WILD WEST SERVER] Wildlife AI preview Dignity Screenshots and Videos 14 13/11/2016 05:39 PM
[WILD WEST SERVER] Website preview Dignity Screenshots and Videos 13 22/10/2016 03:43 PM
[WILD WEST SERVER] Las Barrancas Dignity Screenshots and Videos 2 17/10/2016 07:31 PM
Wild West server? Fmfan Everything and Nothing 6 06/03/2012 01:39 PM


All times are GMT. The time now is 05:27 PM.


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