-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcasino.sqf
49 lines (45 loc) · 1.88 KB
/
casino.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
_machine = _this select 0;
_gambler = _this select 1;
_art = ((_this select 3) select 0);
_dollarz = 'dollarz' call INV_GetItemAmount;
_winner = floor(random 500);
if(_art == "slotmachine") then {
if (_dollarz < 2000) exitwith {hintSilent "You do not have enough money to play!"};
['dollarz', -2000] call INV_AddInventoryItem;
if ((_winner >= 465) && !(_winner <= 7)) then {
hintSilent "Congratulations you have won the jackpot of $10000";
['dollarz', 10000] call INV_AddInventoryItem;
};
if ((_winner < 465) && (_winner > 7)) then {
hintSilent "Unlucky you have not won this time please try again";
};
if ((_winner <= 7) && (_winner > 2)) then {
hintSilent "Congratulations you have won the Super Jackpot of $50000";
['dollarz', 50000] call INV_AddInventoryItem;
};
if (_winner <= 2) then {
hintSilent "Congratulations you have won the Mega Jackpot of $100000";
(format['server globalchat "%1 has won the Mega Jackpot of $100000!!";',name _gambler]) call toClients;
['dollarz', 100000] call INV_AddInventoryItem;
};
};
if(_art == "slotmachineb") then {
if (_dollarz < 100) exitwith {hintSilent "You do not have enough money to play!"};
['dollarz', -100] call INV_AddInventoryItem;
if ((_winner >= 465) && !(_winner <= 7)) then {
hintSilent "Congratulations you have won the jackpot of $750";
['dollarz', 750] call INV_AddInventoryItem;
};
if ((_winner < 465) && (_winner > 7)) then {
hintSilent "Unlucky you have not won this time please try again";
};
if ((_winner <= 7) && (_winner > 2)) then {
hintSilent "Congratulations you have won the Super Jackpot of $5000";
['dollarz',5000] call INV_AddInventoryItem;
};
if (_winner <= 2) then {
hintSilent "Congratulations you have won the Mega Jackpot of $10000";
(format['server globalchat "%1 has won the Mega Jackpot of $10000!!";',name _gambler]) call toClients;
['dollarz', 10000] call INV_AddInventoryItem;
};
};