[SK] MCSG Bounty

Darkkandadr

❌⚖❌ Everybody knows the good guys lost...
Emektar Üye
En iyi cevaplar
0
Kod:
#Bounty Skript
#Coded ßy xLastPunch

on first login:
    set {bounty.%player%} to 100
   
on chat:
    if {bounty.%player%} less than 1:
        set {bounty.%player%} to 10
        stop
    set the player's display name to "&8[&6%{bounty.%player%}%&8]%player's display name%"
   
on death:
    victim is a player
    attacker is a player
    if {bounty.%victim%} less than 1:
        set {bounty.%victim%} to 10
        stop
    set {_gelenbounty} to {bounty.%victim%} / 7
    add {_gelenbounty} to {bounty.%attacker%}
    remove {_gelenbounty} from {bounty.%victim%}
    send "&2You killed &7%victim% &2and you gained &7%{_gelenbounty}% &2bounty." to attacker
    send "&2You death &7%attacker% and you lost &7{_gelenbounty} &2bounty." to victim
   
   
command /bounty [<player>] [<int>]:
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                set {gonderilenbounty.%player%} to "%arg-2%"
                set {gonderilenoyuncu.%player%} to "%arg-1%"
                set {gonderenoyuncu.%player%} to "%player%"
                set {confirmbounty.%player%} to true
                send "&2Please use &7/confirmbounty &2command." to player
               
               
               
command /confirmbounty:
    trigger:
        if {confirmbounty.%player%} is true:
            set {confirmbounty.%player%} to false
            add {gonderilenbounty.%player%} to {bounty.%{gonderilenoyuncu.%player%}%}
            remove {gonderilenbounty.%player%} from {bounty.%{gonderenoyuncu.%player%}%}
            send "&7%player% &2send &7{gonderilenbounty.%player%} &2bounty." to {gonderilenoyuncu.%player%}
            send "&2You sended &7%{gonderilenbounty.%player%}% &2bounty from &7%{gonderilenoyuncu.%player%}%" to player
            delete {gonderilenbounty.%player%}
            delete {gonderilenoyuncu.%player%}
            delete {gonderenoyuncu.%player%}
 
Üst