Posts: 33
Threads: 11
Joined: Oct 2013
Reputation:
0
hi guys i wanted to make a gambling system like
Player is inside a casino infront of a object id lets say object id 3221
Then he goes infront of object id 3221 and use /lottery
it will ask him for money to bet with Dialog .
If he bets the money, then the player gets frozen for few seconds.
Then if he wins it'll give him the double money he betted if he loose he looses the money he bet on at.
I'd like this to be completely luck wise and very difficult to earn so.
I dont want player to bet more than 50k
Posts: 1,233
Threads: 269
Joined: Oct 2008
Reputation:
0
Use checkpoint or pickup in front of that object make if player step there he is able to use lottery command and make win / loose on random, add more loose messages than win messages + money, so there will be more chances for loose than win :P this should work in my logic hah :P
Posts: 33
Threads: 11
Joined: Oct 2013
Reputation:
0
What I mean was like
I map an ATM and use that as a lottery ticket
So I place ATM from map editor if people step infront of ATM he can use /lottery
also can someone help me make lottery function like
people bet the money and if he won he get the double money he betted if he loose he looses the money.
Thelottery would work like this
1. Infront of ATM when he does /gamble There is dialog for the number he wants to pick
2.then Another dialog right after number picking called "Money you want to bet"
3.Then once he hit subit button he gets frozen for 4 secconds with textdraw on his skin "Spinning"
4.then a number function if the number get picked match he wins the double amount of money he bet
5.if he looses then he loose the money he bet.
Posts: 280
Threads: 34
Joined: Aug 2013
Reputation:
0
Uhm Ermin answered your question.
Posts: 33
Threads: 11
Joined: Oct 2013
Reputation:
0
Please transform if/else to switch/case because it crhases my compiler
Posts: 33
Threads: 11
Joined: Oct 2013
Reputation:
0
ty ermin
it worked but i wanted like
to show "Spinning" - When player sumbits the number/money spinning for 5 seconds then the result
also i made 20k - 100k the can only bet and if player has low money it shows them "Low amount money cannot gamble!"