daily pastebin goal
56%
SHARE
TWEET

pc

noftaly Feb 13th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on join:
  2.     set {pc.min.last.%player%} to 0
  3.     set {pc.min.afk.last.%player%} to 0
  4.     while player is online:
  5.         loop 1 times:
  6.             if {pc.afk.%player%} is true: # Même quand c'est faux ca s'active
  7.                 add 1 to {pc.min.afk.%player%}
  8.                 add 1 to {pc.min.afk.last.%player%}
  9.             else:
  10.                 add 1 to {pc.min.%player%}
  11.                 add 1 to {pc.min.last.%player%}
  12.             add 1 to {pc.pt.eval.%player%}                          # Ya un
  13.             #message "%{pc.pt.eval.%player%}%"                      # Problème
  14.             if {pc.maxpt.%player%} < {pc.pt.eval.%player%}:         # Quelque part
  15.                 set {pc.maxpt.%player%} to {pc.pt.eval.%player%}    # ici
  16.             wait 60 seconds # Ca attend tout sauf 60 seconds.
  17.  
  18. on join:
  19.     if {pc.first.%player%} is not set:
  20.         set {pc.first.%player%} to now
  21.         set {pc.maxpt.%player%} to 0
  22.         set {pc.minpt.%player%} to 0
  23.  
  24. on quit:
  25.     if {pc.minpt.%player%} > {pc.pt.eval.%player%}:
  26.         set {pc.minpt.%player%} to {pc.pt.eval.%player%}
  27.     clear {pc.pt.eval.%player%}
  28.  
  29. command /cop [<offline player=%player%>]:
  30.     trigger:
  31.         if player has permission "playerconnection.seetime":
  32.             set {_max} to {pc.maxpt.%arg-1%}
  33.             set {_min} to {pc.minpt.%arg-1%}
  34.             message "{@Prefix} {@MaxPlayTime}"
  35.             message "{@Prefix} {@MinPlayTime}"
  36.  
  37. on afk toggle: # Tout ca fonctionne \/ \/
  38.     wait 1 second
  39.     if player is afk:
  40.         set {pc.afk.%player%} to true
  41.     else:
  42.         set {pc.afk.%player%} to false
  43.         add {pc.min.afk.last.%player%} to {pc.av.min.afk::*}
  44.     #message "toggled : AFK: %{pc.afk.%player%}%"
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