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?
Solved Getiing authlevel from IPlayer?
Discussion in 'Rust Development' started by Vlad-00003, Sep 4, 2017.
-
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;
-
player.Object can be casted to baseplayer directly?
Can't be that easy =D
Ok, got ya. Exacly as I thought. -
Wulf Community Admin
-
Wow. Ty, good to know =3