Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- friends:
- Loop, read, %A_WorkingDir%\friends.txt
- {
- friendarray_count++
- if (friend_zeile[friendarray_count] == A_LoopReadLine)
- Continue
- if (getPlayerIdByName(A_LoopReadLine) != -1)
- {
- Msg("Friend " A_LoopReadLine " is now online!")
- friend_zeile[friendarray_count]
- }
- if (friend_zeile[friendarray_count] == A_LoopReadLine && getPlayerIdByName(A_LoopReadLine) == -1){
- MSG("Friend " A_LoopReadLine " is now offline")
- friend_zeile.delete[friendarray_count]
- }
- }
- friendarray_count := 0
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement