on money transfer

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Hey mynameisjosep,

I believe that what you ask for is not possible. However, what plugin is it that you are expecting to trigger this event?

If it is essentials, have you checked the config to see if there is a way to put a minimum amount of money that a player can pay?

Also if this is to do with /pay you could try:
Code:
on command:
  full command contains "pay 10"
  cancel event

Hopefully this helps!
 
Hey mynameisjosep,

I believe that what you ask for is not possible. However, what plugin is it that you are expecting to trigger this event?

If it is essentials, have you checked the config to see if there is a way to put a minimum amount of money that a player can pay?

Also if this is to do with /pay you could try:
Code:
on command:
  full command contains "pay 10"
  cancel event

Hopefully this helps!
if he didn't has 10 money ?
 
There is a question... if you're using a third party plugin it should have already been done and you do not need to worry about it.
If you have your own plugin in Skript, try to edit the /pay command:
Code:
if {yourmoneyvariable::%player%} < arg-x:
    send "You don't have enough money!"
    stop
I've put arg-x cause I don't know which argument the integer or number is.
 
There is a question... if you're using a third party plugin it should have already been done and you do not need to worry about it.
If you have your own plugin in Skript, try to edit the /pay command:
Code:
if {yourmoneyvariable::%player%} < arg-x:
    send "You don't have enough money!"
    stop
I've put arg-x cause I don't know which argument the integer or number is.
i didnt mean it i mean on succesfully money transfer.
 
Code:
on command "/pay":
    set {_vars} to arguments
    set {_variables::*} to {_vars} split at " "
    set {_money} to placeholder "YOUR_MONEY_PLACEHOLDER" from player
    set {_paid} to {_variables::2} parsed as number #if you're using /pay <player> <amount>
    if size of {_variables::*} != 2:
        cancel event
        send "&cUse: /pay <player> <amount>"
        stop
    if {_paid} > 0:
        #continue
    else:
        cancel event
        send "&cYou wrongly used argument 2." #can detect if player has used a text instead of number
        stop
    if {_money} < {_paid}:
        cancel event
        send "&cYou don't have enough money!"
    else:
        send "&aDone!" #Just for testing purposes
It should remind you of an empty configuration section but don't mind it.
Also I think you need Ersatz or Skellett for placeholders: https://docs.skunity.com/syntax/search/placeholder
 
Code:
on command "/pay":
    set {_vars} to arguments
    set {_variables::*} to {_vars} split at " "
    set {_money} to placeholder "YOUR_MONEY_PLACEHOLDER" from player
    set {_paid} to {_variables::2} parsed as number #if you're using /pay <player> <amount>
    if size of {_variables::*} != 2:
        cancel event
        send "&cUse: /pay <player> <amount>"
        stop
    if {_paid} > 0:
        #continue
    else:
        cancel event
        send "&cYou wrongly used argument 2." #can detect if player has used a text instead of number
        stop
    if {_money} < {_paid}:
        cancel event
        send "&cYou don't have enough money!"
    else:
        send "&aDone!" #Just for testing purposes
It should remind you of an empty configuration section but don't mind it.
Also I think you need Ersatz or Skellett for placeholders: https://docs.skunity.com/syntax/search/placeholder
thank you but i need help at this thread = https://forums.skunity.com/threads/how-to-use-variables-on-wait-gg-second.11883/#post-50913
 
Status
Not open for further replies.