Faction skript bank funciton

  • 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 community!

    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.

Willhelm.42

Member
Nov 13, 2022
4
0
1
This skript doesn't work please help for me! I don't understand it... :emoji_frowning:

command /factionmoney [<text>] [<text>] [<text>]:
trigger:
if {frakció.%player%} isn't "{@none}":
if arg-1 is not set:
if {frakció.%player%} = "{@pd}":
send "&bPolice's balance is: &a%{$.pd}%&$." to player
if {frakció.%player%} = "{@ams":
send "&bAms's balance is: &a%{$.omsz}%&a$." to player
if arg-1 is "withdraw":
if {leader.%player%} = "true":
if {frakció.%player%} = "{@pd}":
if {$.pd} >= arg-2:
remove arg-2 from {$.pd}
execute console command "/eco give %player% %arg-2%"
send "&aSucess: %arg-2% forintot a frakció kasszából!" to player
if arg-1 is "deposit":
if arg-2 isn't set:
send "&cplease give a number!" to player
if arg-2 is set:
set {fraki.penzberak.%player%} to arg-2
if player's balance >= arg-2:
if {frakció.%player%} = "{@pd}":
execute console command "/eco take %player% %{fraki.penzberak.%player%}%"
add {fraki.penzberak.%player%} to {$.pd}
send "&asucess palyment:&e %{fraki.penzberak.%player%}% $" to player
clear {fraki.penzberak.%player%}
 
Status
Not open for further replies.