FallingSheep

Sheeps Blackjack V2

22 posts in this topic

Hey guys here my ported version of papabears atlis life blackjack

original code - http://www.altisliferpg.com/topic/7532-howto-blackjackreal/

VIDEO COMING SOON!

ok  for it to work correctly you MUST have have this installed first or the poptabs wont save after relog/restart

Update Respect/Poptabs and save to database by @happydayz

 

DOWNLOAD - http://www.mediafire.com/download/b2mb71vu7ru0v77/Scripts.zip

1. Extract scripts.zip  into your mpmission folder

2. open your description.ext and add this to the very bottom

//Blackjack
#include"Scripts\blackjack\blackjack.hpp"

 

4.  you call blackjack using

[] execVM "Scripts\blackjack\fn_blackjack.sqf";

 

example: if your using XM8apps add it like so

//App 1 
_app1Text = "Blackjack";
_app1Logo = "";
app1_action = {
	[] execVM "Scripts\blackjack\fn_blackjack.sqf";
};

you can change the amount of winnings in fn_blackjack.sqf theses are multipliers of the bet so if the player has bet 500 and gets 21 the will win 1000

CONFIGS
//multiplier for getting 21
BJ21 = 2;
//dealer bust
BJDbust = 2;
//draw
BJdraw = 0;
//5 card win
BJ5card = 2;

enjoy gambling away :)

Edited by FallingSheep
fixed bet amounts, added some basic config
2 people like this

Share this post


Link to post
Share on other sites
On 20/01/2016 at 10:59 PM, FallingSheep said:

[] execVM "Scripts\SlotMachine\fn_blackjack.sqf";

[] execVM "Scripts\blackjack\fn_blackjack.sqf";     Right?

Share this post


Link to post
Share on other sites
Advertisement

this 

//App 1 
_app1Text = "Blackjack";
_app1Logo = "";
app1_action = {
	[] execVM "Scripts\SlotMachine\fn_blackjack.sqf";
};

should be 

//App 4 
_app4Text = "Blackjack";
_app4Logo = "";
app4_action = {
	[] execVM "Scripts\blackjack\fn_blackjack.sqf";
};

 

1 person likes this

Share this post


Link to post
Share on other sites
3 hours ago, iJeeves said:

[] execVM "Scripts\blackjack\fn_blackjack.sqf";     Right?

yes i messed up, thats what ya get for copy pasting :)

Share this post


Link to post
Share on other sites

Got a infiSTAR pass for this? ive got the slots and scratchies ones in but this keeps closing on players

Works fine for admins :D

Many Thanks.

Share this post


Link to post
Share on other sites

Read ur files and find the display ID 

 _display = findDisplay 5980; 

try that 

Share this post


Link to post
Share on other sites

 class BlackjackGUI{    
 idd = 5980;

So to be clear thats what infiSTAR is stopping?

 

Sorry only a month into doing this lot so still learning.

Share this post


Link to post
Share on other sites

5980

it will usually say in ur infistar logs what idd its blocking

Share this post


Link to post
Share on other sites
3 minutes ago, Tuna said:

5980

it will usually say in ur infistar logs what idd its blocking

Ah right, wasn't sure where it would so. Again sorry to take up your time. But never learn if i didn't ask ^^

 

Many Thanks.

1 person likes this

Share this post


Link to post
Share on other sites

All good buddy, this forum is a great place to get support. Not everyone will be friendly but some are!

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.