• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] This is how to show list of observers to observers

Status
Not open for further replies.
  • Create obs Leaderboard
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled Observers:
      • Set ObsLeaderboard = (Last created leaderboard)
      • Leaderboard - Hide ObsLeaderboard
  • Obs Leaderboard
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Set TempPlayer = (Picked player)
          • Custom script: if (IsPlayerObserver(udg_TempPlayer) == true) then
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (ObsLeaderboard contains TempPlayer) Equal to False
            • Then - Actions
              • Leaderboard - Add TempPlayer to ObsLeaderboard with label (Name of TempPlayer) and value (Player number of TempPlayer)
              • Custom script: if GetLocalPlayer() == udg_TempPlayer then
              • Leaderboard - Show ObsLeaderboard
              • Custom script: endif
            • Else - Actions
          • Custom script: endif
  • Observer Leaves
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) leaves the game
      • Player - Player 3 (Teal) leaves the game
      • Player - Player 4 (Purple) leaves the game
      • Player - Player 5 (Yellow) leaves the game
      • Player - Player 6 (Orange) leaves the game
      • Player - Player 7 (Green) leaves the game
      • Player - Player 8 (Pink) leaves the game
    • Conditions
    • Actions
      • Leaderboard - Remove (Triggering player) from ObsLeaderboard
 
Last edited:
Status
Not open for further replies.
Top