1. So..... I have a problem overe here.
    For example - I want the player to do something in one of the case - he got a permission and he has authlevel >= 1.
    Is it possible to do? Cos I see only IPlayer.IsAdmin value, and there is no way to check if he is moderator.
    So the only thing I can do is find him as BasePlayer?
     
  2. Wulf

    Wulf Community Admin

    Auth levels are a BasePlayer thing, so you'd get it from the game's object.
    Code:
    var basePlayer = player.Object as BasePlayer
    var authLevel = basePlayer.net.connection.authLevel;
     
  3. player.Object can be casted to baseplayer directly? o_O
    Can't be that easy =D
    Ok, got ya. Exacly as I thought.
     
  4. Wulf

    Wulf Community Admin

    player.Object can be cast to whatever object it is for the game you are trying to target, that's what it is.
     
  5. Wow. Ty, good to know =3