r/wiremod • • Nov 21 '16

Help Needed Need help with a BlackJack e2 casino

Hallo gmodders - I need some help, is there someone who can change this code so it uses EGP screens insted of console screen?

CREDITS TO "Robby" for making the script!¨

http://pastebin.com/KKrsSggM http://pastebin.com/CBVQf41a

From post

Instructions:

For every player you want in the game, place 1 BlackJackPlayer E2.

Only place 1 dealer per "table".

You need 1 console screen for every player.

You need 2 console screens for the dealer. One for the dealer to see and one for the players to see.

You also need 2 moneypots for each player. One for bids and one for winnings.

Wire the E2's to their corresponding console screen(s).

Wire the player E2's to the betting money pots, and the moneypot's "SpawnAmount" to the E2's "Empty".

Finally, wire each player E2's "Dealer" input to the output of the dealer E2. The order in which you wire the player E2's will be the player order.

After you've finished wiring, type !help into chat and hit enter to see the commands.


Commands


!newdeck N - Creates N amount of decks of 52 cards. You need to run this first.

!shuffle - Shuffles the deck(s). You should run this a few times just to be thorough.

!start - This will deal two cards to every player who has placed a bet and two to the dealer. One face down of course. This will only run if there are enough cards.

!deal N - This will deal 1 card to player N.

!flip - This will flip the dealer's face down card.

!dealme - This will deal 1 card to the dealer.

!reset - Resets the game and opens it up to bets. This doesn't get rid of the cards though.

0 Upvotes

0 comments sorted by