daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     prefix : &c[&4Stats&c]
  3.    
  4. on join:
  5.     if {kills.%player%} is not set:
  6.         set {kills.%player%} to 0
  7.     if {deaths.%player%} is not set:
  8.         set {deaths.%player%} to 0
  9.  
  10.  
  11. command /stats [<Text>]:
  12.     trigger:
  13.         if arg 1 is not set:
  14.             if {kills.%player%} is 0:
  15.                 send "{@prefix} Kills: 0" to player
  16.                 stop trigger
  17.             else:
  18.                 send "{@prefix} Kills: %{kills.%player%}%" to player
  19.             if {deaths.%player%} is 0:
  20.                 send "{@prefix} Deaths: 0" to player
  21.                 stop trigger
  22.             else:
  23.                 send "{@prefix} Deaths:% {deaths.%player%}%" to player
  24.                 stop trigger
  25.         else:
  26.             send "{@prefix} Kills: %{kills.%arg 1%}%" to player
  27.             send "{@prefix} Deaths: %{deaths.%arg 1%}%" to player
  28.             stop trigger
  29.            
  30. on death:
  31.     victim is a player
  32.     set {kills.%attacker%} to {kills.%attacker%}+1
  33.     set {deaths.%player%} to {deaths.%player%}+1
  34.     stop trigger
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top