Fully complete. It doesn’t give you any money, or take any away. If you want to add this to your RP servers then you must code in the functions that do so inside Win() and Lost()
It’s only single player, you vs the dealer.
Description:
BlackJack uses pakastin’s ‘deck-of-cards’ to create a black jack table!
I have tested this a bit, everything seems to be working. Let me know if there is any bugs I will try to fix them when I can!
Keys:
G = Find the black B on the map (At the casino) walk up and
Escape = Press twice to exit BlackJack
How-To:
Goto the marker, press G
Play BlackJack. You will not gain or loose money unless you have codded in what ever function is needed to remove and gain money. There is a Win() and Lose() function where you can do so.
I don’t use a framework, I believe there is more than one so I didn’t pick one and leave the other one out. It shouldn’t be that hard to put something inside Win() and Lost() they are called when you win and lose.
Something like
this.Win = function() {
// Do Something With .bet
SomeObject.giveMoney(self.bet);
self.bet = 0;
self.myTurn = true;
}
this.Lost = function() {
// Do Something With .bet
SomeObject.giveMoney(-self.bet);
self.bet = 0;
self.myTurn = true;
}
I was having problems getting locked out of the game at some points. canEscape should be false when you are playing a round so that you can’t rage quit (And not loose money). I didn’t finish it tho, I keep getting locked out when testing so I made it twice to get past it for now.
How can i add coordonnes plz ? i can see this :
this.Markers = [[930.031, -953.270, 44.38]]; // [0,1,2]
this.Locations = [[930.031, -953.270, 44.38]];// [0,1,2]
But i dont know how add more, can you help me plz ?
thank you