1. Hey.

    How do you use GetPlayersInZone from ZoneManager?
    Could you provide me an example pls?

    Thanks,
    PsychoTea.
     
  2. Code:
    [PluginReference]
    Plugin ZoneManager;
    Code:
    object success = ZoneManager?.Call("GetPlayersInZone", ZONEIDHERE);
    if(success == null) return;
    var playersList = success as List<BasePlayer>();
    foreach(BasePlayer player in playersList)
    {
           Debug.Log(player.displayName + " is inside the zone");
    }
     
  3. MY HEAD HURTS .... Pls Can u Show the new Call Method? Im trying since 3 hours now.----- :(
     
  4. Its the same as that ^^. You need to specify the zoneID and it will return a List<ulong> of all player ID's or null if there is none
     
  5. Code:
     success = ZoneManager?.Call("GetPlayersInZone", "666");
       = new List<ulong>();
    foreach(var players in playerlist)
    count++;
    i dont even know anymore~ and that i need the zone id . yea i know...
    i dont know how to handle the list if i just want to get a count. ...

    i mean. the "Isplayerinzone Hook i already Used....

    bool inside = Convert.ToBoolean(ZoneManager?.Call("isPlayerInZone", "666", player));
     
  6. Code:
    object success = ZoneManager?.Call("GetPlayersInZone", ZONEIDHERE);
                if (success == null) return;
                var playersList = success as List<ulong>;
                var count = playersList.Count; // Count the number of entries in the list
     
  7. .... i feel dumb.....

    Thank you very much .