Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Buddy:
- Loop, Read, Freunde.txt
- {
- Sleep, 500
- if (GetPlayerIDByName(A_LoopReadLine) = "-1"){
- IniRead, onlinestatus, Settings.ini, Freunde, %A_LoopReadLine%, 0
- if (onlinestatus = "0"){
- IniWrite, Offline, Settings.ini, Freunde, %A_LoopReadLine%
- }
- if (onlinestatus = "Offline"){
- continue
- }
- if (onlinestatus = "Online"){
- AddChatMessage("{C8FE2E}* Freund " A_LoopReadLine " hat den Server verlassen.")
- IniWrite, Offline, Settings.ini, Freunde, %A_LoopReadLine%
- }
- }
- if(GetPlayerIDByName(A_LoopReadLine) != "-1"){
- IniRead, onlinestatus, Settings.ini, Freunde, %A_LoopReadLine%, 0
- If(onlinestatus = "0"){
- IniWrite, Online, Settings.ini, Freunde, %A_LoopReadLine%
- }
- if (onlinestatus = "Online"){
- continue
- }
- if (onlinestatus = "Offline"){
- AddChatMessage("{C8FE2E}* Freund " A_LoopReadLine " (" id ") hat den Server betreten.")
- IniWrite, Online, Settings.ini, Freunde, %A_LoopReadLine%
- }
- }
- }
- return
- ;<STRING_COMMAND1.1>
- :?:/freunde::
- Suspend, Permit
- friend_Count := 0
- addChatMessage("{868A08}** Freunde online **")
- loop, read, Freunde.txt
- {
- if (!getPlayerIdByName(A_LoopReadLine) == -1) {
- addChatMessage("{F5D0A9}" A_LoopReadLine " ID: " getPlayerIdByName(A_LoopReadLine) ", Level: " getPlayerScoreByID(A_LoopReadLine) ", Ping: " getPlayerPingByID(A_LoopReadLine))
- friend_Count ++
- }
- }
- if (friend_Count == 0) {
- AddChatMessage("{868A08}** Es sind keine Freunde online **")
- } else {
- AddChatMessage("{868A08}** Es sind " friend_Count " Freund/e online **")
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement