Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- ELOWIN: &6Tu as fais un kill, ton nouveau elo est de
- ELOLOSE: &4Tu t'es fais kill, ton nouveau elo est de
- ELORESET: &cTon elo a été reset
- on join:
- if {elo::%player%} is not set:
- set {elo::%player%} to 1000
- else:
- send ""
- send "&5ELO : &d%{elo::%player%}%"
- send ""
- command /setelo [<player>] [<integer>]:
- usage: &5/setelo <player> <number>
- trigger:
- if player is op:
- if arg 1 is set:
- set {elo::%arg 1%} to arg 2
- send "&5Tu as set les elo de &d%arg 1% &5to &d%arg 2%"
- else:
- send "&5/setelo <player> <number>"
- else:
- send "&cTu n'es pas op."
- command /elo [<player>]:
- trigger:
- if arg 1 is set:
- send ""
- send "&5ELO : &d%{elo::%arg 1%}%"
- send ""
- else:
- send ""
- send "&5ELO : &d%{elo::%player%}%"
- send ""
- command /topelo:
- trigger:
- set {_1st.point} to 0
- set {_2nd.point} to 0
- set {_3rd.point} to 0
- set {_4th.point} to 0
- set {_5th.point} to 0
- set {_6th.point} to 0
- set {_7th.point} to 0
- set {_8th.point} to 0
- set {_9th.point} to 0
- set {_10th.point} to 0
- loop {elo::*}:
- if loop-value is more than {_1st.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- set {_9th} to {_8th}
- set {_9th.point} to {_8th.point}
- set {_8th} to {_7th}
- set {_8th.point} to {_7th.point}
- set {_7th} to {_6th}
- set {_7th.point} to {_6th.point}
- set {_6th} to {_5th}
- set {_6th.point} to {_5th.point}
- set {_5th} to {_4th}
- set {_5th.point} to {_4th.point}
- set {_4th} to {_3rd}
- set {_4th.point} to {_3rd.point}
- set {_3rd} to {_2nd}
- set {_3rd.point} to {_2nd.point}
- set {_2nd} to {_1st}
- set {_2nd.point} to {_1st.point}
- set {_1st} to loop-index
- set {_1st.point} to loop-value
- else if loop-value is more than {_2nd.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- set {_9th} to {_8th}
- set {_9th.point} to {_8th.point}
- set {_8th} to {_7th}
- set {_8th.point} to {_7th.point}
- set {_7th} to {_6th}
- set {_7th.point} to {_6th.point}
- set {_6th} to {_5th}
- set {_6th.point} to {_5th.point}
- set {_5th} to {_4th}
- set {_5th.point} to {_4th.point}
- set {_4th} to {_3rd}
- set {_4th.point} to {_3rd.point}
- set {_3rd} to {_2nd}
- set {_3rd.point} to {_2nd.point}
- set {_2nd} to loop-index
- set {_2nd.point} to loop-value
- else if loop-value is more than {_3rd.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- set {_9th} to {_8th}
- set {_9th.point} to {_8th.point}
- set {_8th} to {_7th}
- set {_8th.point} to {_7th.point}
- set {_7th} to {_6th}
- set {_7th.point} to {_6th.point}
- set {_6th} to {_5th}
- set {_6th.point} to {_5th.point}
- set {_5th} to {_4th}
- set {_5th.point} to {_4th.point}
- set {_4th} to {_3rd}
- set {_4th.point} to {_3rd.point}
- set {_3rd} to loop-index
- set {_3rd.point} to loop-value
- else if loop-value is more than {_4th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- set {_9th} to {_8th}
- set {_9th.point} to {_8th.point}
- set {_8th} to {_7th}
- set {_8th.point} to {_7th.point}
- set {_7th} to {_6th}
- set {_7th.point} to {_6th.point}
- set {_6th} to {_5th}
- set {_6th.point} to {_5th.point}
- set {_5th} to {_4th}
- set {_5th.point} to {_4th.point}
- set {_4th} to loop-index
- set {_4th.point} to loop-value
- else if loop-value is more than {_5th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- set {_9th} to {_8th}
- set {_9th.point} to {_8th.point}
- set {_8th} to {_7th}
- set {_8th.point} to {_7th.point}
- set {_7th} to {_6th}
- set {_7th.point} to {_6th.point}
- set {_6th} to {_5th}
- set {_6th.point} to {_5th.point}
- set {_5th} to loop-index
- set {_5th.point} to loop-value
- else if loop-value is more than {_6th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- set {_9th} to {_8th}
- set {_9th.point} to {_8th.point}
- set {_8th} to {_7th}
- set {_8th.point} to {_7th.point}
- set {_7th} to {_6th}
- set {_7th.point} to {_6th.point}
- set {_6th} to loop-index
- set {_6th.point} to loop-value
- else if loop-value is more than {_7th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- set {_9th} to {_8th}
- set {_9th.point} to {_8th.point}
- set {_8th} to {_7th}
- set {_8th.point} to {_7th.point}
- set {_7th} to loop-index
- set {_7th.point} to loop-value
- else if loop-value is more than {_8th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- set {_9th} to {_8th}
- set {_9th.point} to {_8th.point}
- set {_8th} to loop-index
- set {_8th.point} to loop-value
- else if loop-value is more than {_9th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- set {_9th} to loop-index
- set {_9th.point} to loop-value
- else if loop-value is more than {_10th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- set {_10th} to {_9th}
- set {_10th.point} to {_9th.point}
- else if loop-value is more than {_11th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- set {_11th} to {_10th}
- set {_11th.point} to {_10th.point}
- else if loop-value is more than {_12th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- set {_12th} to {_11th}
- set {_12th.point} to {_11th.point}
- else if loop-value is more than {_13th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- set {_13th} to {_12th}
- set {_13th.point} to {_12th.point}
- else if loop-value is more than {_14th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- set {_14th} to {_13th}
- set {_14th.point} to {_13th.point}
- else if loop-value is more than {_15th.point}:
- set {_15th} to {_14th}
- set {_15th.point} to {_14th.point}
- send "&9&m&l======= &f&e&lTop Elo &9&m&l======="
- send "&e1st : &7%{_1st}% - &c%{_1st.point}% &7elo"
- send "&72nd : &7%{_2nd}% - &c%{_2nd.point}% &7elo"
- send "&63rd : &7%{_3rd}% - &c%{_3rd.point}% &7elo"
- send "&r4th : &7%{_4th}% - &c%{_4th.point}% &7elo"
- send "&r5th : &7%{_5th}% - &c%{_5th.point}% &7elo"
- send "&r6th : &7%{_6th}% - &c%{_6th.point}% &7elo"
- send "&r7th : &7%{_7th}% - &c%{_7th.point}% &7elo"
- send "&r8th : &7%{_8th}% - &c%{_8th.point}% &7elo"
- send "&r9th : &7%{_9th}% - &c%{_9th.point}% &7elo"
- send "&r10th : &7%{_10th}% - &c%{_10th.point}% &7elo"
- send "&r11th : &7%{_11th}% - &c%{_11th.point}% &7elo"
- send "&r12th : &7%{_12th}% - &c%{_12th.point}% &7elo"
- send "&r13th : &7%{_13th}% - &c%{_13th.point}% &7elo"
- send "&r14th : &7%{_14th}% - &c%{_14th.point}% &7elo"
- send "&r15th : &7%{_15th}% - &c%{_15th.point}% &7elo"
- send "&9&m&l======= &f&e&lTop Elo &9&m&l======="
- command /resetelo <player>:
- executable by: console
- trigger:
- if arg 1 is set:
- set {elo::%arg 1%} to 1300
- send "{@ELORESET}" to arg 1
- else:
- send "&5/resetelo <player> !"
- on death:
- attacker is a player
- victim is a player
- if {elo::%attacker%} < {elo::%victim%}:
- set {_elobetwin} to {elo::%victim%}-{elo::%attacker%}
- if {_elobetwin} is between 0 and 24:
- add 16 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+16)" to attacker
- remove 16 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-16)" to victim
- if {_elobetwin} is between 25 and 49:
- add 17 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+17)" to attacker
- remove 17 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-17)" to victim
- if {_elobetwin} is between 50 and 74:
- add 18 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+18)" to attacker
- remove 18 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-18)" to victim
- if {_elobetwin} is between 75 and 99:
- add 19 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+19)" to attacker
- remove 19 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-19)" to victim
- if {_elobetwin} is between 100 and 124:
- add 20 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+20)" to attacker
- remove 20 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-20)" to victim
- if {_elobetwin} is between 125 and 149:
- add 21 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+21)" to attacker
- remove 11 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-21)" to victim
- if {_elobetwin} is between 150 and 174:
- add 21 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+22)" to attacker
- remove 10 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-22)" to victim
- if {_elobetwin} is between 175 and 199:
- add 23 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+23)" to attacker
- remove 9 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-23)" to victim
- if {_elobetwin} is between 200 and 224:
- add 23 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+24)" to attacker
- remove 8 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-24)" to victim
- if {_elobetwin} is between 225 and 249:
- add 25 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+25)" to attacker
- remove 25 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-25)" to victim
- if {_elobetwin} is between 250 and 274:
- add 26 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+26)" to attacker
- remove 26 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-26)" to victim
- if {_elobetwin} is between 275 and 299:
- add 27 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+27)" to attacker
- remove 27 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-27)" to victim
- if {_elobetwin} is between 300 and 324:
- add 28 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+28)" to attacker
- remove 28 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-28)" to victim
- if {_elobetwin} is between 325 and 349:
- add 29 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+29)" to attacker
- remove 29 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-29)" to victim
- if {_elobetwin} is between 350 and 374:
- add 30 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+30)" to attacker
- remove 30 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-30)" to victim
- if {_elobetwin} > 375:
- add 31 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+31)" to attacker
- remove 31 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-31)" to victim
- else:
- set {_elobetwin} to {elo::%attacker%}-{elo::%victim%}
- if {_elobetwin} is between 0 and 24:
- add 16 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+16)" to attacker
- remove 16 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-16)" to victim
- if {_elobetwin} is between 25 and 49:
- add 15 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+15)" to attacker
- remove 15 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-15)" to victim
- if {_elobetwin} is between 50 and 74:
- add 14 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+14)" to attacker
- remove 14 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-14)" to victim
- if {_elobetwin} is between 75 and 99:
- add 13 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+13)" to attacker
- remove 13 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-13)" to victim
- if {_elobetwin} is between 100 and 124:
- add 12 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+12)" to attacker
- remove 12 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-12)" to victim
- if {_elobetwin} is between 125 and 149:
- add 11 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+11)" to attacker
- remove 11 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-11)" to victim
- if {_elobetwin} is between 150 and 174:
- add 10 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+10)" to attacker
- remove 10 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-10)" to victim
- if {_elobetwin} is between 175 and 199:
- add 9 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+9)" to attacker
- remove 9 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-9)" to victim
- if {_elobetwin} is between 200 and 224:
- add 8 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+8)" to attacker
- remove 8 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-8)" to victim
- if {_elobetwin} is between 225 and 249:
- add 7 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+7)" to attacker
- remove 7 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-7)" to victim
- if {_elobetwin} is between 250 and 274:
- add 6 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+6)" to attacker
- remove 6 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-6)" to victim
- if {_elobetwin} is between 275 and 299:
- add 5 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+5)" to attacker
- remove 5 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-5)" to victim
- if {_elobetwin} is between 300 and 324:
- add 4 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+4)" to attacker
- remove 4 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-4)" to victim
- if {_elobetwin} is between 325 and 349:
- add 3 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+3)" to attacker
- remove 3 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-3)" to victim
- if {_elobetwin} is between 350 and 374:
- add 2 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+2)" to attacker
- remove 2 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-2)" to victim
- if {_elobetwin} > 375:
- add 1 to {elo::%attacker%}
- send "{@ELOWIN} &d%{elo::%attacker%}% &6(+1)" to attacker
- remove 1 from {elo::%victim%}
- send "{@ELOLOSE} &d%{elo::%victim%}% &4(-1)" to victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement