Stats Skript

xEmir_WalkingPVP

Ağaç Yumruklayıcı
En iyi cevaplar
0
Bu işlerde pek iyi değilim biraz deneme yapıyım dedim böyle bir stats skript i yazdım ingilizcedir kod çünkü serverım yabancı server o yüzden ingilizce tercih ettim siz değiştirebilirsiniz, eğer yaptığım bir şeyi yapmanın daha kolay bir yolu varsa söylerseniz sevinirim benim bilmediğim çok şey var :)
Kod:
on death:
    add 1 to {kills.%attacker%}
    add 1 to {deaths.%victim%}

on join:
    add 1 to {online.%player%}

command /stats:
    trigger:
        if {kills.%player%} is not set:
            send "&8[&cServer&8] &6Your Kills&7: &c0"
        else:
            send "&8[&cServer&8] &6Your Kills&7: &c%{kills.%player%}%"
        if {deaths.%player%} is not set:
            send "&8[&cServer&8] &6Your Deaths&7: &c0"
            send "&8[&cServer&8] &6You joined total of&7: &c%{online.%player%}%&6 times"
        else:
            send "&8[&cServer&8] &6Your Deaths&7: &c%{deaths.%player%}%"
            send "&8[&cServer&8] &6You joined total of&7: &c%{online.%player%}%&6 times"
 

SerhatGundogdu

Zombi Katili
En iyi cevaplar
0
şöle yap
on join:
if {deaths.%player%} is not set:
set {deaths.%player%} to 0

yap

on death:
add 1 to {kills.%attacker%}
add 1 to {deaths.%victim%}

on join:
add 1 to {online.%player%}
if {kills.%player%} is not set:
set {kills.%player%} to 0
if {deaths.%player%} is not set:
set {deaths.%player%} to 0

command /sstats <offlineplayer>:
trigger:
if arg 1 is set:
send "&8[&cServer&8] &6Your Kills&7: &c%{kills.%player%}%"
send "&8[&cServer&8] &6Your Deaths&7: &c%{deaths.%player%}%"
send "&8[&cServer&8] &6Your joined total of&7: &c%{online.%player%}%&6 times"


kodu ayarladım c:
 

xEmir_WalkingPVP

Ağaç Yumruklayıcı
En iyi cevaplar
0
şöle yap
on join:
if {deaths.%player%} is not set:
set {deaths.%player%} to 0

yap

on death:
add 1 to {kills.%attacker%}
add 1 to {deaths.%victim%}

on join:
add 1 to {online.%player%}
if {kills.%player%} is not set:
set {kills.%player%} to 0
if {deaths.%player%} is not set:
set {deaths.%player%} to 0

command /sstats <offlineplayer>:
trigger:
if arg 1 is set:
send "&8[&cServer&8] &6Your Kills&7: &c%{kills.%player%}%"
send "&8[&cServer&8] &6Your Deaths&7: &c%{deaths.%player%}%"
send "&8[&cServer&8] &6Your joined total of&7: &c%{online.%player%}%&6 times"


kodu ayarladım c:
Teşekkürler
 

Gavatos

Demir Madencisi
En iyi cevaplar
3
Bu daha iyi olabilir;
PHP:
on death of player:
    attacker is player
    add 1 to {kill.%attacker%}
    add 1 to {death.%victim%}

on login:
    add 1 to {join.%player%}
    if {kill.%player%} isn't set:
        set {kill.%player%} to 0
    if {death.%player%} isn't set:
        set {death.%player%} to 0

command /stats [<offlineplayer>]:
    trigger:
        arg 1 is not set:
            send "&eYou Log in Total: &b%{join.%player%}%" to player
            send "&eYour Killed: &b%{kill.%player%}%" to player
            send "&eYour Death: &b%{death.%player%}%" to player
        else:
            send "%arg 1%'s Log in Total: &b%{join.%arg%}%" to player
            send "%arg 1%'s Killed: &b%{join.%arg%}%" to player
            send "%arg 1%'s Death: &b%{join.%arg%}%" to player
 
Üst