Does OnServerCommand catch commands typed directly from game console? If so let me know what im doing wrong but it isnt returning anything.
Thanks in advance.
[DOUBLEPOST=1473354631][/DOUBLEPOST]I played with the logger stuff but stuff like "ent kill" "noclip" commands dont show up. Thats my goal.Code:function PLUGIN:OnServerCommand(arg) print(arg:GetString[0]) end
Solved Listening for client commands?
Discussion in 'Rust Development' started by Rusty, Sep 8, 2016.
-
Those are client sided commands.
Being admin merely disables server sided anticheat checks for these players. -
so there is no way to get say when a admin (or not) goes to console and types in noclip for example??
-
Wulf Community Admin
No, there's no way to listen for things never sent to the server. -
Alright.....thanks everyone.
[DOUBLEPOST=1473361516][/DOUBLEPOST]How about this, can i get a BasePlayer's auth level from say onplayerinit ?? -
Are you saying something like:
Code:void OnPlayerInit(BasePlayer player){ Puts(player.net.connection.authLevel.ToString()); }//Level 0 being regular - 1 being Mod - 2 being Owner -
Thanks.
