Can't some one abuse this command?
|
This is my gamble command. I have updated this since my last gamble command which was quite a while ago and was, A: Messy, B: Not efficient, C: Not worthy of a release, But this time! This time i have revamped it and made it more efficient but it still probably quite messy so feel free to compact it with this one you can now gamble custom amount and it features a server announcment when someone wins over a certain amount which is changable with an int, note this was 100% made by me and you can use all you want idc lol, Example use ::gamblex 5000
I was gonna make this into a seperate class and use something like a tax bag for it but i wanted to get a release out quickly
Enjoy and happy gambling, NOTE: you can incorporate this into a dice bag if you have a later revision of PI, mines only 317
Heres an image
Spoiler for Code:
- S C A P E (Oscar)
Can't some one abuse this command?
Just a quick note, don't use names like ssss. Use names with a meaning. You should look at a variable name and it should be clear to everyone who is reading what that variable is for.
You could have done much better
https://gyazo.com/02db76365d5f4336aa43304dfab43b91
Tip for future stuff to look more professional
Use variable names that make sense so anyone else reading the code can just look at the name and (hopefully) correctly infer what the variable is going to be used for.
Instead of
I would personally do thisCode:"You rolled a :"+roll >>> You rolled a :81
Reasons:Code:"You have rolled: "+roll >>> You have rolled: 81
- It would look better to do "have rolled: " compared to "rolled a :" because "rolled a :" has some grammatical consequences (you rolled a eighty one) vs (you have rolled eighty one).
- Generally I think it's better to look at ": value" than " :value" because it has some separation and adds clarity
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |