Hello, I am trying to make a jackpot in Expression 2. The code I am using is:
[CODE]@name Jackpot
@inputs
@outputs MoneyInPot MoneyDonated
@persist
@trigger all
runOnChat(1)
if ( chatClk() ) { if (lastSaid():lower():sub(1,5) == "!pot" ) { moneyRequest(owner(),1000,5) MoneyInPot = MoneyDonated } }
runOnChat(1)
if ( owner():lastSaid() == ("!potreset")) { MoneyInPot = 0 }
[/CODE]
I am trying to make it so when someone types !pot (number here) they put that money into a pot. After like 5 minutes the pot will pick a random player and give the pot to them. I also want to take 25% of what they put into the pot for profit. :D Thanks for your help. I don't want the full code I just want help on how to do it!
I don't know if that is possible with e2
[QUOTE=Athods;49781315]I don't know if that is possible with e2[/QUOTE]
People on a server I play do it. Sadly they wont share their knowledge
Search on Mr.Google you probly can find it I will help you :)
[editline]20th February 2016[/editline]
I dont know if you want that but [url]http://pastebin.com/jez9tTUB[/url]
[QUOTE=Athods;49781341]Search on Mr.Google you probly can find it I will help you :)
[editline]20th February 2016[/editline]
I dont know if you want that but [url]http://pastebin.com/jez9tTUB[/url][/QUOTE]
That doesn't work I fixed all the 5 errors and it still wont connect to the screen and the thing wont appear
Does E2 allow you to take money from players now? I have not coded with e2 in so long
[QUOTE=XxLMM13xXx;49783153]Does E2 allow you to take money from players now? I have not coded with e2 in so long[/QUOTE]
With the moneyrequest() addon yes
Sorry, you need to Log In to post a reply to this thread.