Advertisement
xKevinn

Untitled

Aug 2nd, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. $${
  2. &name = "iSpeck"
  3. &toggle = "reset"
  4. &nodisplay = "true"
  5. &wasonline = "true"
  6. DO
  7. &status = "off"
  8.  
  9. ForEach(players)
  10. IFMATCHES(%PLAYERNAME%,"%&name%")
  11. &status = "on"
  12. BREAK
  13. ENDIF
  14. Next
  15.  
  16. IF(%&status% != &toggle)
  17. IF(%&status% = "on")
  18. IF(%&wasonline% = "true")
  19. Log(&e%&name% is already online.)
  20. LOGTO(AllStaff.txt,"[%DATE%] %&name% online at %TIME%")
  21. &nodisplay = "false"
  22. &wasonline = "false"
  23. ELSEIF(%&wasonline% = "false")
  24. Log(&e%&name% joined the game.)
  25. LOGTO(AllStaff.txt,"[%DATE%] %&name% logged in at %TIME%")
  26. &nodisplay = "false"
  27. &wasonline = "false"
  28. ENDIF
  29. @&ispeck = "on"
  30. ENDIF
  31. ENDIF
  32.  
  33. IF(%&status% != &toggle)
  34. IF(%&status% = "off")
  35. IF(%&nodisplay% != "true")
  36. Log(&e%&name% left the game.)
  37. LOGTO(AllStaff.txt,"[%DATE%] %&name% logged out at %TIME%")
  38. ENDIF
  39. &nodisplay = "false"
  40. &wasonline = "false"
  41. @&ispeck = "off"
  42. ENDIF
  43. ENDIF
  44.  
  45. &toggle = %&status%
  46. LOOP
  47. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement