Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Donation Code Improvement
- @inputs EGP:wirelink User:entity
- @outputs
- @persist Amount Donations A
- @trigger
- if( Amount >= 35000 ){ #Chance this number to the max donation.
- Amount = 35000 #Chance this number to the same as above.
- }
- interval(100)
- Cursor = EGP:egpCursor(User) #Defines
- function number button(Num){
- return inrange(Cursor,EGP:egpPos(Num),EGP:egpPos(Num) + EGP:egpSize(Num)) #Function for buttons
- }
- EGP:egpDrawTopLeft(1)
- EGP:egpRoundedBox(1,vec2(50,50),vec2(400,100))
- EGP:egpColor(1,vec(24,16,229))
- EGP:egpDrawTopLeft(2)
- EGP:egpRoundedBox(2,vec2(50,350),vec2(400,100))
- EGP:egpColor(2,vec(198,209,46))
- EGP:egpDrawTopLeft(3)
- EGP:egpRoundedBox(3,vec2(50,175),vec2(400,150))
- EGP:egpColor(3,vec(22,213,28))
- EGP:egpText(4, "Donation EGP made by SulfurTrash", vec2(70, 85))
- EGP:egpSize(4, 24)
- EGP:egpText(5, "Amount of Donation: $" + Amount + "", vec2(80,210))
- EGP:egpSize(5, 30)
- EGP:egpDrawTopLeft(6)
- EGP:egpRoundedBox(6,vec2(100,265),vec2(50,50))
- EGP:egpColor(6,vec(255,0,0))
- EGP:egpDrawTopLeft(7)
- EGP:egpRoundedBox(7,vec2(350,265),vec2(50,50))
- EGP:egpColor(7,vec(0,100,0))
- EGP:egpDrawTopLeft(8)
- EGP:egpRoundedBox(8,vec2(175,265),vec2(150,50))
- EGP:egpText(9, "Total Donations: $" + Donations + "", vec2(120,380))
- EGP:egpSize(9,30)
- if(button(6)){
- Amount -= 500
- }
- if(button(7)){
- Amount += 500
- }
- if(button(8)){
- moneyRequest(User, Amount, "SulfurTrash'es Donation Code")
- }
- if(moneyNoClk()){
- Amount = 0
- }
- if(moneyClk()){
- Donations +=Amount
- A = 1
- }
- if (clk("a")) {A = 0}
- if (clk("a2")) {Amount = 0}
- if (A == 1)
- {
- timer("a",1000)
- timer("a2",1000)
- }
- if( Amount <= 0 ){
- Amount = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement