1. In Hurtworld I can easily determine a player permissions,But rust seems to be unable to do so or other methods?
    thanks.
     
  2. Code:
    player.IsAdmin()
     
  3. I tried, the error can not be used
    Code:
    A local variable `player' cannot be used before it is declared
    PlayerSession session
    Code:
    The type or namespace name `PlayerSession' could not be found. Are you missing an assembly reference?
     
  4. Post where you're calling it.
     
  5. I solved it, it should be
    Code:
    BasePlayer session
    [DOUBLEPOST=1479383390][/DOUBLEPOST]
    Thanks
     
  6. Wulf

    Wulf Community Admin

    Looks like you're mixing Rust logic with Hurtworld logic. BasePlayer is for Rust, PlayerSession is for Hurtworld. If you for some reason named "player" as "session", then you'd need to use "session.IsAdmin()" instead.