Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- &color_online_name="§b"
- &color_online_text="§a"
- &color_offline_name="§b"
- &color_offline_text="§c"
- UnSafe()
- UnSet(@&players[])
- ForEach(players)
- Push(@&players[],%PLAYERNAME%)
- Next
- Do()
- Wait(5)
- UnSet(&players_new[])
- ForEach(players)
- Push(&players_new[],%PLAYERNAME%)
- Next
- #players_index=ArraySize(@&players[])
- Dec(#players_index,1)
- For(#index,0,%#players_index%)
- &name=%@&players[%#index%]%
- IndexOf(&players_new[],#index_temp,%&name%)
- If((%#index_temp%==-1)&&(%&name%!=""))
- Log("%&color_offline_name%%&name%§r %&color_offline_text%is offline.§r")
- @&players[%#index%]=""
- EndIf
- Next
- #players_index=ArraySize(&players_new[])
- Dec(#players_index,1)
- For(#index,0,%#players_index%)
- &name=%&players_new[%#index%]%
- IndexOf(@&players[],#index_temp,%&name%)
- If(%#index_temp%==-1)
- Log("%&color_online_name%%&name%§r %&color_online_text%is online.§r")
- IndexOf(@&players[],#index_temp,"")
- If(%#index_temp%==-1)
- Push(@&players[],%&name%)
- Else
- @&players[%#index_temp%]=%&name%
- EndIf
- EndIf
- Next
- Loop
- EndUnSafe
Add Comment
Please, Sign In to add comment