Raised This Month: $51 Target: $400
 12% 

[CS:S] Blackjack (Version 1.0) - Play blackjack while waiting for respawn!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Plugin ID:
2528
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    A menu minigame to earn money and to kill time.
    Old 08-31-2011 , 02:31   [CS:S] Blackjack (Version 1.0) - Play blackjack while waiting for respawn!
    Reply With Quote #1

    Blackjack

    Play your favourite casino game ingame! This is a blackjack implementation using the most common rules. Only hit, stay and doubling the bet is allowed (no split and insurances).
    Ever got bored when dead and waiting for the round to end? Now you're able to make some money playing blackjack - just needs some luck
    This plugin is based off sega74rus' eventscript version, but improved to apply the rules more strictly. Can't stress this enough - this guy does some great plugins!

    Currently this is only 1 player against the dealer. No multiplayer yet

    Player Commands:
    • sm_bj - Opens the blackjack game.
    • sm_blackjack - Alias
    • sm_bjhelp - Displays the blackjack help and settings.
    Players may set the game to show automatically on death and hide on spawn in their !bjhelp menu. If clientprefs is running, the decicion is saved and restored on rejoin.



    Rules:
    You are dealt an initial two card hand with the option of drawing cards to bring the total value to 21 or less without exceeding it, so that the dealer will lose by having a lesser hand than the player or by exceeding 21.
    If you've a value of 21 with only your first 2 cards you've got an blackjack and always win; except if the dealer has a blackjack too.
    If you exceed 21 you "overbuyed" (busted) yourself and lose. If both players have less than 21 points, the one closer to 21 wins. If both have the same value, it's a draw, except one has a blackjack and the other one just has 21 with more than 2 cards.

    You've got 3 options ingame after placing your bet:
    • Hit: Draw another card.
    • Stay: Stay with your current cards and let the dealer start to draw cards.
    • Double: Double your current bet, draw one last card and stay.
    Number-cards count as their natural value; the pictures count as 10; aces are valued as either 1 or 11 according to the player's best interest.
    So if you have an ace on your hand and e.g. a 2 you'll see two possible values as "3/13".
    Note that the dealer has to draw a card if he's less than 17 points and stops to draw if he reaches 17. He also has to count the ace as 11 if he wouldn't exceed 21 by doing so.

    You win 3x your bet with a blackjack, 2x if you win and 1x on a draw. You will only lose your bet if you fail.

    ConVars:
    • sm_blackjack_version - ...
    • sm_blackjack_maxbet - Set the maximal amount of money a player is able to bet per game. (Default: 5000)
    • sm_blackjack_advertondeath - Show an advert on death, if player didn't play already? (Default: 1)

    Did you see...:

    Attached Images
    File Type: jpg blackjackgamepanel.jpg (27.7 KB, 2120 views)
    Attached Files
    File Type: sp Get Plugin or Get Source (blackjack.sp - 3048 views - 25.3 KB)
    __________________

    Last edited by Peace-Maker; 09-27-2016 at 18:17. Reason: Upload new screenshot
    Peace-Maker is offline
     



    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

    Forum Jump


    All times are GMT -4. The time now is 07:37.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode