Onenrico

Month Rank

May 27th, 2016
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. #Tutorial Singkat
  2. #Pertama add Player Ke rank apalah itu :'v
  3. #Misal /manuadd player topvoter
  4. #Nah misal awalnya dia member
  5. #Dan 1 bulan kemudian ingin dikembalikan jadi member
  6. #Pake command /setlastmonth <player> member
  7. #FIX
  8. command /setlastmonth [<text>] [<text>]:
  9. permission: superadmin.admin
  10. trigger:
  11. set {_a} to now
  12. add 5 hours to {_a}
  13. set {_b} to "%{_a}%"
  14. set {_c::*} to {_b} split at " "
  15. set {_d::*} to {_c::1} split at "/"
  16. set {_day} to {_d::2}
  17. set {_month} to {_d::1}
  18. set {_hour} to {_c::2}
  19. set {_ap} to {_c::3}
  20. set {rankmonth::%arg 1%} to "%{_day}%.|.%{_month}%.|.%arg 1%.|.%arg 2%"
  21. send "&7[&aMonthRank&7]&fPlayer Tersebut Akan Diubah Menjadi Rank %arg 2%"
  22. send "&7[&aMonthRank&7]&fPada Tanggal: %{_day}% / %{_month}% / 2016"
  23. on join:
  24. set {_a} to now
  25. add 5 hours to {_a}
  26. set {_b} to "%{_a}%"
  27. set {_c::*} to {_b} split at " "
  28. set {_d::*} to {_c::1} split at "/"
  29. set {_day} to {_d::2}
  30. set {_month} to {_d::1}
  31. set {_hour} to {_c::2}
  32. set {_ap} to {_c::3}
  33. loop {rankmonth::*}:
  34. set {_expire::*} to loop-value split at ".|."
  35. if "%{_expire::1}%" is "%{_day}%:
  36. if "%{_expire::2}%" is "%{_month}%":
  37. console command "/manuadd %{_expire::3}% %{_expire::4}%"
  38. remove loop-value from {rankmonth::*}
  39. on skript load:
  40. set {_a} to now
  41. add 5 hours to {_a}
  42. set {_b} to "%{_a}%"
  43. set {_c::*} to {_b} split at " "
  44. set {_d::*} to {_c::1} split at "/"
  45. set {_day} to {_d::2}
  46. set {_month} to {_d::1}
  47. set {_hour} to {_c::2}
  48. set {_ap} to {_c::3}
  49. loop {rankmonth::*}:
  50. set {_expire::*} to loop-value split at ".|."
  51. if "%{_expire::1}%" is "%{_day}%:
  52. if "%{_expire::2}%" is "%{_month}%":
  53. console command "/manuadd %{_expire::3}% %{_expire::4}%"
  54. remove loop-value from {rankmonth::*}
Advertisement
Add Comment
Please, Sign In to add comment